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.
Loading...
Related Quiz
- What is the significance of the client-side load balancer, Ribbon, in a Spring Cloud environment?
- In Spring Boot, _____ allows developing reactive applications by providing an alternative to the traditional, servlet-based, blocking architecture.
- Which annotation is used in Spring Boot to update the cache whenever the underlying data changes?
- In a Spring Data JPA repository, which annotation is used to annotate a custom query when the derived query mechanism is not sufficient?
- In a Spring Security enabled project, which method is used to configure HTTP security?