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() {
|
private AuthenticationConverter accessTokenRequestConverter() {
|
||||||
return new DelegatingAuthenticationConverter(Arrays.asList(
|
return new DelegatingAuthenticationConverter(Arrays.asList(
|
||||||
new OAuth2ResourceOwnerPasswordAuthenticationConverter(),
|
new OAuth2ResourceOwnerPasswordAuthenticationConverter(),
|
||||||
new OAuth2ResourceOwnerSmsAuthenticationConverter(), new OAuth2RefreshTokenAuthenticationConverter(),
|
new OAuth2ResourceOwnerSmsAuthenticationConverter(),
|
||||||
new OAuth2ClientCredentialsAuthenticationConverter(),
|
// OAuth2TokenEndpointFilter中构造的DelegatingAuthenticationConverter中已经创建了这三个,会重复调用
|
||||||
new OAuth2AuthorizationCodeAuthenticationConverter(),
|
// new OAuth2RefreshTokenAuthenticationConverter(),
|
||||||
|
// new OAuth2ClientCredentialsAuthenticationConverter(),
|
||||||
|
// new OAuth2AuthorizationCodeAuthenticationConverter(),
|
||||||
new OAuth2AuthorizationCodeRequestAuthenticationConverter()));
|
new OAuth2AuthorizationCodeRequestAuthenticationConverter()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user