public class Saml2WebSsoAuthenticationRequestFilter
extends org.springframework.web.filter.OncePerRequestFilter
Filter
formulates a
SAML 2.0 AuthnRequest (line 1968)
and redirects to a configured asserting party.
It supports the HTTP-Redirect (line 520) and HTTP-POST (line 753) bindings.
By default, this Filter
responds to authentication requests
at the URI
/oauth2/authorization/{registrationId}
.
The URI
template variable {registrationId}
represents the
registration identifier
of the relying party
that is used for initiating the authentication request.
Constructor and Description |
---|
Saml2WebSsoAuthenticationRequestFilter(RelyingPartyRegistrationRepository relyingPartyRegistrationRepository)
Deprecated.
use the constructor that takes a
Saml2AuthenticationRequestFactory |
Saml2WebSsoAuthenticationRequestFilter(Saml2AuthenticationRequestContextResolver authenticationRequestContextResolver,
Saml2AuthenticationRequestFactory authenticationRequestFactory)
Construct a
Saml2WebSsoAuthenticationRequestFilter with the provided parameters |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
void |
setAuthenticationRequestFactory(Saml2AuthenticationRequestFactory authenticationRequestFactory)
Deprecated.
use the constructor instead
|
void |
setRedirectMatcher(RequestMatcher redirectMatcher)
Use the given
RequestMatcher that activates this filter for a given request |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
@Deprecated public Saml2WebSsoAuthenticationRequestFilter(RelyingPartyRegistrationRepository relyingPartyRegistrationRepository)
Saml2AuthenticationRequestFactory
Saml2WebSsoAuthenticationRequestFilter
with the provided parametersrelyingPartyRegistrationRepository
- a repository for relying party configurationspublic Saml2WebSsoAuthenticationRequestFilter(Saml2AuthenticationRequestContextResolver authenticationRequestContextResolver, Saml2AuthenticationRequestFactory authenticationRequestFactory)
Saml2WebSsoAuthenticationRequestFilter
with the provided parametersauthenticationRequestContextResolver
- a strategy for formulating a Saml2AuthenticationRequestContext
@Deprecated public void setAuthenticationRequestFactory(Saml2AuthenticationRequestFactory authenticationRequestFactory)
Saml2AuthenticationRequestFactory
for formulating the SAML 2.0 AuthnRequestauthenticationRequestFactory
- the Saml2AuthenticationRequestFactory
to usepublic void setRedirectMatcher(RequestMatcher redirectMatcher)
RequestMatcher
that activates this filter for a given requestredirectMatcher
- the RequestMatcher
to useprotected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, java.io.IOException
doFilterInternal
in class org.springframework.web.filter.OncePerRequestFilter
javax.servlet.ServletException
java.io.IOException