mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
!373 :refactor: 删除DelegatingAuthenticationConverter中多余的Converter
Merge pull request !373 from zouhhhhh/dev
This commit is contained in:
commit
745292d6d2
@ -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