2014-03-25 53 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