omab / django-social-auth

Django social authentication made simple
https://groups.google.com/group/django-social-auth
BSD 3-Clause "New" or "Revised" License
2.65k stars 756 forks source link

problem with Google login #814

Closed SkyNET69 closed 7 years ago

SkyNET69 commented 9 years ago

Google OAuth2 doesn't work in Python3.4. I'm fix it ./socialauth/backends/ init _.py line 830 from response = simplejson.loads(dsa_urlopen(request).read()) to response = simplejson.loads(dsa_urlopen(request).read().decode('utf-8'))

and ./social_auth/backends/google.py line 234 from return simplejson.loads(dsa_urlopen(request).read()) to return simplejson.loads(dsa_urlopen(request).read().decode('utf-8')) and add to import from urllib.request import Request, realy it's imported, but as OAuthRequest