Spring Boot安全性多重身份验证

时间:2016-06-08 02:10:35

标签: java spring-mvc spring-security spring-boot

我正在使用 spring boot spring security 启动一个Web项目。

首先,我使用jdbcAuthentication登录;连接成功。

其次,我使用ldapAuthentication登录;同样,这种联系也很成功。

我想结合这两种身份验证,因此当用户使用“... @ abc.com”登录时,spring安全性将使用ldapAuthentication进行身份验证,如果没有,则spring security将使用{{进行身份验证1}}。

我正在寻找这样的例子:

jdbcAuthentication

有没有人有同样的问题?

0 个答案:

没有答案