diff --git a/auth/backend.py b/auth/backend.py index 7f753a4..d277e1b 100644 --- a/auth/backend.py +++ b/auth/backend.py @@ -6,7 +6,7 @@ class HSWawOAuth2(BaseOAuth2): name = 'spejstore' ID_KEY = 'username' AUTHORIZATION_URL = 'https://auth.apps.hskrk.pl/application/o/authorize/' - ACCESS_TOKEN_URL = 'https://auth.apps.hskrk.pl/application/o/token/' + ACCESS_TOKEN_URL = 'http://authentik:9000/application/o/token/' DEFAULT_SCOPE = ['profile:read'] REDIRECT_STATE = False SCOPE_SEPARATOR = ',' @@ -27,7 +27,7 @@ def get_user_details(self, response): def user_data(self, access_token, *args, **kwargs): """Loads user data from service""" - url = 'https://auth.apps.hskrk.pl/application/o/userinfo/' + url = 'http://authentik:9000/application/o/userinfo/' headers = { 'Authorization': 'Bearer {}'.format(access_token) }