RFC 9728 OAuth 2.0 Protected Resource Metadata is a JSON metadata document that a protected resource exposes to describe how it can be used with OAuth 2.0. It can publish details such as supported resource indicators, authentication methods, and endpoints, helping clients and authorisation servers discover the resource’s security requirements and configuration.
What RFC 9728 Adds to OAuth Discovery
RFC 9728 gives a protected resource a standard way to publish its OAuth 2.0 metadata, so clients and authorisation servers can discover the resource’s security requirements instead of hard-coding them.
This matters because the resource becomes self-describing: it can signal which resource indicators it recognises, which authentication methods it expects, and where related OAuth endpoints live. That reduces guesswork, improves interoperability, and helps separate the resource’s policy from client implementation details.
How Protected Resource Metadata Is Used in Practice
In a typical deployment, the metadata document becomes part of the start-up or onboarding flow for a client that needs to call a protected API. The client can learn the target resource identifier, discover the right authorisation server, and determine which OAuth features the resource supports before it requests a token.
This is especially useful in environments where one client may talk to many resources, or where the same resource may accept different token audiences or authentication methods. The standard does not grant access by itself; it makes the trust and configuration boundaries visible so the rest of the OAuth flow can be set up correctly.
For a broader view of how OAuth roles, grants and token handling fit together, OAuth 2.0 and OpenID Connect Guide for Identity Teams is the most useful parent reference.
Why It Matters for Resource Indicators and Token Audience
RFC 9728 is closely related to resource indicators, because clients need a reliable way to identify the protected resource they are trying to reach. When that target is explicit, the authorisation server can issue an access token for the correct audience rather than a generic token that may be replayed elsewhere.
That is a major security improvement in modern delegated access patterns. It reduces ambiguity, supports step-up authorisation decisions, and helps prevent token confusion across services that may share the same identity provider but enforce different access rules. In MCP-style deployments, this discovery step is often what lets a client determine which resource server it is actually talking to.
For the resource-indicator side of the model, RFC 8707: Resource Indicators for OAuth 2.0 and MCP Authorisation Specification Guide both show how discovery and audience binding work together.
Security Requirements, Trust, and Configuration Hygiene
The value of this metadata depends on the integrity of what it advertises. If a resource publishes the wrong endpoints, advertises an unsafe client authentication method, or exposes stale configuration, clients can be led into insecure flows even though the protocol is behaving as designed.
That is why implementers should treat the document as security-relevant configuration, not just descriptive text. It should align with the resource’s actual trust model, the authorisation server it expects, and any constraints around token use, sender binding, or scope handling. When the metadata is accurate, it improves discovery; when it is wrong, it can create a misdirection problem that is hard to spot during integration.
For practical deployment review, the strongest companion guidance is the RFC 9700: Best Current Practice for OAuth 2.0 Security, which frames the broader hardening expectations around OAuth deployments.
OAuth 2.0 Protected Resource Metadata in Machine and Agent Flows
This standard is increasingly important in machine-to-machine and agent-driven systems, where clients cannot rely on human setup or manual trust decisions. A workload, service, or agent may need to discover how a target resource wants to be reached, which makes metadata discovery part of the access path itself.
In those settings, the main design question is not only whether the client can authenticate, but whether it can discover the right resource, obtain a token for the correct audience, and avoid using a bearer credential in the wrong place. That is why this standard often sits alongside client authentication choices, token exchange, and sender-constrained token patterns.
For those access paths, the most relevant companion references are RFC 6749: The OAuth 2.0 Authorization Framework and RFC 9449: OAuth 2.0 Demonstrating Proof of Possession (DPoP), which help place discovery, token use, and sender binding in context.
Risk and Threat Considerations
Metadata-driven discovery reduces integration friction, but it also creates a trust dependency: clients must believe the metadata describes the real resource and the real authorisation path. If an attacker can tamper with the document, redirect discovery, or make a malicious endpoint look legitimate, they can steer clients toward unsafe token handling or fraudulent authorisation flows.
Failure mechanism: A client trusts unverified metadata and then sends tokens, registrations, or user consent into a misleading flow, allowing audience confusion, token theft, or broken trust-boundary enforcement.
Impact: The result can be access token misuse, incorrect audience binding, or a successful pivot into a resource that was never meant to receive the credential.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API2 — Broken Authentication | Protects OAuth-backed API access that depends on correct resource metadata and client auth discovery. |
| Recommendation — Validate API authentication paths and reject metadata-driven flows that weaken client verification. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Covers lifecycle and handling of OAuth credentials and tokens used by the protected resource. |
| AC-3 — Access Enforcement | Maps to the resource enforcing access decisions after discovery identifies the target audience and policy. | |
| SC-23 — Session Authenticity | Supports sender-constrained token handling that limits abuse if metadata or tokens are replayed. | |
| Recommendation — Manage OAuth credentials and tokens so metadata-discovered flows do not depend on stale or weak secrets. Enforce access decisions at the resource after discovery so only authorised token audiences succeed. Use sender-constrained token controls so discovered endpoints cannot be abused with replayed credentials. | ||
Practitioner Guidance
Why practitioners should care: Treat RFC 9728 as part of the trust establishment process, not a convenience feature. The metadata document should be operationally reviewed wherever a resource publishes endpoints that influence token audience, client authentication, or discovery behaviour.
What to watch for: Pay attention to stale metadata, mismatched endpoints, unsupported authentication methods, and any deployment where the published configuration does not match the actual OAuth policy in effect. Those are the conditions that turn discovery into a security control failure instead of a help to clients.
Practitioner takeaway: Use protected resource metadata to reduce ambiguity, but validate it as seriously as any other security-facing configuration because the document shapes how clients enter the trust boundary.
Related resources from NHI Mgmt Group
- How should security teams implement OAuth protected resource metadata in a way that supports dynamic discovery without weakening trust boundaries?
- Why does standardized OAuth protected resource metadata reduce integration and security risk for API clients?
- What are the signs that OAuth protected resource metadata is being misused or misconfigured in production?
- What is the difference between OAuth authorization server metadata and protected resource metadata?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org