Skip to content
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

Delay initialization AuthenticationProvider in Global Authentication #16050

Open
wants to merge 1 commit into
base: 6.3.x
Choose a base branch
from

Conversation

kse-music
Copy link
Contributor

Related #16047

@jzheaux
Copy link
Contributor

jzheaux commented Nov 11, 2024

Given that we don't want to support the circular reference described in #16047, is there still value in making this change?

@kse-music
Copy link
Contributor Author

I think it may be useful, because this can avoid the instantiation of AuthenticationProvider caused by the GlobalAuthenticationConfigurer configuration when there are multiple AuthenticationProvider beans in the context. Since there are multiple AuthenticationProvider beans, GlobalAuthenticationConfigurer will not set the AuthenticationProvider, so there is no need to instantiate it here early.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants