From: Fedor Nasyrov Date: Mon, 20 Feb 2012 11:52:00 +0000 (+0400) Subject: fix bug in facebook backend with partial pipeline X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=96bf35a717fa0cc7a59add1a2a5a5b8fc294efbc;p=django-social-auth.git fix bug in facebook backend with partial pipeline --- diff --git a/social_auth/backends/facebook.py b/social_auth/backends/facebook.py index 92df670..39d8b1e 100644 --- a/social_auth/backends/facebook.py +++ b/social_auth/backends/facebook.py @@ -114,7 +114,7 @@ class FacebookAuth(BaseOAuth2): # premission was requested if expires: data['expires'] = expires - kwargs.update({'response': data, self.AUTH_BACKEND.name: True}) + kwargs.update({'response': data, self.AUTH_BACKEND.name: True, 'auth': self}) return authenticate(*args, **kwargs) else: error = self.data.get('error') or 'unknown error'