首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google-Oauth身份验证错误

Google-Oauth身份验证错误
EN

Stack Overflow用户
提问于 2014-04-23 04:57:36
回答 3查看 1.7K关注 0票数 5

当尝试使用google -oauth登录时,将获得以下错误。

代码语言:javascript
复制
I, [2014-04-23T10:08:24.349056 #4905]  INFO -- omniauth: (google_oauth2) Request phase initiated.

I, [2014-04-23T10:08:24.861288 #4905]  INFO -- omniauth: (google_oauth2) Request phase initiated.

I, [2014-04-23T10:08:28.637438 #4905]  INFO -- omniauth: (google_oauth2) Callback phase initiated.

E, [2014-04-23T10:08:30.207714 #4905] ERROR -- omniauth: (google_oauth2) Authentication failure! invalid_credentials: OAuth2::Error, {"errors"=>[{"domain"=>"usageLimits", "reason"=>"accessNotConfigured", "message"=>"Access Not Configured. Please use Google Developers Console to activate the API for your project."}], "code"=>403, "message"=>"Access Not Configured. Please use Google Developers Console to activate the API for your project."}: 

{

 "error": {

  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
   }
  ],

  "code": 403,
  "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
 }
}
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2014-04-23 05:22:03

答案是在您的错误日志,激活Google在开发人员设置在您的帐户。

票数 7
EN

Stack Overflow用户

发布于 2014-10-10 10:24:53

我在谷歌搜索后发现了这个问题,我对@Babar的回答并不满意,因为它并没有真正解决我的问题。

经过大量研究之后,我发现您必须在开发人员控制台中启用Google+ API (也有人说,您需要Contacts API)。我以前没有必要这样做,但显然已经有了一些变化。

为此,请执行以下步骤:

  1. 转到https://console.developers.google.com/project
  2. 选择您的项目
  3. 按侧面面板上的"APIs & auth“键
  4. 从下拉列表中按下"APIs“
  5. 查找并启用Google+ APIContacts API
  6. 启用这些API之后,WAIT ABOUT 5 MINUTES就可以启动API了。

现在,您应该能够再次使用Oauth2登录。

票数 6
EN

Stack Overflow用户

发布于 2020-06-25 10:20:08

我也有一个类似的问题,我的Rails应用程序抛错误403。因此,我通过在终端中运行bundle update devise omniauth omniauth-google-oauth2来升级无所不在的宝石来解决这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23235064

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档