Add reason details in event before error event is submitted for broken SAML requests (#29948)
Previously the reason was omitted in the details because it was set after the event was already submitted. Fixes #29948 Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
This commit is contained in:
parent
bbb83236f5
commit
4edb204777
1 changed files with 1 additions and 1 deletions
|
@ -291,8 +291,8 @@ public class SamlService extends AuthorizationEndpointBase {
|
|||
event.event(EventType.LOGOUT);
|
||||
} else {
|
||||
event.event(EventType.LOGIN);
|
||||
event.error(Errors.INVALID_TOKEN);
|
||||
event.detail(Details.REASON, "Unhandled SAML document type: " + (samlObject == null ? "<null>" : samlObject.getClass().getSimpleName()));
|
||||
event.error(Errors.INVALID_TOKEN);
|
||||
return error(session, null, Response.Status.BAD_REQUEST, Messages.INVALID_REQUEST);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue