Skip to content

Retriving RelayState in authenticating SAMLResponse step #10434

Closed
@fr2lancer

Description

@fr2lancer

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
});

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions