Skip to content

Commit

Permalink
lacking slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzyb authored Mar 16, 2024
1 parent 37b0eb5 commit 70f5056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auth/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class HSWawOAuth2(BaseOAuth2):

name = "hswaw"
ID_KEY = "username"
AUTHORIZATION_URL = "https://auth.apps.hskrk.pl/application/o/authorize"
ACCESS_TOKEN_URL = "https://auth.apps.hskrk.pl/application/o/token"
AUTHORIZATION_URL = "https://auth.apps.hskrk.pl/application/o/authorize/"
ACCESS_TOKEN_URL = "https://auth.apps.hskrk.pl/application/o/token/"
DEFAULT_SCOPE = ["profile:read"]
ACCESS_TOKEN_METHOD = 'POST'
REQUEST_TOKEN_METHOD = 'POST'
Expand All @@ -30,7 +30,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 = "https://auth.apps.hskrk.pl/application/o/userinfo/"
headers = {"Authorization": "Bearer {}".format(access_token)}
return self.get_json(url, headers=headers)
def auth_url(self):
Expand Down

0 comments on commit 70f5056

Please sign in to comment.