Merge "Add onAuthenticationSucceeded and onAuthenticationFailed" into main