Class SingleSignOnConfiguration

java.lang.Object
com.vaadin.flow.spring.security.VaadinWebSecurity
dev.hilla.sso.starter.SingleSignOnConfiguration

@AutoConfiguration @EnableWebSecurity @Conditional(org.springframework.boot.autoconfigure.security.oauth2.client.ClientsConfiguredCondition.class) @ConditionalOnProperty(name="auto-configure", prefix="hilla.sso", matchIfMissing=true) @EnableConfigurationProperties(SingleSignOnProperties.class) public class SingleSignOnConfiguration extends com.vaadin.flow.spring.security.VaadinWebSecurity
  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleSignOnConfiguration(SingleSignOnProperties properties, org.springframework.security.core.session.SessionRegistry sessionRegistry, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, org.springframework.context.ApplicationEventPublisher eventPublisher)
    Creates an instance of this configuration bean.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    org.springframework.security.web.SecurityFilterChain
    filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
     
     

    Methods inherited from class com.vaadin.flow.spring.security.VaadinWebSecurity

    addLogoutHandlers, applyUrlMapping, configure, configure, getAuthenticationContext, getDefaultHttpSecurityPermitMatcher, getDefaultHttpSecurityPermitMatcher, getDefaultWebSecurityIgnoreMatcher, getDefaultWebSecurityIgnoreMatcher, getViewAccessChecker, setLoginView, setLoginView, setLoginView, setLoginView, setOAuth2LoginPage, setStatelessAuthentication, setStatelessAuthentication, webSecurityCustomizer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SingleSignOnConfiguration

      public SingleSignOnConfiguration(SingleSignOnProperties properties, org.springframework.security.core.session.SessionRegistry sessionRegistry, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, org.springframework.context.ApplicationEventPublisher eventPublisher)
      Creates an instance of this configuration bean.
      Parameters:
      properties - the configuration properties
      sessionRegistry - the session registry
      clientRegistrationRepository - the client-registration repository
      eventPublisher - the event publisher for logout events
  • Method Details

    • backChannelLogoutSubscription

      @Bean public BackChannelLogoutSubscription backChannelLogoutSubscription()
    • singleSignOnContext

      @Bean public SingleSignOnContext singleSignOnContext()
    • bootstrapDataServiceListener

      @Bean public BootstrapDataServiceListener bootstrapDataServiceListener()
    • filterChain

      @Bean(name="VaadinSecurityFilterChainBean") public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Overrides:
      filterChain in class com.vaadin.flow.spring.security.VaadinWebSecurity
      Throws:
      Exception