From 70f5056c0d362eca4ddfeb9056836ecbadc47fa3 Mon Sep 17 00:00:00 2001 From: Wiktor Przybylski Date: Sat, 16 Mar 2024 17:29:03 +0100 Subject: [PATCH] lacking slashes --- auth/backend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/backend.py b/auth/backend.py index 960e878..fc2e688 100644 --- a/auth/backend.py +++ b/auth/backend.py @@ -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' @@ -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):