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