我想为处理OAuth客户端身份验证的AuthenticationEventPublisher
设置一个特定的AuthenticationManager
。
我看到AuthorizationServerSecurityConfigurer
设置ClientDetailsUserDetailsService
中用于处理客户端身份验证的ProviderManager
。我找不到如何让AuthenticationManagerBuilder
设置AuthenticationEventPublisher
。
任何想法如何实现?
@Configuration
@EnableAuthorizationServer
public class AuthorizationServerConfig implements AuthorizationServerConfigurer {
@Override
public void configure(AuthorizationServerSecurityConfigurer security) throws Exception {
security.???;
}
}