clientDetailsService, OAuth2RequestFactory requestFactory) {
this(authenticationManager, tokenServices..., clientDetailsService, requestFactory, GRANT_TYPE);
}
protected ResourceOwnerPasswordTokenGranter...clientDetailsService, OAuth2RequestFactory requestFactory, String grantType) {
super(tokenServices..., clientDetailsService, requestFactory, grantType);
this.authenticationManager = authenticationManager..., clientDetailsService);
}
这里额外判断了如果没有被覆盖的话,才设置userDetailsService
其他
之前AuthorizationServerSecurityConfigurer