昨晚一个已经运作了六个月且一直正常的网站,在使用Google OAuth时突然出现了403错误。身份验证代码并未更改,我也没有看到Google OAuth突然发生任何变化的说明。我已经尝试重新发放客户端ID(包括客户端密钥),但这并没有解决问题。
细节如下:
细节如下:
Full error: "Access Not Configured. Please use Google Developers Console to activate the API for your project." comes after this (scrubbed) request:
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
The response header does contain this (scrubbed):
Location: https://x.y.com/auth/google/callback?code=4/MF-V...
which contains the code similar to what I see in the API playground.
Server setup: node.js running express with passport/passport-google-oauth.
我不知道需要启用哪个API -- 我觉得这是一个错误。在开发者控制台的"API和身份验证"部分中没有任何API看起来与此相关。我正在"API和身份验证 > 凭据"下配置OAuth。这不是YouTube或Google+身份验证。