-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate AuthenticationProvider #11428
Comments
I agree that we should simplify the current design of
Most (likely all) A more logical name would be I realize this is a much bigger change since we would introduce a new interface Have we considered deprecating |
Interesting idea; I can see your point about the semantics around the word "manager". Yes, it does sound like a big change. Some other things that come to mind are Honestly, as nice as it would be to not have "XXXManager" components, it feels like too big of a change for too small of a benefit. Just my 2c, though. |
I personally feel we should hold off on these changes until after |
Thanks, @jgrandja. I don't see the name as a compromise, given that we have several other components that follow that naming convention. Stating that to stick with To change that norm is to widen the scope of what is intended by this ticket. IOW, we can deprecate
I'm open to this discussion, but I'm not clear on what you mean by "more intuitive". Are you referring to something other than the name of the class? That is, I don't see this as much of a design discussion unless you are stating that the contract itself should be different. For example, the reactive bits provide ample design guidance. More to the point, even if you are proposing a different contract, it still seems like this ticket is about the removal of existing unnecessary complexity. If we want to later introduce a new contract, we can do that as a separate effort. |
AuthenticationManager
andAuthenticationProvider
have the same primary signature. In an effort to simplify the API,AuthenticationProvider
should be deprecated.Here is an initial list:
AuthenticationProvider
s implementAuthorizationManager
DelegatingAuthenticationManager
to replaceProviderManager
AuthenticationManager
for each authentication mechanismAuthenticationManager
by default for each authentication mechanismauthentication-provider
XML supportauthenticationProvider()
AuthenticationProviderManagerAdapter
to adaptAuthenticationProvider
s intoAuthenticationManager
s@Bean
support for multipleAuthenticationManager
sThe text was updated successfully, but these errors were encountered: