omab/django-social-auth — pull request #351 by mback2k (2012-05-20 11:35:54+00:00)
Title: Support for Google OAuth 2.0 immutable identifier

Hello everyone,

I added support for the ID fields in the profile information available to the Google OAuth 2.0 backend.
See [here](https://developers.google.com/accounts/docs/OAuth2Login#userinfocall) for more information regarding the profile information.

As this would result in a somewhat backwards incompatible change if SOCIAL_AUTH_ASSOCIATE_BY_MAIL is False, I added a new setting called GOOGLE_OAUTH2_USE_UNIQUE_USER_ID which defaults to False and needs to be set to True in order to use the user ID as uid in Social Auth.

This change avoids problems with non-GMail Google Accounts changing their email address.

I also fixed a small typo in a function comment.

Best regards
Marc