Skip to content

Commit

Permalink
Merge pull request #686 from jneves/master
Browse files Browse the repository at this point in the history
support for goclio.eu service
  • Loading branch information
omab committed Jul 22, 2015
2 parents ec56fac + 136e012 commit b466451
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions social/backends/goclioeu.py
Original file line number Diff line number Diff line change
@@ -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}
)

0 comments on commit b466451

Please sign in to comment.