mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-31 08:14:18 +08:00
:refactor: 删除DelegatingAuthenticationConverter中多余的Converter
This commit is contained in:
parent
177a52d0bc
commit
78b83e70e8
@ -117,9 +117,11 @@ public class AuthorizationServerConfiguration {
|
||||
private AuthenticationConverter accessTokenRequestConverter() {
|
||||
return new DelegatingAuthenticationConverter(Arrays.asList(
|
||||
new OAuth2ResourceOwnerPasswordAuthenticationConverter(),
|
||||
new OAuth2ResourceOwnerSmsAuthenticationConverter(), new OAuth2RefreshTokenAuthenticationConverter(),
|
||||
new OAuth2ClientCredentialsAuthenticationConverter(),
|
||||
new OAuth2AuthorizationCodeAuthenticationConverter(),
|
||||
new OAuth2ResourceOwnerSmsAuthenticationConverter(),
|
||||
// OAuth2TokenEndpointFilter中构造的DelegatingAuthenticationConverter中已经创建了这三个,会重复调用
|
||||
// new OAuth2RefreshTokenAuthenticationConverter(),
|
||||
// new OAuth2ClientCredentialsAuthenticationConverter(),
|
||||
// new OAuth2AuthorizationCodeAuthenticationConverter(),
|
||||
new OAuth2AuthorizationCodeRequestAuthenticationConverter()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user