Closed
Description
Could you consider adding a method authenticationProviders()
in interface HttpSecurityBuilder
?
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 ?