Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Clients should support WWW-Authenticate for authentication rather than just the MCP server's OIDC metadata document #195

Copy link
Copy link
@localden

Description

@localden
Issue body actions

In the current specification, the expectation is that the MCP server will expose an OIDC metadata document that will provide information about the authentication. The client then uses that OIDC document to do the required auth dance.

Proposal

Instead, rely on WWW-Authenticate that the server can return to the client. On the initial handshake, the server should return a realm that can be used to construct the path to the discovery document (append .well-known/oauth-authorization-server, as documented in the spec), which can in turn help the client perform the authentication and acquire a token without talking to the MCP server at all.

This would also imply that clients are able to perform the auth code flow independently of the server, and once they have a token - pass it in the Bearer header.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.