-
Notifications
You must be signed in to change notification settings - Fork 6k
Document Custom RelayState Parameter Resolution #14417
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
An xml sample configuring |
Hi, @abhishek-bafna-amdhan, thanks for reaching out. It sounds like you want to configure a custom way to set the You can do this by customizing the public class RelayStateResolver implements Converter<HttpServletRequest, String> {
// ... your custom implementation
} <http>
<saml2-login authentication-request-resolver-ref="ref" ... />
...
</http>
<b:beans name="relayStateResolver" class="RelayStateResolver"/>
<b:beans name="ref" class="org.springframework.security.saml2.provider.service.web.authentication.OpenSaml4AuthenticationRequestResolver"/>
<b:property name="relayStateResolver" ref="relayStateResolver"/>
</b:beans> I can see this isn't covered in the reference, so I'll keep this ticket open to update that. Does that seem sufficient to address your issue? |
Hi @jzheaux, thanks for getting back to me. I'm hoping you might be able to clarify something for me about the reference for " |
@abhishek-bafna-amdhan, this has hopefully been alleviated in 6.1, which introduces a constructor in |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Thank you for looking into this. The resolution provided by #14487 will resolve this issue. Thanks again! |
I want to set the RelayState parameter so that I can pass a redirectUrl received at runtime from a different request. This was possible in the SAML extension library by overriding the
getProfileOptions()
method of theSAMLEntryPoint
class. However, it is not possible to do the same in Spring Security even with the following XML configuration:I cannot find a sample application that showcases how to create a
relying-party-registration-repository
bean where I can pass the relying-party-registrations to its constructor. Therelying-party-registrations
should allowalias
to be used as a reference in some other place.The text was updated successfully, but these errors were encountered: