Class SecurityConfig

java.lang.Object
com.irurueta.authserver.authorization.api.web.SecurityConfig

@Configuration(proxyBeanMethods=false) public class SecurityConfig extends Object
Security filter chains of the authorization server: the protocol endpoints chain and the login/UI chain.
  • Constructor Details

    • SecurityConfig

      public SecurityConfig()
  • Method Details

    • authorizationServerSecurityFilterChain

      @Bean @Order(1) public org.springframework.security.web.SecurityFilterChain authorizationServerSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.beans.factory.ObjectProvider<ProtocolChainCustomizer> customizers) throws Exception
      Creates the chain of the OAuth 2.1 and OpenID Connect protocol endpoints.
      Parameters:
      http - security builder.
      customizers - protocol customizers, applied in order.
      Returns:
      the protocol filter chain.
      Throws:
      Exception - if the chain cannot be built.
    • loginSecurityFilterChain

      @Bean @Order(2) public org.springframework.security.web.SecurityFilterChain loginSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.beans.factory.ObjectProvider<LoginChainCustomizer> customizers) throws Exception
      Creates the chain of the login page and the rest of the user interface.
      Parameters:
      http - security builder.
      customizers - login method customizers, applied in order.
      Returns:
      the login/UI filter chain.
      Throws:
      Exception - if the chain cannot be built.