Page MenuHomePhabricator

D20624.diff
No OneTemporary

D20624.diff

diff --git a/src/applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php b/src/applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php
--- a/src/applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php
+++ b/src/applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php
@@ -32,7 +32,9 @@
foreach ($handles as $phid => $handle) {
$client = $objects[$phid];
- $handle->setName($client->getName());
+ $handle
+ ->setName($client->getName())
+ ->setURI($client->getURI());
}
}
diff --git a/src/applications/oauthserver/storage/PhabricatorOAuthServerClient.php b/src/applications/oauthserver/storage/PhabricatorOAuthServerClient.php
--- a/src/applications/oauthserver/storage/PhabricatorOAuthServerClient.php
+++ b/src/applications/oauthserver/storage/PhabricatorOAuthServerClient.php
@@ -59,6 +59,12 @@
PhabricatorOAuthServerClientPHIDType::TYPECONST);
}
+ public function getURI() {
+ return urisprintf(
+ '/oauthserver/client/view/%d/',
+ $this->getID());
+ }
+
/* -( PhabricatorPolicyInterface )----------------------------------------- */

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 9, 6:29 PM (3 d, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7390550
Default Alt Text
D20624.diff (1 KB)

Event Timeline