Skip to content

Commit 861812e

Browse files
authored
Merge pull request #827 from modelcontextprotocol/revert-pr-715
Revert "fix: filter out client_secret when storing OAuth client information"
2 parents 42aa95b + b72e3c1 commit 861812e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

client/src/lib/auth.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,10 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
157157
}
158158

159159
saveClientInformation(clientInformation: OAuthClientInformation) {
160-
// Remove client_secret before storing (not needed after initial OAuth flow)
161-
const safeInfo = Object.fromEntries(
162-
Object.entries(clientInformation).filter(
163-
([key]) => key !== "client_secret",
164-
),
165-
) as OAuthClientInformation;
166-
167160
// Save the dynamically registered client information to session storage
168161
saveClientInformationToSessionStorage({
169162
serverUrl: this.serverUrl,
170-
clientInformation: safeInfo,
163+
clientInformation,
171164
isPreregistered: false,
172165
});
173166
}

0 commit comments

Comments
 (0)