Package io.jmix.saml

Class SamlVaadinWebSecurity

Direct Known Subclasses:
SamlAutoConfiguration.DefaulSamlVaadinWebSecurity

public class SamlVaadinWebSecurity extends AbstractFlowuiWebSecurity
Provides Vaadin security to the project. Configures authentication using the SAML 2.0 provider.
  • Field Details

    • samlUserMapper

      @Autowired protected SamlUserMapper<? extends JmixSamlUserDetails> samlUserMapper
    • relyingPartyRegistrationRepository

      @Autowired protected org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepository relyingPartyRegistrationRepository
    • samlProperties

      @Autowired protected SamlProperties samlProperties
    • additionalConfigurers

      @Autowired(required=false) protected List<SamlHttpSecurityConfigurer> additionalConfigurers
  • Constructor Details

    • SamlVaadinWebSecurity

      public SamlVaadinWebSecurity()
  • Method Details

    • configureJmixSpecifics

      protected void configureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Overrides:
      configureJmixSpecifics in class AbstractFlowuiWebSecurity
      Throws:
      Exception
    • configureVaadinSpecifics

      protected void configureVaadinSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
      Specified by:
      configureVaadinSpecifics in class AbstractFlowuiWebSecurity
    • getSamlLoginUrl

      protected String getSamlLoginUrl()
      Mirrors the default Spring Security SAML login behavior so that Vaadin navigation access control points unauthenticated users to the same login URL.
    • createAuthenticationProvider

      protected org.springframework.security.saml2.provider.service.authentication.OpenSaml5AuthenticationProvider createAuthenticationProvider(SamlUserMapper<?> samlUserMapper)
    • createSamlLogoutSuccessHandler

      protected org.springframework.security.web.authentication.logout.LogoutSuccessHandler createSamlLogoutSuccessHandler()
    • createRelyingPartyRegistrationRepositoryWrapperWithRedirectBinding

      protected org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepository createRelyingPartyRegistrationRepositoryWrapperWithRedirectBinding(org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepository originalRepository)
    • isForceRedirectBindingLogout

      protected boolean isForceRedirectBindingLogout()
    • initNavigationAccessControlLoginView

      protected void initNavigationAccessControlLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, String loginView)
    • createSamlAuthConverter

      protected org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSaml5AuthenticationProvider.ResponseToken,? extends org.springframework.security.authentication.AbstractAuthenticationToken> createSamlAuthConverter(SamlUserMapper<?> samlUserMapper)