The DaoAuthenticationProvider automatically publishes events to the application context. These events are received by all registered Spring ApplicationListeners.
DaoAuthenticationProvider
ApplicationListener