简体   繁体   中英

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

I'm looking into writing an PHP REST API that would allow registered users interact with the web service from third party applications.

What I need the API to be able to do is:

  • provide support for secure user authentication
  • allow registered users to interact with the service from 3rd party applications
  • this applications should be registered and approved on the system beforehand (similar to twitter)

I was wondering what would be a good framework or library to start from that provides a good basis for such a service.

titel

Sounds like an OAuthProvider would do what you describe. Here are some tutorials on how to make an OAuthProvider using PHP's 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/

您可以尝试http://oauth.net/code上列出的PHP的OAuth库之一

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM