mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-12 18:44:14 +00:00
Merge pull request #207 from sartography/fix/oauth-error-logging
backend: log oauth payload on invalid_token error
This commit is contained in:
commit
b0d6053209
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user