Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 17th Sep 2013, 12:48 AM   #1
Warrior Member
 
Join Date: 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow
How to authenticate RESTful service[Light weight php REST Library]
Share on: 
fb share twitter share gplus share more share

Dear pals,
I really love the REST based library , from URL https://github.com/deepeshmalviya/simple-rest
simple and understandable . But I need an authentication mechanism in it. I plan to use api for User based access . I need to take data we must use GET method . Passing username/password as GET (or even as POST) is not safe . Do you can suggest a good solution for this library .

Thanks,
Anes
admod is offline  
Unread 17th Sep 2013, 01:02 AM   #2
Web Developer
War Room Member
 
Andrew H's Avatar
 
Join Date: 2012
Location: Vancouver, BC
Posts: 593
Thanks: 149
Thanked 162 Times in 133 Posts
Default
Re: How to authenticate RESTful service[Light weight php REST Library]
Share on: 
fb share twitter share gplus share more share

Was just doing some research on securing my RESTful api's this morning (user throttling)

Found this helpful link: https://www.stormpath.com/blog/secur...-api-right-way

Hint: use a unique api key for each user

"You shouldn't come here and set yourself up as the resident wizard of oz."
Andrew H is offline  
Unread 17th Sep 2013, 11:57 PM   #3
Warrior Member
 
Join Date: 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow
Re: How to authenticate RESTful service[Light weight php REST Library]
Share on: 
fb share twitter share gplus share more share

Dear Andrew,

Thanks for your quick and helpful reply . I look alot regarding this subject.
But I can understand that OAuth2.0 is more advanced but simple compared to
OAuth1.0 .

My issue is How the OAuth2.0 authentication can apply to a REST API Web Service. I attached the basic implementation of REST API. The code of
attached "simple_rest_client->index.php" as follows:
attached in index.txt (same file of simple_rest_client.zip )
Here the client call the Controller method "Test" as in cURL http://localhost/sim...est_master/test. It's URL in localhost is : http://localhost/simple_rest_client/

I also add the code of "Server" in zip file "simple_rest_master.zip".

In this case I need to implement the authentication using OAuth2.0 .

I looked the RFC standard for it here : RFC 6749 - The OAuth 2.0 Authorization Framework

Please help,

Thanks,
Anes
Attached Files
File Type: zip simple_rest_client.zip (501 Bytes, 2 views)
File Type: zip simple_rest_master.zip (17.2 KB, 2 views)
File Type: txt index.txt (415 Bytes, 3 views)
admod is offline  
Closed Thread


Bookmarks

Tags
api, authenticate, library, php, rest, restful, servicelight, weight


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:31 AM.