Skip to content

Add Redirect URL to Client Auth when Exchanging Token #225

Closed
@csmoakpax8

Description

@csmoakpax8

Is your feature request related to a problem? Please describe.
I am using Auth0 as my identity provider. When using authorization_code grant flow, its required to pass the same redirect_url in the /oauth/token request that was passed in the /authorize redirect.

Image

Describe the solution you'd like
Can we add a way to supply additional params or add this param specifically? Here is where it would need to be added:
https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/client/auth.ts#L288

Describe alternatives you've considered
I can create my own endpoints in my MCP server to override the default behavior but that feels like a lot of overhead.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions