2014-03-25 51 views
3

昨晚,使用Google OAuth时,一个运行良好大约六个月的网站开始出现403错误。身份验证代码没有更改,我也没有看到Google OAuth突然更改的任何注释。我尝试重新发布客户端ID(包括客户端密钥),但没有解决它。Google OAuth 2“accessNotConfigured”错误

详情:

  • 完整的错误:“访问未配置请使用谷歌开发者控制台启用API为您的项目”来自这个(擦洗)请求后:

    https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=https%3A%2F%2Fx.y.com%2Fauth%2Fgoogle%2Fcallback&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&client_id=12345-abcdefg.apps.googleusercontent.com 
    

    的响应报头确实含有本(洗涤):

    Location: https://x.y.com/auth/google/callback?code=4/MF-V... 
    

    其包含类似于我在API操场看到的代码。

  • 服务器设置:使用护照/护照-google-oauth运行的node.js。

我不知道什么API需要启用 - 我认为这是一个错误的感觉错误。开发人员控制台的“API &身份验证”部分中的API都不相关。我在“API & auth>证书”下配置了OAuth。这不是youtube或Google+身份验证。

+0

我遇到一个非常类似的问题。我想知道,如果谷歌是贬低的东西比他们记录更早... – James

+0

在这里看到我的答案:http://stackoverflow.com/questions/22640094/intermittent-403-access-not-configured/22642747#22642747不完全确定如果它与你正在做的事情有关,但它可能有帮助。 – James

+0

有人请帮忙,我有同样的问题。请发布解决方案的人! – MoB

回答

-1

我们遇到同样的问题。我不知道它是否是运气 - 或者什么,但几分钟前我终于开始启用API,看看它是否会有所帮助。我启用了Google+ Domains API,Google+环聊API,Admin SDK。在没有整天登录之后(你得到同样的错误)。我现在登录了两次。

+0

这不是一个答案或解决方案。 –

+0

@MichalS没有它,但没有低代表的用户发表评论。唯一的选择是将其作为答案发布。 – DaImTo

+0

确实,尝试获得一些,这不是很难:)请阅读http://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-c​​an-i而不是 –

1

我不认为这是你的问题的原因,但你应该意识到它无论如何。 Using OAuth 2.0 for Login (early version)

Important: Google has deprecated the early implementation of OAuth 2.0 for login that is described in this document and will no longer support it, after a migration period. If your app uses OAuth 2.0 login (early version), you should either switch to Google+ Sign-In or update your existing userinfo endpoints and scopes by the deadline given in the migration timetable. For instructions, see Migrate or update OAuth 2.0 login.

迁移时间表上说2014年9月1日其去:https://developers.google.com/+/api/auth-migration#timetable