Class AuthServerAutoConfiguration.AuthorizationServerConfiguration

java.lang.Object
io.jmix.autoconfigure.authserver.AuthServerAutoConfiguration.AuthorizationServerConfiguration
Enclosing class:
AuthServerAutoConfiguration

@Configuration(proxyBeanMethods=false) @ConditionalOnProperty(name="jmix.authserver.use-default-authorization-server-configuration", matchIfMissing=true) public static class AuthServerAutoConfiguration.AuthorizationServerConfiguration extends Object
  • Field Details

  • Constructor Details

    • AuthorizationServerConfiguration

      public AuthorizationServerConfiguration(AuthServerProperties authServerProperties)
  • Method Details

    • authorizationServerCorsSecurityFilterChain

      @Bean("authsr_AuthorizationServerCorsSecurityFilterChain") @Order(205) public org.springframework.security.web.SecurityFilterChain authorizationServerCorsSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Enables CORS for pre-flight requests to OAuth2 endpoints
      Throws:
      Exception
    • authorizationServerSecurityFilterChain

      @Bean("authsr_AuthorizationServerSecurityFilterChain") @Order(200) public org.springframework.security.web.SecurityFilterChain authorizationServerSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Throws:
      Exception
    • oAuth2AuthorizationService

      @Bean @ConditionalOnMissingBean public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService oAuth2AuthorizationService()
    • authorizationServerSettings

      @Bean public org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings authorizationServerSettings()
    • inMemoryRegisteredClientRoleAssignmentRepository

      @Bean @ConditionalOnMissingBean(RegisteredClientRoleAssignmentRepository.class) public InMemoryRegisteredClientRoleAssignmentRepository inMemoryRegisteredClientRoleAssignmentRepository()