5

我正在使用 Scribe-Java 使用 OAuth2 连接到 Google plus。我能够对我的应用程序进行身份验证并获得用户的许可,但是当我尝试访问 以外的任何内容userinfo时,我得到了这个异常。

403

{

“错误”: {

  "errors": [
            {

          "domain": "usageLimits",
           "reason": "accessNotConfigured","message": "Access Not Configured"

            }

            ],

  "code": 403,

"message": "Access Not Configured"

     }

}

我已将我的应用程序的范围设置为https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile并访问我正在使用此 url 的用户个人资料:

https://www.googleapis.com/plus/v1/people/{userid}/activities/public

你能告诉我我做错了什么吗?我需要在此处使用其他范围来访问配置文件吗?

4

2 回答 2

11

1) 访问 Google API 控制台: http ://code.google.com/apis/console

2) 转到“服务”页面。

3) 将 Google+ API 切换为 On 以启用它

于 2012-06-19T01:05:33.770 回答
0

我在使用HybridAuth的 PHP 中遇到了同样的错误:

我必须在APIs & Auth -> APIs中的Google Developers Console中激活以下内容

  • 联系人 API
  • 谷歌+ API

另请参阅http://hybridauth.sourceforge.net/userguide/IDProvider_info_Google.html上的讨论

于 2014-03-20T08:56:44.507 回答