diff --git a/src/future/oauth/PhutilOAuth1Future.php b/src/future/oauth/PhutilOAuth1Future.php --- a/src/future/oauth/PhutilOAuth1Future.php +++ b/src/future/oauth/PhutilOAuth1Future.php @@ -229,7 +229,11 @@ $consumer_secret = $this->consumerSecret->openEnvelope(); } - $key = urlencode($consumer_secret).'&'.urlencode($this->tokenSecret); + if ($this->tokenSecret !== null) { + $key = urlencode($consumer_secret).'&'.urlencode($this->tokenSecret); + } else { + $key = urlencode($consumer_secret).'&'; + } switch ($this->signatureMethod) { case 'HMAC-SHA1':