Google Plus Sign In with Django-Allauth

In django-allauth I am trying to use google plus (as per google recommendation - https://developers.google.com/accounts/docs/OAuth2Login ) instead of the standard google Oauth2.

For the most part, this works for me - I changed SCOPE as googleapis.com/auth/plus.logininstead googleapis.com/auth/userinfo.profile, and the user can authenticate with google plus. However, I cannot get some user data, such as first name and last name.

Looking at the code, I believe this is due profile_urlto the class GoogleOAuth2Adapter. To work with Google Plus, this should be googleapis.com/plus/v1/people/meinstead googleapis.com/oauth2/v1/userinfo.

Is there a way to override profile_urlor is there another way around it?

+4
source share

All Articles