Continue Processing Request for Successful Authentication

Procedure

  1. Get the headers from the HTTPServerRequest.
  2. Check for authentication header.
  3. Validate the value of authentication header. On validation success, return from the adapter and continue processing.
    Successful Authentication
    if (userId.equals("userName") && password.equals("userPassword")) {
        Logger.info(MyCustomAuthenticatorFailed.class,"Basic Authentication is successful");
    }