-
Notifications
You must be signed in to change notification settings - Fork 6k
SAML 2.0 LogoutRequest should contain session indexes #10613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Olbix, thanks for the suggestion. I think session indexes will need to be remembered in the Are you able to provide a PR that adds this feature? |
Just sharing a workaround for the time being using a custom Saml2LogoutRequestResolver:
In combination with a custom SessionIndex since it it a protected class:
and a custom authenticationProvider:
and wiring it all together:
|
Expected Behavior
Currently "LogoutRequest" is missing "SessionIndex" attributes, some IdPs might have a problem with accepting such requests. It would be great if we could have it implemented as it was in the currently deprecated SAML Library. IMHO, OpenSamlLogoutRequestResolver should have implemented similar logic to https://github.com/spring-projects/spring-security-saml/blob/main/core/src/main/java/org/springframework/security/saml/websso/SingleLogoutProfileImpl.java#L110
Current Behavior
Saml2LogoutRequestResolver constructs "LogoutRequest" with usage of OpenSamlLogoutRequestResolver which does not add SessionIndex to "LogoutRequest" , so that IdP returns "urn:oasis:names:tc:SAML:2.0:status:Requester" response code, and SLO is not conducted in proper way
Version
5.6
The text was updated successfully, but these errors were encountered: