类 JdbcAuthConfig
java.lang.Object
io.github.mangocrisp.spring.taybct.auth.security.config.JdbcAuthConfig
@ConditionalOnClass(org.springframework.jdbc.core.JdbcTemplate.class)
@AutoConfiguration
public class JdbcAuthConfig
extends Object
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
authorizationConsentService
(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository) org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
authorizationService
(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository) org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository
jdbcClientRepository
(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) An instance of RegisteredClientRepository for managing clients.
oauth2 用于第三方认证,RegisteredClientRepository 主要用于管理第三方(每个第三方就是一个客户端)
如果没有配置 IClientDetailsHandle,就不会配置这个com.fasterxml.jackson.databind.ObjectMapper
-
构造器详细资料
-
JdbcAuthConfig
public JdbcAuthConfig()
-
-
方法详细资料
-
jdbcClientRepository
@Bean @Order(0) @ConditionalOnMissingBean(org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository.class) public org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository jdbcClientRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) An instance of RegisteredClientRepository for managing clients.
oauth2 用于第三方认证,RegisteredClientRepository 主要用于管理第三方(每个第三方就是一个客户端)
如果没有配置 IClientDetailsHandle,就不会配置这个- 返回:
- RegisteredClientRepository
-
authorizationService
@Bean @ConditionalOnMissingBean(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService.class) public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository) -
objectMapper
public com.fasterxml.jackson.databind.ObjectMapper objectMapper() -
authorizationConsentService
@Bean @ConditionalOnMissingBean(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService.class) public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService authorizationConsentService(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
-