{"record":{"id":"75ca52dc25dec898","repo":"phacility/phabricator","slug":"s-is-required","errorCode":null,"errorMessage":"%s is required!","messagePattern":"(.+?) is required!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/auth/adapter/PhutilOAuth1AuthAdapter.php","lineNumber":110,"sourceCode":"    return 'HMAC-SHA1';\n  }\n\n  public function getContentSecurityPolicyFormActions() {\n    return array(\n      $this->getAuthorizeTokenURI(),\n    );\n  }\n\n  protected function newOAuth1Future($uri, $data = array()) {\n    $future = id(new PhutilOAuth1Future($uri, $data))\n      ->setMethod('POST')\n      ->setSignatureMethod($this->getSignatureMethod());\n\n    $consumer_key = $this->getConsumerKey();\n    if (strlen($consumer_key)) {\n      $future->setConsumerKey($consumer_key);\n    } else {\n      throw new Exception(\n        pht(\n          '%s is required!',\n          'setConsumerKey()'));\n    }\n\n    $consumer_secret = $this->getConsumerSecret();\n    if ($consumer_secret) {\n      $future->setConsumerSecret($consumer_secret);\n    }\n\n    if (strlen($this->getToken())) {\n      $future->setToken($this->getToken());\n    }\n\n    if (strlen($this->getTokenSecret())) {\n      $future->setTokenSecret($this->getTokenSecret());\n    }\n","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/adapter/PhutilOAuth1AuthAdapter.php#L92-L128","documentation":"Error \"%s is required!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/adapter/PhutilOAuth1AuthAdapter.php:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}