Skip to content

Implement SEP-985: Authorization Discovery Fallback to WWW-Authenticate #517

@felixweinberger

Description

@felixweinberger

This is a tracking issue for implementation of SEP-985.

Summary

This SEP clarifies and extends the Protected Resource Metadata discovery mechanism for OAuth 2.0 authorization in MCP. The Rust SDK needs to implement client support for multiple discovery methods with proper fallback behavior, ensuring robust authorization server discovery even when well-known URIs are not available. Clients must first check for a resource_metadata parameter in the WWW-Authenticate header on 401 responses, and if not present, fall back to attempting well-known URIs at both sub-path and root locations.

Related Issues & PRs

  • Implementation PRs: n/a
  • Related PRs: n/a
  • Related Issues: n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions