Skip to content

Commit

Permalink
token settings tweaking, debug off
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzyb authored Mar 16, 2024
1 parent 4a68ebf commit a2cfd4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions auth/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HSWawOAuth2(BaseOAuth2):
ID_KEY = "username"
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"]
DEFAULT_SCOPE = ["openid","profile","email"]
ACCESS_TOKEN_METHOD = 'POST'
REQUEST_TOKEN_METHOD = 'POST'
REDIRECT_STATE = False
Expand All @@ -32,9 +32,9 @@ def user_data(self, access_token, *args, **kwargs):
"""Loads user data from service"""
url = "https://auth.apps.hskrk.pl/application/o/userinfo/"
headers = {"Authorization": "Bearer {}".format(access_token)}
print(url)
print(headers)
print(access_token)
# print(url)
# print(headers)
# print(access_token)
return self.get_json(url, headers=headers)
def auth_url(self):
"""Return redirect url"""
Expand Down

0 comments on commit a2cfd4d

Please sign in to comment.