public static AuthType authTypeFromConf(Configuration conf, boolean isHttpMode) {
    String authTypeStr = HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_SERVER2_AUTHENTICATION);
    boolean isAuthTypeEmpty = StringUtils.isEmpty(authTypeStr);
    final HiveServer2TransportMode transportMode;
    if (isHttpMode) {
      transportMode = HiveServer2TransportMode.http;
      if (isAuthTypeEmpty) {
        authTypeStr = HiveAuthConstants.AuthTypes.NOSASL.getAuthName();
      }
    } else {
      transportMode = HiveServer2TransportMode.binary;
      if (isAuthTypeEmpty) {
        authTypeStr = HiveAuthConstants.AuthTypes.NONE.getAuthName();
      }
    }
    return new AuthType(authTypeStr, transportMode);
  }
Refer from configuration to see if SAML auth method is enabled
@return true if SAML is enabled, otherwise false.
service/src/java/org/apache/hive/service/auth/AuthType.java