You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior
I want to add a custom AuthenticationProviderthrough the authenticationProvider method of OAuth2TokenEndpointConfigurer, and I want to keep the AuthenticationProvider provided by default.
Current Behavior
If I add a new AuthenticationProvider I cannot keep the defaultAuthenticationProvider, because I see the following code from OAuth2TokenEndpointConfigurer
If this.authenticationProviders is not empty, then the default AuthenticationProvider will not be created.
If I want to achieve my goal, I must manually add the default AuthenticationProvider and my custom implementation together. I think this design is not very flexible.
Context
Is it possible to change the private <B extends HttpSecurityBuilder<B>> List<AuthenticationProvider> createDefaultAuthenticationProviders(B builder) method to public, or add a new method to add the default AuthenticationProviders
The text was updated successfully, but these errors were encountered:
Expected Behavior
I want to add a custom
AuthenticationProvider
through theauthenticationProvider
method ofOAuth2TokenEndpointConfigurer
, and I want to keep theAuthenticationProvider
provided by default.Current Behavior
If I add a new
AuthenticationProvider
I cannot keep the defaultAuthenticationProvider
, because I see the following code fromOAuth2TokenEndpointConfigurer
If
this.authenticationProviders
is not empty, then the defaultAuthenticationProvider
will not be created.If I want to achieve my goal, I must manually add the default
AuthenticationProvider
and my custom implementation together. I think this design is not very flexible.Context
Is it possible to change the
private <B extends HttpSecurityBuilder<B>> List<AuthenticationProvider> createDefaultAuthenticationProviders(B builder)
method topublic
, or add a new method to add the defaultAuthenticationProviders
The text was updated successfully, but these errors were encountered: