未验证 提交 745292d6 编写于 作者: L lbw 提交者: Gitee

!373 :refactor: 删除DelegatingAuthenticationConverter中多余的Converter

Merge pull request !373 from zouhhhhh/dev
......@@ -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()));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册