@Override
  public void authenticate(String user, String password) throws AuthenticationException {
    // no-op authentication
  }
This authentication provider allows any combination of username and password.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreAnonymousAuthenticationProviderImpl.java