Changeset View
Changeset View
Standalone View
Standalone View
src/applications/oauthserver/PhabricatorOAuthResponse.php
Show All 30 Lines | public function setClientURI(PhutilURI $uri) { | ||||
$this->setHTTPResponseCode(302); | $this->setHTTPResponseCode(302); | ||||
$this->clientURI = $uri; | $this->clientURI = $uri; | ||||
return $this; | return $this; | ||||
} | } | ||||
private function getFullURI() { | private function getFullURI() { | ||||
$base_uri = $this->getClientURI(); | $base_uri = $this->getClientURI(); | ||||
$query_params = $this->buildResponseDict(); | $query_params = $this->buildResponseDict(); | ||||
foreach ($query_params as $key => $value) { | foreach ($query_params as $key => $value) { | ||||
$base_uri->setQueryParam($key, $value); | $base_uri->replaceQueryParam($key, $value); | ||||
} | } | ||||
return $base_uri; | return $base_uri; | ||||
} | } | ||||
private function getError() { | private function getError() { | ||||
return $this->error; | return $this->error; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |