Simplify AuthenticationListener.