Class SecurityConfig

java.lang.Object
com.easy_model.webservice.securityhelpers.SecurityConfig

@Configuration @EnableWebSecurity @EnableMethodSecurity(securedEnabled=true, jsr250Enabled=true) @EnableScheduling public class SecurityConfig extends Object
Author:
thoma Enable Method security
  • Constructor Details

    • SecurityConfig

      public SecurityConfig()
  • Method Details

    • authenticationManager

      @Bean public org.springframework.security.authentication.AuthenticationManager authenticationManager(org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration authConfig) throws Exception
      Throws:
      Exception
    • filterChain

      @Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, JwtAuthenticationConverter jwtAuthenticationConverter) throws Exception
      Throws:
      Exception
    • corsConfigurationSource

      @Bean public org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource(AllowedOrigins allowedOrigins)