简体   繁体   English

在Google App Engine上使用python-social-auth进行的Google OAuth2身份验证失败

[英]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. 任何帮助将不胜感激。

Downgrading requests module to 2.3 worked for me: 请求模块降级到2.3对我有用:

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

Thanks to this Answer 感谢这个答案

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 HTTPError 403(Forbidden),Django和python-social-auth通过OAuth2连接到Google - HTTPError 403 (Forbidden) with Django and python-social-auth connecting to Google with OAuth2 Github 认证失败 | 蟒蛇社交认证 - Authentication failed in Github | python-social-auth 无法将python-social-auth导入Google App Engine的django项目 - Cannot import python-social-auth into Google App Engine's django project 使用'hd'param(Django / python-social-auth)限制对某个域的Google OAuth访问权限 - Limit Google OAuth access to one domain using 'hd' param (Django / python-social-auth) 找不到用于linkedin oauth2的python-social-auth后端 - python-social-auth backend not found for linkedin oauth2 使用python-social-auth的django社交认证错误 - django social authentication error using python-social-auth 我正在使用 python-social-auth,但是当用户从 Google 注销时,我的应用程序没有注销 - I'm using python-social-auth but my app isn't logging out when the user logs out of Google 在python-social-auth中从google和facebook检索个人资料图片 - Retrieving profile picture from google and facebook in python-social-auth 零占用空间Python-Social-Auth身份验证 - Zero Footprint Python-Social-Auth authentication 是否可以在没有OAuth2身份验证对话框的情况下从Google App-Engine(python)连接和查询BigQuery表? - Is it possible to connect and query a BigQuery table from Google App-Engine (python) without OAuth2 authentication dialog?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM