auth_token should be dictionary, not string

This commit is contained in:
mike cullerton 2022-10-17 16:56:31 -04:00
parent f163de61c2
commit 87f65a6c62
2 changed files with 7 additions and 3 deletions

View File

@ -77,11 +77,15 @@ def verify_token(token: Optional[str] = None) -> Dict[str, Optional[Union[str, i
# redirect to original url, with auth_token?
user_info = (
AuthenticationService.get_user_info_from_open_id(
auth_token
auth_token['access_token']
)
)
if not user_info:
raise ae
else:
raise ae
else:
raise ae
else:
raise ae
except Exception as e:

View File

@ -266,5 +266,5 @@ class AuthenticationService:
request_url = f"{open_id_server_url}/realms/{open_id_realm_name}/protocol/openid-connect/token"
response = requests.post(request_url, data=data, headers=headers)
print("get_auth_token_from_refresh_token")
return response.text
auth_token_object: dict = json.loads(response.text)
return auth_token_object