Skip to content
Start with Identity
Protocol

OAuth 2.0 Protected Resource Metadata

OAuth 2.0 Protected Resource Metadata (RFC 9728, Proposed Standard, April 2025) is a JSON document an API publishes at /.well-known/oauth-protected-resource to tell clients which authorization servers issue tokens for it, which scopes it understands, and how tokens must be presented.

Before RFC 9728, a client had to be configured in advance with the authorization server for each API, which works for a fixed integration and fails for an agent that discovers tools at runtime. The RFC also adds a resource_metadata parameter to the WWW-Authenticate header, so a 401 response can point the client straight at the metadata. The Model Context Protocol made it mandatory for protected MCP servers, which turned a little-used RFC into one of the most implemented OAuth extensions of 2025 and 2026. Clients should still validate the metadata: the document's resource value has to match the URL they fetched it for, or an attacker can steer them to a hostile authorization server.

See also: authorization server metadata, MCP authorization, resource indicators, authorization server, OAuth 2.0, agent identity standards map 2026

Last reviewed By SWI Community TeamSuggest a correctionHow we research