Skip to content

Commit

Permalink
Add AuthenticationProvider List Configurability
Browse files Browse the repository at this point in the history
Issue gh-5185
  • Loading branch information
jzheaux committed Mar 2, 2020
1 parent 34b40de commit f1a2d69
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -167,6 +167,7 @@ final class AuthenticationConfigBuilder {
private BeanDefinition authorizationCodeGrantFilter;
private BeanReference authorizationCodeAuthenticationProviderRef;

private final List<BeanReference> authenticationProviders = new ManagedList<>();
private final Map<BeanDefinition, BeanMetadataElement> defaultDeniedHandlerMappings = new ManagedMap<>();
private final Map<BeanDefinition, BeanMetadataElement> defaultEntryPointMappings = new ManagedMap<>();
private final List<BeanDefinition> csrfIgnoreRequestMatchers = new ManagedList<>();
Expand Down Expand Up @@ -1013,6 +1014,8 @@ List<BeanReference> getProviders() {
providers.add(authorizationCodeAuthenticationProviderRef);
}

providers.addAll(this.authenticationProviders);

return providers;
}

Expand Down

0 comments on commit f1a2d69

Please sign in to comment.