[Python-modules-commits] [python-social-auth] 68/89: modifed wrong key names in pocket.py

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


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

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

commit 15015ae385af249c7e7bdcd979e89357b62f1d00
Author: EJ <soudg2 at gmail.com>
Date:   Mon Mar 28 06:30:40 2016 +0900

    modifed wrong key names in pocket.py
    
    There is a wrong name of the social auth key. I think, 'POCKET_CONSUMER_KEY' shoud be a 'SOCIAL_AUTH_POCKET_KEY'. 'POCKET_CONSUMER_KEY' makes a ''400 Client Error".
---
 social/backends/pocket.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/social/backends/pocket.py b/social/backends/pocket.py
index bb48b71..b86960e 100644
--- a/social/backends/pocket.py
+++ b/social/backends/pocket.py
@@ -26,7 +26,7 @@ class PocketAuth(BaseAuth):
 
     def auth_url(self):
         data = {
-            'consumer_key': self.setting('POCKET_CONSUMER_KEY'),
+            'consumer_key': self.setting('SOCIAL_AUTH_POCKET_KEY'),
             'redirect_uri': self.redirect_uri,
         }
         token = self.get_json(self.REQUEST_TOKEN_URL, data=data)['code']
@@ -37,7 +37,7 @@ class PocketAuth(BaseAuth):
     @handle_http_errors
     def auth_complete(self, *args, **kwargs):
         data = {
-            'consumer_key': self.setting('POCKET_CONSUMER_KEY'),
+            'consumer_key': self.setting('SOCIAL_AUTH_POCKET_KEY'),
             'code': self.strategy.session_get('pocket_request_token'),
         }
         response = self.get_json(self.ACCESS_TOKEN_URL, data=data)

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