[Python-modules-commits] [python-social-auth] 243/322: Move revoke methods to common class. Fixes #484

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:13:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.10
in repository python-social-auth.

commit 29a24e1c43d5d7c71e0c3c07c6e28602c08b52f3
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Wed Apr 8 04:15:24 2015 -0300

    Move revoke methods to common class. Fixes #484
---
 social/backends/google.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/social/backends/google.py b/social/backends/google.py
index a58549a..bc37d2d 100644
--- a/social/backends/google.py
+++ b/social/backends/google.py
@@ -73,6 +73,12 @@ class BaseGoogleOAuth2API(BaseGoogleAuth):
             'alt': 'json'
         })
 
+    def revoke_token_params(self, token, uid):
+        return {'token': token}
+
+    def revoke_token_headers(self, token, uid):
+        return {'Content-type': 'application/json'}
+
 
 class GoogleOAuth2(BaseGoogleOAuth2API, BaseOAuth2):
     """Google OAuth2 authentication backend"""
@@ -95,12 +101,6 @@ class GoogleOAuth2(BaseGoogleOAuth2API, BaseOAuth2):
         ('token_type', 'token_type', True)
     ]
 
-    def revoke_token_params(self, token, uid):
-        return {'token': token}
-
-    def revoke_token_headers(self, token, uid):
-        return {'Content-type': 'application/json'}
-
 
 class GooglePlusAuth(BaseGoogleOAuth2API, BaseOAuth2):
     name = 'google-plus'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list