Skip to content

Commit

Permalink
Remove setAuthenticationManager from HttpSecurityConfiguration
Browse files Browse the repository at this point in the history
Closes gh-11776
  • Loading branch information
marcusdacoregio committed Aug 31, 2022
1 parent f1b79e0 commit 3de421b
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ class HttpSecurityConfiguration {

private ObjectPostProcessor<Object> objectPostProcessor;

private AuthenticationManager authenticationManager;

private AuthenticationConfiguration authenticationConfiguration;

private ApplicationContext context;
Expand All @@ -70,10 +68,6 @@ void setObjectPostProcessor(ObjectPostProcessor<Object> objectPostProcessor) {
this.objectPostProcessor = objectPostProcessor;
}

void setAuthenticationManager(AuthenticationManager authenticationManager) {
this.authenticationManager = authenticationManager;
}

@Autowired
void setAuthenticationConfiguration(AuthenticationConfiguration authenticationConfiguration) {
this.authenticationConfiguration = authenticationConfiguration;
Expand Down Expand Up @@ -120,8 +114,7 @@ HttpSecurity httpSecurity() throws Exception {
}

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

private AuthenticationEventPublisher getAuthenticationEventPublisher() {
Expand Down

0 comments on commit 3de421b

Please sign in to comment.