Skip to content

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.

Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @kse-music! I've left some feedback inline.

@kse-music
Copy link
Contributor Author

@jzheaux I did it as you expected, and also I create another PR #16144 doing the same thing

@jzheaux jzheaux merged commit e8ba039 into spring-projects:6.3.x Nov 23, 2024
6 checks passed
@jzheaux
Copy link
Contributor

jzheaux commented Nov 23, 2024

Thanks, @kse-music! This is now merged into 6.3.x and main

@jzheaux jzheaux self-assigned this Nov 23, 2024
@jzheaux jzheaux added in: config An issue in spring-security-config type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 23, 2024
@jzheaux jzheaux added this to the 6.3.6 milestone Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants