Changeset View
Changeset View
Standalone View
Standalone View
src/future/oauth/PhutilOAuth1Future.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public function getSignature() { | ||||
// control which data is signed, but for now this rule seems to cover | // control which data is signed, but for now this rule seems to cover | ||||
// all the use cases. | // all the use cases. | ||||
if (is_array($this->data)) { | if (is_array($this->data)) { | ||||
$params = $this->data; | $params = $this->data; | ||||
} | } | ||||
$params = $params | $params = $params | ||||
+ $this->uri->getQueryParams() | + $this->uri->getQueryParamsAsMap() | ||||
epriestley: This is only JIRA, Twitter, and Bitbucket. I don't currently have any set up so I didn't… | |||||
+ $this->getOAuth1Headers(); | + $this->getOAuth1Headers(); | ||||
return $this->sign($params); | return $this->sign($params); | ||||
} | } | ||||
public function addHeader($name, $value) { | public function addHeader($name, $value) { | ||||
// If we haven't built the future yet, hold on to the header until after | // If we haven't built the future yet, hold on to the header until after | ||||
// we do, since there might be more changes coming which will affect the | // we do, since there might be more changes coming which will affect the | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |
This is only JIRA, Twitter, and Bitbucket. I don't currently have any set up so I didn't actually test this, but it's hard to imagine it breaks anything.