Update events.adoc

Changes type to DefaultAuthenticationEventPublisher

Only DefaultAuthenticationEventPublisher has the method
setDefaultAuthenticationFailureEvent, but not the interface
AuthenticationEventPublisher.
This commit is contained in:
Stefan Ganzer 2024-06-30 21:46:35 +02:00 committed by Josh Cummings
parent a9aefafb76
commit e7212b37f7
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ Java::
@Bean
public AuthenticationEventPublisher authenticationEventPublisher
(ApplicationEventPublisher applicationEventPublisher) {
AuthenticationEventPublisher authenticationEventPublisher =
DefaultAuthenticationEventPublisher authenticationEventPublisher =
new DefaultAuthenticationEventPublisher(applicationEventPublisher);
authenticationEventPublisher.setDefaultAuthenticationFailureEvent
(GenericAuthenticationFailureEvent.class);