1
我建立後端與移動客戶端Django
框架和我以前python-social-auth
您註冊用戶和它的工作原理爲Facebook
和Twitter
但未能爲google-oauth2
,並出現以下錯誤:蟒蛇 - 社會 - 身份驗證不能使用GoogleOAuth2
{"detail":"{\n \"error\": {\n \"errors\": [\n {\n \"domain\": \"usageLimits\",
\n \"reason\": \"dailyLimitExceededUnreg\",
\n \"message\": \"Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.\",
\n \"extendedHelp\": \"https://code.google.com/apis/console\"\n }\n ],
\n \"code\": 403,
\n \"message\": \"Daily Limit for Unaut henticated Use Exceeded. Continued use requires signup.\"\n }\n}\n"}
我調試谷歌後臺源代碼包的社會,我發現它失敗了return
聲明:
return self.get_json(url, params={ 'access_token': access_token, 'alt': 'json' })
我不知道爲什麼會失敗, Ÿ幫助解決這個問題表示讚賞。
可能重複的[GoogleAuthUtil:每日限制未經驗證的使用超過](http://stackoverflow.com/questions/13078588/googleauthutil-daily-limit-for-unauthenticated-use-exceeded) – Armfoot
@Armfoot是的,我有同樣的錯誤http://stackoverflow.com/questions/13078588/googleauthutil-daily-limit-for-unauthenticated-use-exceeded但它是關於java或可能android使用google-oauth和在我的情況下,我用蟒蛇社會包,所以他的 解決方案不適合我的情況 – angel
天使,從[在該問題的答案](http:// stackoverflow .com/a/13078826/1326147),google-oauth基於GoogleCredential,我相信你的問題是相似的:你的access_token是無效的或者它不是'正確使用。你用來定義它的代碼將有助於解決你的問題。 – Armfoot