[英]Google OAuth2 authentication using python-social-auth on Google App Engine failed
I have an issue with python-social-auth for Google OAuth2 authentication. 我在使用python-social-auth进行Google OAuth2身份验证时遇到问题。 I'm developing project using django 1.7 and deploying it to Google App Engine. 我正在使用django 1.7开发项目,并将其部署到Google App Engine。
I tested login by google using oauth2 with python-social-auth on my local environment(Ubuntu, django1.7, virtualenv, python-social-auth) Of course, I got API credentials from "API and auth" console. 我在本地环境(Ubuntu,django1.7,virtualenv,python-social-auth)上使用带有python-social-auth的oauth2和google测试了登录,当然,我从“ API and auth”控制台获得了API凭据。
I deployed project to Google app engine. 我将项目部署到了Google App Engine。 If I click "login by google", it redirects to page which requires user to input his password. 如果我单击“通过Google登录”,它将重定向到需要用户输入密码的页面。 After that it shows me error like "AuthFailed at /complete/google-oauth2/ Authentication failed: ('Connection aborted.', error(13, 'Permission denied'))" 之后,它向我显示诸如“在/ complete / google-oauth2 /上的AuthFailed身份验证失败:('连接中止。,,错误(13,'权限被拒绝'))”的错误
Debug message shows me that "request_access_token" generate above issue. 调试消息显示“ request_access_token”生成上述问题。
But the point is it works well on local testing without any issue. 但是关键是它在本地测试中运行良好,没有任何问题。
Any kind of help would much appreciated. 任何帮助将不胜感激。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.