Merge pull request #207 from sartography/fix/oauth-error-logging

backend: log oauth payload on invalid_token error
This commit is contained in:
Kevin Burnett 2023-04-07 16:52:28 +00:00 committed by GitHub
commit b0d6053209

View File

@ -264,6 +264,7 @@ def login_return(code: str, state: str, session_state: str = "") -> Optional[Res
)
else:
current_app.logger.error(f"id_token not found in payload from provider: {auth_token_object}")
raise ApiError(
error_code="invalid_token",
message="Login failed. Please try again",