From b72e3c1233b59855ddc7dbe0b5856de697381dd9 Mon Sep 17 00:00:00 2001 From: Paul Carleton Date: Wed, 24 Sep 2025 15:12:52 +0100 Subject: [PATCH] Revert "fix: filter out client_secret when storing OAuth client information" This reverts commit 36b9acc97e0f142dab6430c91a71131790523cad. --- client/src/lib/auth.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/client/src/lib/auth.ts b/client/src/lib/auth.ts index 0a8d26cf..b9c941c5 100644 --- a/client/src/lib/auth.ts +++ b/client/src/lib/auth.ts @@ -157,17 +157,10 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider { } saveClientInformation(clientInformation: OAuthClientInformation) { - // Remove client_secret before storing (not needed after initial OAuth flow) - const safeInfo = Object.fromEntries( - Object.entries(clientInformation).filter( - ([key]) => key !== "client_secret", - ), - ) as OAuthClientInformation; - // Save the dynamically registered client information to session storage saveClientInformationToSessionStorage({ serverUrl: this.serverUrl, - clientInformation: safeInfo, + clientInformation, isPreregistered: false, }); }