diff --git a/src/spiffworkflow_backend/routes/user.py b/src/spiffworkflow_backend/routes/user.py index 9133ef7a..ae75ec50 100644 --- a/src/spiffworkflow_backend/routes/user.py +++ b/src/spiffworkflow_backend/routes/user.py @@ -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: diff --git a/src/spiffworkflow_backend/services/authentication_service.py b/src/spiffworkflow_backend/services/authentication_service.py index 8b0aa2e8..5d248db7 100644 --- a/src/spiffworkflow_backend/services/authentication_service.py +++ b/src/spiffworkflow_backend/services/authentication_service.py @@ -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