-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL issue with google oauth2 #566
Comments
I changed python 2.7.6 to 2.7.9 and still get error AuthFailed at /complete/google-oauth2/ The error is raised when calling requests. with url https://accounts.google.com/o/oauth2/token. I don`t understand why google cert is not a valid |
This is probably by the lack of the certificates in your server, try installing the |
@stushurik How did you resolve the issue ? I am getting the same error with Django 1.8 and Python 2.7.6 |
I tried that but that's not working! |
@a1Gupta : I have the same problem. Have you found a solution/workaround? |
+1! |
I changed the requests version from 2.8 to 2.7.0 and it worked for me! |
|
@zhang-z this fixed it for me too. |
1 similar comment
@zhang-z this fixed it for me too. |
I have tried this on Python2 and Python3 Ubuntu 14 and Ubuntu 16. I m still getting this error or a Bad Handshake " error depending on what version of python-social-auth im using. I have tried a number of fixes and still coming up the same error |
+1 Whats the solution for this issue? I was running requests 2.3.0, upgrading to 2.14.2 throws the above error. What's the supported version of requests for python-social-auth? |
Manually specifying |
@chidg It worked for me. I had to do |
@zhang-z soultion worked for me |
@zhang-z soultion worked for me too, awesome |
I am using python social auth with django 1.7 and google oauth2.
After redirect from google page I have got:
Environment:
Request Method: GET
Request URL: http://vbox.net:8000/complete/google-oauth2/?state=QiVp18K58so5FVVBLb8WQnhaALal5fzy&code=4/qR3l5BH4rYNyNt-GtYx6mXl3yPo2XuLaTkHjdkFRjJg.Eh6ySpu7l_IRYFZr95uygvWJ8l2rmAI&authuser=0&num_sessions=1&prompt=consent&session_state=059c1e5d0ac0aa05eebe37df60091e8a6592a99e..d6e5
Django Version: 1.7.5
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'bootstrap3',
'tinymce',
'urlbreadcrumbs',
'social.apps.django_app.default',
'core',
'details',
'keywords',
'logins')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "/home/olexandr/.virtualenvs/cup/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
Exception Type: AuthFailed at /complete/google-oauth2/
Exception Value: Authentication failed: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
The text was updated successfully, but these errors were encountered: