Class WebSecurityConfig

java.lang.Object
net.andresbustamante.yafoot.users.web.config.WebSecurityConfig

@Configuration @Profile({"development","production"}) @EnableWebSecurity public class WebSecurityConfig extends Object
Spring Security configuration for the users module.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.cors.CorsConfigurationSource
    Builds the bean having the CORS configuration for this Web application.
    org.springframework.security.web.SecurityFilterChain
    filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Security configuration on URL.

    Methods inherited from class java.lang.Object

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

    • WebSecurityConfig

      public WebSecurityConfig()
  • Method Details

    • filterChain

      @Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Security configuration on URL.
      Parameters:
      http -
      Returns:
      Security filter chain with updated configuration
      Throws:
      Exception
    • corsConfigurationSource

      @Bean public org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource()
      Builds the bean having the CORS configuration for this Web application.
      Returns:
      CORS configuration source bean