[Python-modules-commits] [python-social-auth] 263/322: Move OAuth1 method out from the base class

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:13:17 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 05b251c7c9a8283d86c5dff6f7d43e6793215456
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Thu Apr 16 20:20:35 2015 -0300

    Move OAuth1 method out from the base class
---
 social/backends/base.py  | 4 ----
 social/backends/oauth.py | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/social/backends/base.py b/social/backends/base.py
index 3d38590..fcb9108 100644
--- a/social/backends/base.py
+++ b/social/backends/base.py
@@ -191,10 +191,6 @@ class BaseAuth(object):
         kwargs.update({'backend': self, 'strategy': self.strategy})
         return self.authenticate(*args, **kwargs)
 
-    def request_token_extra_arguments(self):
-        """Return extra arguments needed on request-token process"""
-        return self.setting('REQUEST_TOKEN_EXTRA_ARGUMENTS', {})
-
     def auth_extra_arguments(self):
         """Return extra arguments needed on auth process. The defaults can be
         overriden by GET parameters."""
diff --git a/social/backends/oauth.py b/social/backends/oauth.py
index 2b6dfbd..d154606 100644
--- a/social/backends/oauth.py
+++ b/social/backends/oauth.py
@@ -224,6 +224,10 @@ class BaseOAuth1(OAuthAuth):
         self.strategy.session_set(name, tokens)
         return token
 
+    def request_token_extra_arguments(self):
+        """Return extra arguments needed on request-token process"""
+        return self.setting('REQUEST_TOKEN_EXTRA_ARGUMENTS', {})
+
     def unauthorized_token(self):
         """Return request for unauthorized token (first stage)"""
         params = self.request_token_extra_arguments()

-- 
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