protected function configureAdapter(PhutilOAuth1AuthAdapter $adapter) { $config = $this->getProviderConfig(); $adapter->setConsumerKey($config->getProperty(self::PROPERTY_CONSUMER_KEY)); $secret = $config->getProperty(self::PROPERTY_CONSUMER_SECRET); if (strlen($secret)) { $adapter->setConsumerSecret(new PhutilOpaqueEnvelope($secret)); } $adapter->setCallbackURI(PhabricatorEnv::getURI($this->getLoginURI())); return $adapter; }
public function getClientRedirectURI() { $p = parent::getClientRedirectURI(); return $p . "&oauth_consumer_key={$this->getConsumerKey()}"; }