From: Andrew Korzhuev Date: Tue, 1 May 2012 06:49:23 +0000 (+0400) Subject: Save Live access and reset tokens in extra fields. Fix typo X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=68ad9152f15095520b92c75917b09dc5e7094448;p=django-social-auth.git Save Live access and reset tokens in extra fields. Fix typo --- diff --git a/social_auth/backends/contrib/live.py b/social_auth/backends/contrib/live.py index 9d803e9..c3680be 100644 --- a/social_auth/backends/contrib/live.py +++ b/social_auth/backends/contrib/live.py @@ -32,6 +32,8 @@ class LiveBackend(OAuthBackend): EXTRA_DATA = [ ('id', 'id'), + ('access_token', 'access_token'), + ('reset_token', 'reset_token'), ('expires', setting('SOCIAL_AUTH_EXPIRATION', 'expires')), ('email', 'email'), ('first_name', 'first_name'), @@ -42,7 +44,7 @@ class LiveBackend(OAuthBackend): return response['id'] def get_user_details(self, response): - """Return user details from Github account""" + """Return user details from Live Connect account""" try: email = response['emails']['account'] except KeyError: