具有安全用户身份验证和注册第三方应用程序的简单 PHP REST 服务器 [英] Simple PHP REST server with secure user authentication and registered third party applications
问题描述
我正在考虑编写一个 PHP REST API,以允许注册用户与来自第三方应用程序的网络服务进行交互.
I'm looking into writing an PHP REST API that would allow registered users interact with the web service from third party applications.
我需要 API 能够做的是:
What I need the API to be able to do is:
- 为安全的用户身份验证提供支持
- 允许注册用户与来自 3rd 方应用程序的服务进行交互
- 此应用程序应事先在系统上注册和批准(类似于推特)
我想知道什么是好的框架或库可以为这样的服务提供良好的基础.
I was wondering what would be a good framework or library to start from that provides a good basis for such a service.
标题
推荐答案
听起来像 OAuthProvider 会做你描述的事情.这里有一些关于如何使用 PHP 的 OAuth 模块制作 OAuthProvider 的教程.
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/
这篇关于具有安全用户身份验证和注册第三方应用程序的简单 PHP REST 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!