缺少所需的参数access_token或代码社交Auth Google+验证

时间:2015-12-08 20:35:53

标签: django django-authentication python-social-auth django-1.8 google-plus-signin

我正在使用Django1.8。之前与Google+进行了自定义集成,希望转移到python-social-auth以简化操作。

已按照教程here设置 Google + 登录过程。我的请求通过(它会将我登录到我的Google+帐户),但python-social-auth会返回错误:

AuthMissingParameter at /auth/complete/google-plus/
Missing needed parameter access_token or code
Request Method: POST
Request URL:    https://localhost:8000/auth/complete/google-plus/
Django Version: 1.8.4
Exception Type: AuthMissingParameter
Exception Value:    
Missing needed parameter access_token or code
Exception Location: /Users/default/dev/mm-dev/venv/lib/python2.7/site-packages/social/backends/google.py in auth_complete, line 140
Python Executable:  /Users/default/dev/mm-dev/venv/bin/python
Python Version: 2.7.10
Python Path:    
['/Users/default/dev/mm-dev',
 '/Users/default/dev/mm-dev/venv/src/contextio-v2.0-client-library',
 '/Users/default/dev/mm-dev/venv/lib/python27.zip',
 '/Users/default/dev/mm-dev/venv/lib/python2.7',
 '/Users/default/dev/mm-dev/venv/lib/python2.7/plat-darwin',
 '/Users/default/dev/mm-dev/venv/lib/python2.7/plat-mac',
 '/Users/default/dev/mm-dev/venv/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/default/dev/mm-dev/venv/Extras/lib/python',
 '/Users/default/dev/mm-dev/venv/lib/python2.7/lib-tk',
 '/Users/default/dev/mm-dev/venv/lib/python2.7/lib-old',
 '/Users/default/dev/mm-dev/venv/lib/python2.7/lib-dynload',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages'

我对如何调试此问题感到有些不知所措。 Google不会将代码还给我吗?我希望有一个错误告诉我我的配置或请求缺少什么。如何找出我的请求有什么问题?

0 个答案:

没有答案