Spring Security 推荐教程

2019-10-17  本文已影响0人  guideEmotion

下面两个都是基于SpringBoot+Spring Security 5.0的

一 Filter会调用AuthenticationManager来认证,AuthenticationManager 又会调用AuthenticationProvider来处理。我们如何注册自定义的AuthenticationProvider?

目前资料发现三种方式

@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(customAuthenticationProvider);
}

上一篇 下一篇

猜你喜欢

热点阅读