From e7bb03920fc667ae99c8ecaee66eacada9a462bf Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 26 Mar 2014 12:24:12 +0100 Subject: [PATCH] allauth_authentic2: use Authorization header instead of query string to pass the access token --- views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views.py b/views.py index c557778..dae345f 100644 --- a/views.py +++ b/views.py @@ -33,7 +33,7 @@ class Authentic2OAuth2Adapter(OAuth2Adapter): def complete_login(self, request, app, token, **kwargs): resp = requests.get(self.profile_url, - params={'access_token': token.token}) + headers={'authorization': 'Bearer %s' % token.token}) extra_data = resp.json() return self.get_provider().sociallogin_from_response(request, extra_data)