public class ApiBootAuthorizationServerAutoConfiguration extends ApiBootAuthorizationServerConfiguration
| 限定符和类型 | 字段和说明 |
|---|---|
protected ApiBootOauthProperties |
apiBootOauthProperties
注入属性配置
|
| 构造器和说明 |
|---|
ApiBootAuthorizationServerAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<ApiBootOauthTokenGranter>> objectProvider,
ApiBootOauthProperties apiBootOauthProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.oauth2.provider.token.AccessTokenConverter |
defaultAccessTokenConverter()
默认token转换
不配置jwt转换时
|
org.springframework.security.oauth2.provider.token.AccessTokenConverter |
jwtAccessTokenConverter()
配置jwt生成token的转换
使用自定义Sign Key 进行加密
|
configure, configure, passwordEncoderprotected ApiBootOauthProperties apiBootOauthProperties
public ApiBootAuthorizationServerAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<ApiBootOauthTokenGranter>> objectProvider, ApiBootOauthProperties apiBootOauthProperties)
@Bean
@ConditionalOnProperty(prefix="api.boot.oauth",
name="jwt.enable",
havingValue="true")
public org.springframework.security.oauth2.provider.token.AccessTokenConverter jwtAccessTokenConverter()
@Bean
@ConditionalOnProperty(prefix="api.boot.oauth",
name="jwt.enable",
havingValue="false",
matchIfMissing=true)
public org.springframework.security.oauth2.provider.token.AccessTokenConverter defaultAccessTokenConverter()
Copyright © 2019. All rights reserved.