Add AuthenticationProvider List Configurability

Issue gh-5185
This commit is contained in:
Josh Cummings 2019-12-30 09:17:25 -07:00
parent 34b40deb38
commit f1a2d69968
1 changed files with 3 additions and 0 deletions

View File

@ -167,6 +167,7 @@ final class AuthenticationConfigBuilder {
private BeanDefinition authorizationCodeGrantFilter; private BeanDefinition authorizationCodeGrantFilter;
private BeanReference authorizationCodeAuthenticationProviderRef; private BeanReference authorizationCodeAuthenticationProviderRef;
private final List<BeanReference> authenticationProviders = new ManagedList<>();
private final Map<BeanDefinition, BeanMetadataElement> defaultDeniedHandlerMappings = new ManagedMap<>(); private final Map<BeanDefinition, BeanMetadataElement> defaultDeniedHandlerMappings = new ManagedMap<>();
private final Map<BeanDefinition, BeanMetadataElement> defaultEntryPointMappings = new ManagedMap<>(); private final Map<BeanDefinition, BeanMetadataElement> defaultEntryPointMappings = new ManagedMap<>();
private final List<BeanDefinition> csrfIgnoreRequestMatchers = new ManagedList<>(); private final List<BeanDefinition> csrfIgnoreRequestMatchers = new ManagedList<>();
@ -1013,6 +1014,8 @@ final class AuthenticationConfigBuilder {
providers.add(authorizationCodeAuthenticationProviderRef); providers.add(authorizationCodeAuthenticationProviderRef);
} }
providers.addAll(this.authenticationProviders);
return providers; return providers;
} }