Skip to content

Commit

Permalink
token url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor committed Nov 18, 2023
1 parent 9977c4c commit eb359ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ','
Expand All @@ -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)
}
Expand Down

0 comments on commit eb359ce

Please sign in to comment.