Corrected AuthenticationEventPublisher Type

This commit is contained in:
Xi Minghui 2024-09-04 01:55:01 +08:00 committed by Josh Cummings
parent 00e4a8fb54
commit d23f283598
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public AuthenticationEventPublisher authenticationEventPublisher
Map<Class<? extends AuthenticationException>,
Class<? extends AbstractAuthenticationFailureEvent>> mapping =
Collections.singletonMap(FooException.class, FooEvent.class);
AuthenticationEventPublisher authenticationEventPublisher =
DefaultAuthenticationEventPublisher authenticationEventPublisher =
new DefaultAuthenticationEventPublisher(applicationEventPublisher);
authenticationEventPublisher.setAdditionalExceptionMappings(mapping);
return authenticationEventPublisher;