Set AuthenticationEventPublisher on each AuthenticationManagerBuilder

Fixes gh-6009
This commit is contained in:
Joe Grandja
2018-10-23 14:08:23 -04:00
parent 0c32cbd862
commit d6da4d20b4
3 changed files with 43 additions and 5 deletions

View File

@@ -200,6 +200,7 @@ public abstract class WebSecurityConfigurerAdapter implements
AuthenticationManager authenticationManager = authenticationManager();
authenticationBuilder.parentAuthenticationManager(authenticationManager);
authenticationBuilder.authenticationEventPublisher(eventPublisher);
Map<Class<? extends Object>, Object> sharedObjects = createSharedObjects();
http = new HttpSecurity(objectPostProcessor, authenticationBuilder,