【问题标题】:Integrating Google OAuth Authorization in my web-app在我的网络应用程序中集成 Google OAuth 授权
【发布时间】:2011-07-14 01:24:55
【问题描述】:

我正在构建一个网络应用程序,我需要在其中访问来自 Google Docs(Google Apps)的电子表格列表

我想使用 OAuth 进行身份验证。

如何在我的 PHP 应用程序中执行此操作?

一件重要的事情,我想代表我的用户进行身份验证。我的应用程序将在后台运行,用户将收到有关与其帐户关联的电子表格列表的电子邮件。我不希望每次脚本运行时都需要用户输入他/她的电子邮件 ID 和密码的脚本。

【问题讨论】:

标签: php authentication oauth google-apps


【解决方案1】:

首先,这里概述了OAuth 在 Google 中的使用http://www.google.com/support/a/bin/answer.py?answer=61017

接下来,这里是更在 Google 中使用 OAuth 的更深入概述http://code.google.com/apis/accounts/docs/GettingStarted.html

接下来,这是一个如何使用 PHP 进行 2 legged OAuth 的示例: http://gdatatips.blogspot.com/2008/11/2-legged-oauth-in-php.html

最后,这里是 Google Documents List API(您很可能需要使用): http://code.google.com/apis/documents/

享受吧! (如果你喜欢这个答案,记得投票)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-03-21
    • 2013-08-16
    • 1970-01-01
    • 2019-07-05
    • 1970-01-01
    • 2015-02-15
    • 2022-06-30
    • 2012-07-02
    相关资源
    最近更新 更多