Page MenuHomePhabricator

D8319.id19784.diff
No OneTemporary

D8319.id19784.diff

Index: src/auth/PhutilAuthAdapterOAuth.php
===================================================================
--- src/auth/PhutilAuthAdapterOAuth.php
+++ src/auth/PhutilAuthAdapterOAuth.php
@@ -21,9 +21,8 @@
$uri->setQueryParam('client_id', $this->getClientID());
$uri->setQueryParam('scope', $this->getScope());
$uri->setQueryParam('redirect_uri', $this->getRedirectURI());
- if ($this->supportsStateParameter()) {
- $uri->setQueryParam('state', $this->getState());
- }
+ $uri->setQueryParam('state', $this->getState());
+
foreach ($this->getExtraAuthenticateParameters() as $key => $value) {
$uri->setQueryParam($key, $value);
}
@@ -37,10 +36,6 @@
return strtolower($type_name);
}
- public function supportsStateParameter() {
- return true;
- }
-
public function setState($state) {
$this->state = $state;
return $this;

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 20, 8:44 PM (1 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7686803
Default Alt Text
D8319.id19784.diff (896 B)

Event Timeline