From 710d83628e02362c33d3f245c2826e557d112f0b Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Mon, 23 Feb 2026 16:09:15 +0100 Subject: [PATCH] Add a Copy button to OAuth Server Access Token dialog Summary: Allow clicking once to copy a created API token to be used in some external application anyway, instead of having to click into the text field and copy its value. This is a one-liner change thanks to rP265e44e7. Closes T16518 Test Plan: 1. `./bin/config set phabricator.show-prototypes true` 2. Install/enable http://phorge.localhost/applications/view/PhabricatorOAuthServerApplication/ 3. Go to http://phorge.localhost/oauthserver/ and create an Auth Server 4. Go to http://phorge.localhost/oauthserver/client/view/1 5. Select "Generate Test Token" 6. Click "Authorize Application" 7. See a Copy button next to the "Token" text field; hover over it, click it, paste, etc Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T16518 Differential Revision: https://we.phorge.it/D26792 --- .../controller/client/PhabricatorOAuthClientTestController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/oauthserver/controller/client/PhabricatorOAuthClientTestController.php b/src/applications/oauthserver/controller/client/PhabricatorOAuthClientTestController.php index edd53fedc3..3357b51c24 100644 --- a/src/applications/oauthserver/controller/client/PhabricatorOAuthClientTestController.php +++ b/src/applications/oauthserver/controller/client/PhabricatorOAuthClientTestController.php @@ -47,6 +47,7 @@ final class PhabricatorOAuthClientTestController ->setLabel(pht('Token')) ->setReadOnly(true) ->setSigil('select-on-click') + ->setHasCopyButton(true) ->setValue($access_token->getToken())); return $this->newDialog() -- 2.51.2