PHP+oauth : what's the difference between 3-legged and 2-legged auth?

标签 php oauth

我正在查看 oauth+php 示例 (http://code.google.com/p/oauth-php/wiki/ConsumerHowTo#Two-legged_OAuth)。有两种不同的模式需要获得授权:3 足式和 2 足式。有什么不同?我什么时候应该使用它们?

提前谢谢您!

最佳答案

引用的 URL 提供了不错的概述。

在 Google 土地上:

  • 双腿 OAuth (2LO) 通常用于 Google Apps。在这种情况下,域管理员可以预先批准应用程序访问域上用户数据的授权(例如:DocuSign 可以代表 example.com 域上的所有用户访问 Google 文档)。管理员通过 Google Apps 控制面板或从 Google Apps Marketplace 安装应用程序来执行此操作。由于批准发生在 OAuth 流程之外 - 应用程序只需证明其身份,然后在发出请求时由 API 服务器验证数据访问授权。通常,应用程序使用 [email protected] 代表用户发出请求。 API调用中的查询参数。
  • 三足 OAuth (3LO) 是指您在需要授权时直接提示最终用户进行授权。这是“正常”流程。

关于PHP+oauth : what's the difference between 3-legged and 2-legged auth?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10686013/

相关文章:

php - Jquery 删除和添加事件类到 li 节点以及 PreventDefault 的问题

php - MySQL 可用性日历 - 计算空闲日期的方法?

asp.net-mvc - MVC 4 OAuth 集成。接下来是什么以及如何从数据提供者那里获取任何信息?

python - Flask-OAuthlib "TypeError: sequence index must be integer, not ' str'”

php - 向迁移添加外键失败 - Laravel

php - Laravel 中 Twitter Bootstrap 导航的自动事件类

php - PHP 中的 OOP - "__construct"连接

ruby-on-rails - 使用私钥和公钥的 API 身份验证

oauth - OAuth提供程序重定向后如何为用户提供JWT token ?

ruby - OAuth 和 HTTParty