Class Saml2LoginConfigurer<B extends HttpSecurityBuilder<B>>

  • All Implemented Interfaces:
    SecurityConfigurer<DefaultSecurityFilterChain,​B>

    public final class Saml2LoginConfigurer<B extends HttpSecurityBuilder<B>>
    extends AbstractAuthenticationFilterConfigurer<B,​Saml2LoginConfigurer<B>,​org.springframework.security.saml2.provider.service.servlet.filter.Saml2WebSsoAuthenticationFilter>
    An AbstractHttpConfigurer for SAML 2.0 Login, which leverages the SAML 2.0 Web Browser Single Sign On (WebSSO) Flow.

    SAML 2.0 Login provides an application with the capability to have users log in by using their existing account at an SAML 2.0 Identity Provider.

    Defaults are provided for all configuration options with the only required configuration being relyingPartyRegistrationRepository(RelyingPartyRegistrationRepository) . Alternatively, a RelyingPartyRegistrationRepository @Bean may be registered instead.

    Security Filters

    The following Filter's are populated:
    • Saml2WebSsoAuthenticationFilter
    • Saml2WebSsoAuthenticationRequestFilter

    Shared Objects Created

    The following shared objects are populated:
    • RelyingPartyRegistrationRepository (required)
    • Saml2AuthenticationRequestFactory (optional)

    Shared Objects Used

    The following shared objects are used:
    • RelyingPartyRegistrationRepository (required)
    • Saml2AuthenticationRequestFactory (optional)
    • DefaultLoginPageGeneratingFilter - if loginPage(String) is not configured and DefaultLoginPageGeneratingFilter is available, than a default login page will be made available
    Since:
    5.2
    See Also:
    HttpSecurity.saml2Login(), Saml2WebSsoAuthenticationFilter, Saml2WebSsoAuthenticationRequestFilter, RelyingPartyRegistrationRepository, AbstractAuthenticationFilterConfigurer