Description
Expected Behavior
I want to be able to change all SAML2 URLs to be able to e.g. add a prefix.
Current Behavior
Some URLs are customizable, like Saml2LoginConfigurer.loginProcessingUrl
.
While some are not, e.g. Saml2LoginConfigurer.AuthenticationRequestEndpointConfig.filterProcessingUrl
(/saml2/authenticate/{registrationId}
).
Context
A workaround for adding a path prefix is using the server.servlet.context-path
.
But this doesn't work if you want to tweak URLs to be similar to an already existing solution created with the old SAML module.
Although assuming you want /auth
as a prefix, and after login you want to redirect to the root /
and not /auth/
,
you cannot use the default success handler. You need to create a custom one with a redirect strategy which is not context relative.