Skip to content

OAuth authentication flow should use scopes_supported of Protected Resource Metadata #580

Open
@fabian-emilius

Description

@fabian-emilius

Is your feature request related to a problem? Please describe.
I want to use a specific scope for the mcp connection, that access tokens can only authenticate to a mcp server if they for example have the mcp scope. Right now this is not possible because no scope is passed to the authorize url which means only the default scopes are used.

Describe the solution you'd like
It would be great if the field scopes_supported from /.well-known/oauth-protected-resource is used when available and all scopes in that list are passed to the authorize url.

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