Skip to content

Commit 7e44b10

Browse files
authored
add none to test and the router. (#1116)
1 parent 4debc74 commit 7e44b10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/server/auth/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ describe('MCP Auth Router', () => {
213213
expect(response.body.response_types_supported).toEqual(['code']);
214214
expect(response.body.grant_types_supported).toEqual(['authorization_code', 'refresh_token']);
215215
expect(response.body.code_challenge_methods_supported).toEqual(['S256']);
216-
expect(response.body.token_endpoint_auth_methods_supported).toEqual(['client_secret_post']);
216+
expect(response.body.token_endpoint_auth_methods_supported).toEqual(['client_secret_post', 'none']);
217217
expect(response.body.revocation_endpoint_auth_methods_supported).toEqual(['client_secret_post']);
218218

219219
// Verify optional fields

src/server/auth/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const createOAuthMetadata = (options: {
9292
code_challenge_methods_supported: ['S256'],
9393

9494
token_endpoint: new URL(token_endpoint, baseUrl || issuer).href,
95-
token_endpoint_auth_methods_supported: ['client_secret_post'],
95+
token_endpoint_auth_methods_supported: ['client_secret_post', 'none'],
9696
grant_types_supported: ['authorization_code', 'refresh_token'],
9797

9898
scopes_supported: options.scopesSupported,

0 commit comments

Comments
 (0)