đź”—Custom Authentication

To provide a custom authentication mechanism, create your own authentication handler by extending AbstractAuthenticationHandler and implementing its abstract methods:

public class CustomAuthenticationHandler extends AbstractAuthenticationHandler {

  @Override
  protected LoginService getHandlerLoginService() {
    // ...
  }

  @Override
  protected IdentityService getHandlerIdentityService() {
    // ...
  }

  @Override
  protected Configuration getLoginModuleConfiguration() {
    // ...
  }
}

An example of an AuthenticationHandler can be found in the CDAP source code for LDAPAuthenticationHandler.java.

To configure the custom authentication handler, see the Administration Manual’s Custom Authentication section.