Skip to content

Commit 81054d3

Browse files
author
Růžička, David
committed
Merge branch 'dr-extend-oauth-optional-params' into 'main'
fix(http): allow optional oauth token request parameters See merge request ai-adoption/mcp/mcp4openapi!4
2 parents d5ec352 + f86df89 commit 81054d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/transport/http-transport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ export class HttpTransport {
18471847

18481848
router.register('authorization_code', {
18491849
required: ['code', 'client_id'],
1850-
optional: ['redirect_uri', 'client_secret', 'code_verifier'],
1850+
optional: ['redirect_uri', 'client_secret', 'code_verifier', 'resource', 'scope', 'client_assertion', 'client_assertion_type'],
18511851
handler: async (request, response) => {
18521852
if (!profileState.oauthProvider) {
18531853
response.status(HTTP_STATUS.NOT_FOUND).json({ error: 'server_error', error_description: 'OAuth provider not initialized' });
@@ -1870,7 +1870,7 @@ export class HttpTransport {
18701870

18711871
router.register('refresh_token', {
18721872
required: ['refresh_token', 'client_id'],
1873-
optional: ['client_secret'],
1873+
optional: ['client_secret', 'resource', 'scope', 'client_assertion', 'client_assertion_type'],
18741874
handler: async (request, response) => {
18751875
if (!profileState.oauthProvider) {
18761876
response.status(HTTP_STATUS.NOT_FOUND).json({ error: 'server_error', error_description: 'OAuth provider not initialized' });

0 commit comments

Comments
 (0)