Skip to content

Commit 4835098

Browse files
committed
Add AuthenticationProvider List Configurability
Issue spring-projectsgh-5185
1 parent e9ce99a commit 4835098

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/src/main/java/org/springframework/security/config/http/AuthenticationConfigBuilder.java

+3
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ final class AuthenticationConfigBuilder {
167167
private BeanDefinition authorizationCodeGrantFilter;
168168
private BeanReference authorizationCodeAuthenticationProviderRef;
169169

170+
private final List<BeanReference> authenticationProviders = new ManagedList<>();
170171
private final Map<BeanDefinition, BeanMetadataElement> defaultDeniedHandlerMappings = new ManagedMap<>();
171172
private final Map<BeanDefinition, BeanMetadataElement> defaultEntryPointMappings = new ManagedMap<>();
172173
private final List<BeanDefinition> csrfIgnoreRequestMatchers = new ManagedList<>();
@@ -1013,6 +1014,8 @@ List<BeanReference> getProviders() {
10131014
providers.add(authorizationCodeAuthenticationProviderRef);
10141015
}
10151016

1017+
providers.addAll(this.authenticationProviders);
1018+
10161019
return providers;
10171020
}
10181021

0 commit comments

Comments
 (0)