Class SSOAuthConfig

java.lang.Object
com.almis.awe.autoconfigure.SSOAuthConfig

@Configuration @ConditionalOnProperty(prefix="awe.security.sso", name="enabled", havingValue="true") @EnableWebSecurity @EnableMethodSecurity public class SSOAuthConfig extends Object
SSO OAuth configuration class
  • Field Details

  • Constructor Details

  • Method Details

    • oauth2FilterChain

      @Bean public org.springframework.security.web.SecurityFilterChain oauth2FilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Configures the security filter chain for handling HTTP requests, OAuth2 login, and logout.
      Parameters:
      http - HttpSecurity object to define web-based security at the HTTP level
      Returns:
      SecurityFilterChain for filtering and securing HTTP requests
      Throws:
      Exception - in case of an error during configuration
    • authSuccessHandler

      @Bean @ConditionalOnMissingBean public AweOauth2AuthenticationSuccessHandler authSuccessHandler()