Class WebSecurityConfiguration

java.lang.Object
com.cumulocity.microservice.security.configuration.WebSecurityConfiguration

@Order(99) @Configuration(proxyBeanMethods=false) @EnableWebSecurity @Import({CumulocityOAuthConfiguration.class,PrePostFiltersConfiguration.class}) public class WebSecurityConfiguration extends Object
  • Constructor Details

    • WebSecurityConfiguration

      public WebSecurityConfiguration()
  • Method Details

    • configureAuthenticationManager

      @Autowired public void configureAuthenticationManager(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
      Throws:
      Exception
    • passwordEncoder

      @Bean public static org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
    • securityFilterChain

      @Bean public org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, CumulocityOAuthMicroserviceFilter cumulocityOAuthMicroserviceFilter, PreAuthenticateServletFilter preAuthenticateServletFilter, PostAuthenticateServletFilter postAuthenticateServletFilter, org.springframework.beans.factory.ObjectProvider<org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>>> sessionManagementConfigurer) throws Exception
      Throws:
      Exception