fix: Advertise missing auth server metadata fields (#14315)

* fix: Advertise revocation endpoint auth methods in OAuth metadata

* fix: Advertise supported response modes in OAuth metadata
This commit is contained in:
Tom Moor authored and GitHub committed 2026-10-24 13:46:30 -04:00
1 parent 7d4ec3fb01
commit 2f6326dd24
2 files changed
+8

No files matched your search

+3
View File
@@ -30,9 +30,12 @@ router.get(
}),
client_id_metadata_document_supported: mcpEnabled,
response_types_supported: OAuthHelper.responseTypes,
response_modes_supported: ["query"],
grant_types_supported: OAuthHelper.grantTypes,
token_endpoint_auth_methods_supported:
OAuthHelper.tokenEndpointAuthMethods,
revocation_endpoint_auth_methods_supported:
OAuthHelper.tokenEndpointAuthMethods,
code_challenge_methods_supported: ["S256"],
scopes_supported: OAuthHelper.mcpScopes,
};
+5
View File
@@ -529,6 +529,7 @@ describe("GET /.well-known/oauth-authorization-server", () => {
expect(body.revocation_endpoint).toContain("/oauth/revoke");
expect(body.client_id_metadata_document_supported).toBe(true);
expect(body.response_types_supported).toEqual(["code"]);
expect(body.response_modes_supported).toEqual(["query"]);
expect(body.grant_types_supported).toEqual([
"authorization_code",
"refresh_token",
@@ -537,6 +538,10 @@ describe("GET /.well-known/oauth-authorization-server", () => {
"client_secret_post",
"none",
]);
expect(body.revocation_endpoint_auth_methods_supported).toEqual([
"client_secret_post",
"none",
]);
expect(body.code_challenge_methods_supported).toEqual(["S256"]);
expect(body.scopes_supported).toEqual(["read", "write"]);
});