Closed
Description
Summary
Current codes doesn't seem to provide the way to get RelayState from authenticationManager, Saml2AuthenticationTokenConverter in order to work with custom logic.
Actual Behavior
There seems to have no methods to provide RelayState from SAMLResponse step.
So need to create Saml2AuthenticationToken, Saml2AuthenticationTokenConverter.
Ended up, I got blocked by OpenSaml4AuthenticationProvider
Expected Behavior
I want to have RelayState value in the scope of setResponseAuthenticationConverter or authenticationConverter
Configuration
spring security saml provider, spring
Version
spring security saml provider - 5.5.3
Sample
AuthenticationProvider.setResponseAuthenticationConverter((Converter)new CustomResponseSaml2AuthenticationTokenConverter(
relyingPartyRegistrationResolver));
(responseToken) -> {
// responseToken.getRelayState() like this? or other steps in processing SAMLResponse
});