You are developing an application with multiple authentication providers, including LDAP and a custom database. How would you configure Spring Security to authenticate users using multiple authentication providers?

  • Using AuthenticationManagerBuilder with authenticationProvider()
  • Creating separate login pages for each authentication provider
  • Implementing custom login logic in each provider
  • Using Spring Security's default AuthenticationProvider
To configure Spring Security to authenticate users using multiple providers, you would typically use AuthenticationManagerBuilder with authenticationProvider() to specify each authentication provider. This allows Spring Security to check against multiple providers for authentication. The other options are not standard practices for achieving this goal.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *