@Override
  protected void onSuccessfulAuthentication(HttpServletRequest servletRequest,
                                            HttpServletResponse servletResponse,
                                            Authentication authResult) throws IOException {

    if (eventHandler != null) {
      eventHandler.onSuccessfulAuthentication(this, servletRequest, servletResponse, authResult);
    }
  }
If the authentication was successful, then an audit event is logged about the success

@param servletRequest  the request
@param servletResponse the response
@param authResult      the Authentication result
@throws IOException
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariBasicAuthenticationFilter.java