Skip to content

Add Redirect URL to Client Auth when Exchanging Token #225

@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

    enhancementRequest for a new feature that's not currently supported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions