在AuthorizationServerConfigurer

时间:2016-08-31 08:35:04

标签: spring-security spring-security-oauth2

我想为处理OAuth客户端身份验证的AuthenticationEventPublisher设置一个特定的AuthenticationManager

我看到AuthorizationServerSecurityConfigurer设置ClientDetailsUserDetailsService中用于处理客户端身份验证的ProviderManager。我找不到如何让AuthenticationManagerBuilder设置AuthenticationEventPublisher

任何想法如何实现?

@Configuration
@EnableAuthorizationServer
public class AuthorizationServerConfig implements AuthorizationServerConfigurer {
    @Override
    public void configure(AuthorizationServerSecurityConfigurer security) throws Exception {
        security.???;
    }
}

0 个答案:

没有答案