Add Saml2AuthenticationRequestContextResolver #8360
Labels
in: saml2
An issue in SAML2 modules
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
type: enhancement
A general enhancement
Milestone
Related to #8356
In order for implementations of
Saml2AuthenticationRequestFactory
to take advantage of customSaml2AuthenticationRequestContext
instances, an application needs to create a custom filter, replacingSaml2WebSsoAuthenticationRequestFilter
.It would be simpler to have an API dedicated to resolving the
Saml2AuthenticationRequestContext
from theHttpServletRequest
andRelyingPartyRegistration
:The default implementation should extract the logic for formulating the
Saml2AuthenticationRequestContext
fromSaml2WebSsoAuthenticationRequestFilter
.Saml2WebSsoAuthenticationRequestFilter
should use theDefaultSaml2AuthenticationRequestContextResolver
by default and have a setter for configuring aSaml2AuthenticationRequestContextResolver
instance.The interface and default implementation should be in
org.springframework.security.saml2.provider.service.web
. Note that the implementation currently inSaml2WebSsoAuthenticationRequestFilter
refers to some package-private utility classes. They are rather small, so it will probably be best to inline them intoDefaultSaml2AuthenticationRequestContextResolver
for the time being.The text was updated successfully, but these errors were encountered: