Add a method named authenticationProviders() in HttpSecurityBuilder #14586
Labels
in: config
An issue in spring-security-config
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Could you consider adding a method
authenticationProviders()
in interfaceHttpSecurityBuilder
?It could take varargs or List as parameter.
Expected Behavior
It would make it more obvious that HttpSecurity can accept multiple Authentication Providers.
Current Behavior
httpSecurity.authenticationProvider()
must be called multiple times. The order is of course important.Currently,
ProviderManager
already supports this behaviour, with constructors like :public ProviderManager(AuthenticationProvider... providers)
public ProviderManager(List<AuthenticationProvider> providers)
Related with #11428 ?
The text was updated successfully, but these errors were encountered: