身份验证提供者Spring Security 5

时间:2020-01-22 16:32:38

标签: spring spring-security

我的WebSecurityConfigurerAdapter类使用AuthenticationProvider

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

authenticate()方法中fusionAuthProvider中的内容就是要进行身份验证的流程。 我正在开发API RESTful。因此,有一种方法可以说,当我使用控制器或类似的工具击中某个端点(例如“ / login_with_that_provider”)时,我想使用该提供程序?

0 个答案:

没有答案