public class AfterAuthenticationEvent
Event that is fired by AuthenticationManager after user is authenticated or authentication failed. There is
an active database transaction when the event is published. Note that: in case of exception from the database this
transaction could be marked as rollback-only.
Event is fired when special instance of SecurityContext is set to AppContext. It has system user
session that has full permissions in the system.
Event handlers may throw LoginException to abort authentication process.