[Python-modules-commits] [python-social-auth] 89/322: Fixed jawbone authentification
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:12:53 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 0dc2d42451a108ec596f9c9a7f65033ec8034e71
Author: rivf <rivfader3 at gmail.com>
Date: Fri Jan 30 04:44:06 2015 +0300
Fixed jawbone authentification
---
social/backends/jawbone.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/social/backends/jawbone.py b/social/backends/jawbone.py
index e0fe9d4..0df42c7 100644
--- a/social/backends/jawbone.py
+++ b/social/backends/jawbone.py
@@ -52,6 +52,15 @@ class JawboneOAuth2(BaseOAuth2):
))
return super(JawboneOAuth2, self).process_error(data)
+ def auth_complete_params(self, state=None):
+ client_id, client_secret = self.get_key_and_secret()
+ return {
+ 'grant_type': 'authorization_code', # request auth code
+ 'code': self.data.get('code', ''), # server response code
+ 'client_id': client_id,
+ 'client_secret': client_secret,
+ }
+
def auth_complete(self, *args, **kwargs):
"""Completes loging process, must return user instance"""
self.process_error(self.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