Package io.jmix.autoconfigure.authserver
Class AuthServerAutoConfiguration.AuthorizationServerSecurityConfiguration
java.lang.Object
io.jmix.autoconfigure.authserver.AuthServerAutoConfiguration.AuthorizationServerSecurityConfiguration
- Enclosing class:
- AuthServerAutoConfiguration
@Configuration(proxyBeanMethods=false)
public static class AuthServerAutoConfiguration.AuthorizationServerSecurityConfiguration
extends Object
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAuthorizationServerSecurityConfiguration
(AuthServerProperties authServerProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.SecurityFilterChain
authorizationServerCorsSecurityFilterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Enables CORS for pre-flight requests to OAuth2 endpointsorg.springframework.security.web.SecurityFilterChain
authorizationServerSecurityFilterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings
org.springframework.security.web.SecurityFilterChain
loginFormSecurityFilterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
Field Details
-
SECURITY_CONFIGURER_QUALIFIER
- See Also:
-
LOGIN_FORM_SECURITY_CONFIGURER_QUALIFIER
- See Also:
-
-
Constructor Details
-
AuthorizationServerSecurityConfiguration
-
-
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
-
loginFormSecurityFilterChain
@Bean("authsr_LoginFormSecurityFilterChain") @Order(210) public org.springframework.security.web.SecurityFilterChain loginFormSecurityFilterChain(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()
-