Skip to content

Fix bug with multiple AuthenticationManager beans #9329

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

Conversation

eleftherias
Copy link
Contributor

There is no need to autowire the AuthenticationManager since we later get it from this.authenticationConfiguration.getAuthenticationManager().

private AuthenticationManager authenticationManager() throws Exception {
return (this.authenticationManager != null) ? this.authenticationManager
: this.authenticationConfiguration.getAuthenticationManager();
}

@eleftherias eleftherias self-assigned this Jan 6, 2021
@eleftherias eleftherias added in: config An issue in spring-security-config status: duplicate A duplicate of another issue type: bug A general bug labels Jan 6, 2021
@eleftherias eleftherias added this to the 5.5.0-M2 milestone Jan 6, 2021
@eleftherias eleftherias merged commit 8cefc8a into spring-projects:master Jan 6, 2021
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 status: duplicate A duplicate of another issue type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant