Package io.jmix.autoconfigure.authserver
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 Summary
Fields -
Constructor Summary
Constructors -
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
protected org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
createJdbcOAuth2AuthorizationService
(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, DbmsType dbmsType) protected com.fasterxml.jackson.databind.ObjectMapper
createObjectMapper
(org.springframework.beans.factory.ObjectProvider<JdbcOAuth2AuthorizationServiceObjectMapperCustomizer> objectMapperCustomizers) org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
oAuth2AuthorizationService
(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, org.springframework.beans.factory.ObjectProvider<JdbcOAuth2AuthorizationServiceObjectMapperCustomizer> objectMapperCustomizers, DbmsType dbmsType) OAuth2ExpiredTokenCleaner
(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
-
Field Details
-
SECURITY_CONFIGURER_QUALIFIER
- See Also:
-
-
Constructor Details
-
AuthorizationServerConfiguration
-
-
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(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, org.springframework.beans.factory.ObjectProvider<JdbcOAuth2AuthorizationServiceObjectMapperCustomizer> objectMapperCustomizers, DbmsType dbmsType) -
OAuth2ExpiredTokenCleaner
@Bean("authsr_OAuth2ExpiredTokenCleaner") @ConditionalOnMissingBean public OAuth2ExpiredTokenCleaner OAuth2ExpiredTokenCleaner(org.springframework.jdbc.core.JdbcOperations jdbcOperations) -
authorizationServerSettings
@Bean public org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings authorizationServerSettings() -
inMemoryRegisteredClientRoleAssignmentRepository
@Bean @ConditionalOnMissingBean(RegisteredClientRoleAssignmentRepository.class) public InMemoryRegisteredClientRoleAssignmentRepository inMemoryRegisteredClientRoleAssignmentRepository() -
createJdbcOAuth2AuthorizationService
protected org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService createJdbcOAuth2AuthorizationService(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, DbmsType dbmsType) -
createObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper createObjectMapper(org.springframework.beans.factory.ObjectProvider<JdbcOAuth2AuthorizationServiceObjectMapperCustomizer> objectMapperCustomizers)
-