Remove setAuthenticationManager from HttpSecurityConfiguration
Closes gh-11776
This commit is contained in:
parent
f1b79e08cb
commit
3de421be3a
|
@ -56,8 +56,6 @@ class HttpSecurityConfiguration {
|
|||
|
||||
private ObjectPostProcessor<Object> objectPostProcessor;
|
||||
|
||||
private AuthenticationManager authenticationManager;
|
||||
|
||||
private AuthenticationConfiguration authenticationConfiguration;
|
||||
|
||||
private ApplicationContext context;
|
||||
|
@ -70,10 +68,6 @@ class HttpSecurityConfiguration {
|
|||
this.objectPostProcessor = objectPostProcessor;
|
||||
}
|
||||
|
||||
void setAuthenticationManager(AuthenticationManager authenticationManager) {
|
||||
this.authenticationManager = authenticationManager;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
void setAuthenticationConfiguration(AuthenticationConfiguration authenticationConfiguration) {
|
||||
this.authenticationConfiguration = authenticationConfiguration;
|
||||
|
@ -120,8 +114,7 @@ class HttpSecurityConfiguration {
|
|||
}
|
||||
|
||||
private AuthenticationManager authenticationManager() throws Exception {
|
||||
return (this.authenticationManager != null) ? this.authenticationManager
|
||||
: this.authenticationConfiguration.getAuthenticationManager();
|
||||
return this.authenticationConfiguration.getAuthenticationManager();
|
||||
}
|
||||
|
||||
private AuthenticationEventPublisher getAuthenticationEventPublisher() {
|
||||
|
|
Loading…
Reference in New Issue