{"record":{"id":"183867b874631027","repo":"apache/hadoop","slug":"authentication-provider-url-must-not-be-null-con","errorCode":null,"errorMessage":"Authentication provider URL must not be null - configure: authentication.provider.url","messagePattern":"Authentication provider URL must not be null - configure: authentication\\.provider\\.url","errorType":"exception","errorClass":"ServletException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/JWTRedirectAuthenticationHandler.java","lineNumber":116,"sourceCode":"  /**\n   * Initializes the authentication handler instance.\n   * <p>\n   * This method is invoked by the {@link AuthenticationFilter#init} method.\n   * </p>\n   * @param config\n   *          configuration properties to initialize the handler.\n   *\n   * @throws ServletException\n   *           thrown if the handler could not be initialized.\n   */\n  @Override\n  public void init(Properties config) throws ServletException {\n    super.init(config);\n    // setup the URL to redirect to for authentication\n    authenticationProviderUrl = config\n        .getProperty(AUTHENTICATION_PROVIDER_URL);\n    if (authenticationProviderUrl == null) {\n      throw new ServletException(\n          \"Authentication provider URL must not be null - configure: \"\n              + AUTHENTICATION_PROVIDER_URL);\n    }\n\n    // setup the public key of the token issuer for verification\n    if (publicKey == null) {\n      String pemPublicKey = config.getProperty(PUBLIC_KEY_PEM);\n      if (pemPublicKey == null) {\n        throw new ServletException(\n            \"Public key for signature validation must be provisioned.\");\n      }\n      publicKey = CertificateUtil.parseRSAPublicKey(pemPublicKey);\n    }\n    // setup the list of valid audiences for token validation\n    String auds = config.getProperty(EXPECTED_JWT_AUDIENCES);\n    if (auds != null) {\n      // parse into the list\n      String[] audArray = auds.split(\",\");","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/JWTRedirectAuthenticationHandler.java#L98-L134","documentation":"Error \"Authentication provider URL must not be null - configure: authentication.provider.url\" 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":["Configure the 'authentication.provider.url' property in the AuthenticationFilter init parameters to point at the authentication provider URL."],"exampleFix":"Add init-param authentication.provider.url=https://provider.example.com/auth to the filter config.","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"}