Simple PHP REST server with secure user authentication and registered third-party applications

I am learning the PHP REST API, which will allow registered users to interact with the web service from third-party applications.

What I need so that the API can:

  • provide support for secure user authentication.
  • allow registered users to interact with the service from third-party applications.
  • these applications must be registered and approved in the system in advance (similar to twitter)

I was wondering what would be a good foundation or library to start with, which is a good basis for such a service.

Titel

+6
rest php restful-authentication
source share
2 answers

It seems that OAuthProvider will do what you describe. Here are some guides on how to make OAuthProvider using the PHP OAuth module.

http://toys.lerdorf.com/archives/55-Writing-an-OAuth-Provider-Service.html

http://djpate.com/2011/01/13/how-to-write-a-complete-oauth-provider-in-php5/

+1
source share

You can try one of the OAuth libraries for PHP listed at http://oauth.net/code

0
source share

All Articles