AuthenticationEventPublisher DSL Lookup

Fixes gh-4400
This commit is contained in:
Josh Cummings
2020-01-09 13:43:47 -07:00
parent 5579846263
commit f1f158b37e
2 changed files with 32 additions and 1 deletions

View File

@@ -201,7 +201,6 @@ public abstract class WebSecurityConfigurerAdapter implements
AuthenticationManager authenticationManager = authenticationManager();
authenticationBuilder.parentAuthenticationManager(authenticationManager);
authenticationBuilder.authenticationEventPublisher(eventPublisher);
Map<Class<?>, Object> sharedObjects = createSharedObjects();
http = new HttpSecurity(objectPostProcessor, authenticationBuilder,
@@ -383,6 +382,11 @@ public abstract class WebSecurityConfigurerAdapter implements
return super.eraseCredentials(eraseCredentials);
}
@Override
public AuthenticationManagerBuilder authenticationEventPublisher(AuthenticationEventPublisher eventPublisher) {
authenticationBuilder.authenticationEventPublisher(eventPublisher);
return super.authenticationEventPublisher(eventPublisher);
}
};
}