Multiple Authentication Providers in Spring Security

I configured two authentication providers in my Spring Security configuration:

<security:authentication-manager> <security:authentication-provider ref="XProvider" /> <security:authentication-provider ref="YProvider" /> </security:authentication-manager> 

Does Spring provide security for both vendors? Or does he stop to assess if one of them will work? If not, how to stop it?

Thank.

+50
spring security
Feb 15 '12 at 23:53
source share
1 answer

You can specify as many suppliers as you want. They will be checked in the same order that you specified in the authentication tag.

After successful authentication, it will stop polling providers. If any provider AccountStatusException , it will also interrupt the polling.

+68
Apr 02 2018-12-21T00:
source share



All Articles