Skip to content

Add a method named authenticationProviders() in HttpSecurityBuilder #14586

Closed
@ghusta

Description

@ghusta

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 ?

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configstatus: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions