{"record":{"id":"eaa83edbeeb856c6","repo":"apache/hadoop","slug":"unsupported-http-authentication-scheme-s-suppor","errorCode":null,"errorMessage":"Unsupported HTTP authentication scheme %s . Supported schemes are [%s, %s, %s]","messagePattern":"Unsupported HTTP authentication scheme (.+?) \\. Supported schemes are \\[(.+?), (.+?), (.+?)\\]","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationHandlerUtil.java","lineNumber":84,"sourceCode":"\n  /**\n   * This method checks if the specified HTTP authentication <code>scheme</code>\n   * value is valid.\n   *\n   * @param scheme HTTP authentication scheme to be checked\n   * @return Canonical representation of HTTP authentication scheme\n   * @throws IllegalArgumentException In case the specified value is not a valid\n   *           HTTP authentication scheme.\n   */\n  public static String checkAuthScheme(String scheme) {\n    if (BASIC.equalsIgnoreCase(scheme)) {\n      return BASIC;\n    } else if (NEGOTIATE.equalsIgnoreCase(scheme)) {\n      return NEGOTIATE;\n    } else if (DIGEST.equalsIgnoreCase(scheme)) {\n      return DIGEST;\n    }\n    throw new IllegalArgumentException(String.format(\n        \"Unsupported HTTP authentication scheme %s .\"\n            + \" Supported schemes are [%s, %s, %s]\", scheme, BASIC, NEGOTIATE,\n        DIGEST));\n  }\n\n  /**\n   * This method checks if the specified <code>authToken</code> belongs to the\n   * specified HTTP authentication <code>scheme</code>.\n   *\n   * @param scheme HTTP authentication scheme to be checked\n   * @param auth Authentication header value which is to be compared with the\n   *          authentication scheme.\n   * @return true If the authentication header value corresponds to the\n   *         specified authentication scheme false Otherwise.\n   */\n  public static boolean matchAuthScheme(String scheme, String auth) {\n    if (scheme == null) {\n      throw new NullPointerException();","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationHandlerUtil.java#L66-L102","documentation":"Error \"Unsupported HTTP authentication scheme %s . Supported schemes are [%s, %s, %s]\" thrown in apache/hadoop.","triggerScenarios":"Raised at runtime when the documented precondition or configuration requirement for this operation is violated.","commonSituations":"Misconfigured or missing property, invalid user input, or calling the API before its prerequisites are met.","solutions":["Set the HTTP authentication type to one of the supported schemes (simple, kerberos, or a custom Authenticator class) via the 'hadoop.security.authentication' configuration property."],"exampleFix":"Set hadoop.security.authentication=simple or kerberos in core-site.xml.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}