3

尝试使用google -oauth登录时出现以下错误。Google-Oauth身份验证错误

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." 
} 
} 

回答

7

答案出现在您的错误日志中,在您的帐户的开发者设置中激活Google API。

+0

要做什么的链接是什么? –

+0

哪里是链接? – gonephishing

+0

Google Developers Console位于https://console.developers.google.com/project?authuser=0 – aqn

5

我发现这个问题后,一些谷歌搜索,我不是很满意@ Babar的答案,因为它ID实际上并没有解决我的问题。

经过大量挖的身边,我发现,你必须让你的开发者控制台Google+ APIsome also say您需要的Contacts API)。我以前不必这样做,但显然有一些变化。

要做到这一点,请执行下列操作步骤:

  1. 转到https://console.developers.google.com/project
  2. 从侧面板中选择项目
  3. 按“API的&权威性”从
  4. 按下“的API”下拉菜单
  5. 查找并启用Google+ APIContacts API
  6. Af之三已启用,WAIT ABOUT 5 MINUTES的API来一命呜呼。

现在你应该可以再次使用的OAuth2登录。

+1

为我工作,upvoted –

+0

这是更好的答案...谢谢最后,我已经与设计工作oauth2 –