[Python-modules-commits] [python-social-auth] 17/61: support for goclio.eu service
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:14:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.13
in repository python-social-auth.
commit 136e012f05bcb20f25954a7aa0893a6da5b87b56
Author: João Miguel Neves <jneves at gosimpletax.com>
Date: Sun Jul 19 20:02:16 2015 +0100
support for goclio.eu service
---
social/backends/goclioeu.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/social/backends/goclioeu.py b/social/backends/goclioeu.py
new file mode 100644
index 0000000..f5b36c4
--- /dev/null
+++ b/social/backends/goclioeu.py
@@ -0,0 +1,14 @@
+from social.backends.goclio import GoClioOAuth2
+
+
+class GoClioEuOAuth2(GoClioOAuth2):
+ name = 'goclioeu'
+ AUTHORIZATION_URL = 'https://app.goclio.eu/oauth/authorize/'
+ ACCESS_TOKEN_URL = 'https://app.goclio.eu/oauth/token/'
+
+ def user_data(self, access_token, *args, **kwargs):
+ """Loads user data from service"""
+ return self.get_json(
+ 'https://app.goclio.eu/api/v2/users/who_am_i',
+ params={'access_token': access_token}
+ )
--
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