【发布时间】:2014-12-19 00:48:34
【问题描述】:
我在使用 python-social-auth 进行 Google OAuth2 身份验证时遇到问题。 我正在使用 django 1.7 开发项目并将其部署到 Google App Engine。
我在本地环境(Ubuntu、django1.7、virtualenv、python-social-auth)上使用 oauth2 和 python-social-auth 测试了谷歌登录 当然,我从“API and auth”控制台获得了 API 凭据。
我将项目部署到 Google 应用引擎。 如果我点击“谷歌登录”,它会重定向到需要用户输入密码的页面。 之后它向我显示错误,例如“AuthFailed at /complete/google-oauth2/ 身份验证失败:('Connection aborted.', error(13, 'Permission denied'))"
调试消息显示“request_access_token”生成上述问题。
但关键是它在本地测试中运行良好,没有任何问题。
任何形式的帮助都将不胜感激。
【问题讨论】:
标签: python django google-app-engine python-social-auth