Protected Resource Metadata
Enables resource servers to publish metadata about their authorization requirements for automatic client discovery.
Sequence Diagram
1
Resource Request Without Access Token
Client requests the protected resource without presenting an access token. The resource server responds with 401 and a WWW-Authenticate header containing the resource_metadata URL per RFC 9728 §5.1.
Client App→Resource Server
2
Fetch Protected Resource Metadata
Client fetches the protected resource metadata from the well-known URL derived from the resource identifier per RFC 9728 §3.1. The response includes authorization_servers, scopes_supported, and other resource capabilities.
Client App→Resource Server
3
Fetch Authorization Server Metadata
Client builds the AS metadata URL from the issuer in authorization_servers per RFC 8414 §3.1 and fetches the AS metadata. The AS advertises its endpoints and the protected resources it serves per RFC 9728 §4.
Client App→IdP (Authorization Server)