From 655d71ba5ce1dcc5a94bd03f345515eef1f68040 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 25 Aug 2026 16:20:06 +0930 Subject: [PATCH] Fix OAuth client secret not displayed after creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #6630 (partial — client secret issue) In Passport v13, client secrets are hashed at the model level and only available as plain_secret on the response from the creation endpoint. The previous code immediately re-fetched the client list after creation, losing the plain secret since it's not stored or returned on GET. Changes: - Capture plain_secret from the POST response - Show a dedicated modal with the client ID and secret after creation - Warn users to copy the secret immediately (it won't be shown again) - Add a Copy button for convenience - Show 'Hidden (only shown at creation)' in the table for existing clients --- .../assets/js/components/passport/Clients.vue | 73 ++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/passport/Clients.vue b/resources/assets/js/components/passport/Clients.vue index d5dac3626..a6e72902b 100644 --- a/resources/assets/js/components/passport/Clients.vue +++ b/resources/assets/js/components/passport/Clients.vue @@ -50,7 +50,8 @@ - {{ client.secret }} + {{ client.plain_secret }} + Hidden (only shown at creation) @@ -72,6 +73,48 @@ + + +