Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/adapter/PhutilOAuth1AuthAdapter.php
Context not available. | |||||
->setSignatureMethod($this->getSignatureMethod()); | ->setSignatureMethod($this->getSignatureMethod()); | ||||
$consumer_key = $this->getConsumerKey(); | $consumer_key = $this->getConsumerKey(); | ||||
if (strlen($consumer_key)) { | if (@strlen($consumer_key)) { | ||||
$future->setConsumerKey($consumer_key); | $future->setConsumerKey($consumer_key); | ||||
} else { | } else { | ||||
throw new Exception( | throw new Exception( | ||||
Context not available. | |||||
$future->setConsumerSecret($consumer_secret); | $future->setConsumerSecret($consumer_secret); | ||||
} | } | ||||
if (strlen($this->getToken())) { | if (@strlen($this->getToken())) { | ||||
$future->setToken($this->getToken()); | $future->setToken($this->getToken()); | ||||
} | } | ||||
if (strlen($this->getTokenSecret())) { | if (@strlen($this->getTokenSecret())) { | ||||
$future->setTokenSecret($this->getTokenSecret()); | $future->setTokenSecret($this->getTokenSecret()); | ||||
} | } | ||||
Context not available. | |||||
$request_token_uri = $this->getRequestTokenURI(); | $request_token_uri = $this->getRequestTokenURI(); | ||||
$future = $this->newOAuth1Future($request_token_uri); | $future = $this->newOAuth1Future($request_token_uri); | ||||
if (strlen($this->getCallbackURI())) { | if (@strlen($this->getCallbackURI())) { | ||||
$future->setCallbackURI($this->getCallbackURI()); | $future->setCallbackURI($this->getCallbackURI()); | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0