phacility/phabricator · error · Exception
is required!
Error message
%s is required!
What it means
Sentinel guard in newOAuth1Future(): the adapter was used to build an OAuth1 request before setConsumerKey() had been called (empty consumer key string). The %s names the missing setter, so this is a programming/configuration omission rather than bad user input.
Solutions
- Configure the OAuth1 consumer key on the adapter before initiating the handshake
- Verify the auth provider's configuration form saved the consumer key
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/auth/adapter/PhutilOAuth1AuthAdapter.php:110 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/75ca52dc25dec898.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/auth/adapter/PhutilOAuth1AuthAdapter.php:110
return 'HMAC-SHA1';
}
public function getContentSecurityPolicyFormActions() {
return array(
$this->getAuthorizeTokenURI(),
);
}
protected function newOAuth1Future($uri, $data = array()) {
$future = id(new PhutilOAuth1Future($uri, $data))
->setMethod('POST')
->setSignatureMethod($this->getSignatureMethod());
$consumer_key = $this->getConsumerKey();
if (strlen($consumer_key)) {
$future->setConsumerKey($consumer_key);
} else {
throw new Exception(
pht(
'%s is required!',
'setConsumerKey()'));
}
$consumer_secret = $this->getConsumerSecret();
if ($consumer_secret) {
$future->setConsumerSecret($consumer_secret);
}
if (strlen($this->getToken())) {
$future->setToken($this->getToken());
}
if (strlen($this->getTokenSecret())) {
$future->setTokenSecret($this->getTokenSecret());
}
View on GitHub (pinned to 5720a38cfe)