/usr/lib/python3/dist-packages/social/backends/goclioeu.py is in python3-social-auth 1:0.2.21+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 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}
)
|