【问题标题】:Google OAuth2 authentication using python-social-auth on Google App Engine failed在 Google App Engine 上使用 python-social-auth 的 Google OAuth2 身份验证失败
【发布时间】: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


    【解决方案1】:

    将 requests 模块降级到 2.3 对我有用:

    pip uninstall requests        # 2.5.1, then
    pip install requests==2.3
    

    感谢Answer

    【讨论】:

      猜你喜欢
      • 2016-04-07
      • 1970-01-01
      • 2011-02-23
      • 1970-01-01
      • 2017-06-05
      • 1970-01-01
      • 2014-06-22
      • 2014-04-30
      • 1970-01-01
      相关资源
      最近更新 更多