agenticweb.wiki

OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization) vs auth.md

Last checked · 19 primary sources

Workload Identity, OAuth Profiles & Cryptographic Signatures Complementary layers · Discovery plus registration

RFC 9728 and RFC 8414 stack beneath auth.md, serving JSON metadata at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server while auth.md extends RFC 8414 metadata with agent_auth for agentic registration and user-claim flows. [1][2][9][11] Use OAuth metadata alone for standard endpoint discovery [1][2], and layer auth.md (/auth.md plus POST /agent/identity) when agents register with a service on a user's behalf. [9][10][11]

Quick facts comparison

FieldOAuth Protected Resource and Authorization Server Metadata (as used for agent authorization)auth.md
CategoryPermitPermit
Tier & lifecycleFlagship · Published StandardSpec Brief · Active Draft
TrackIETF Standards Track (RFC 9728 and RFC 8414) [1][2]Vendor-led open specification (workos/auth.md, with community portal auth-md.com; no SDO submission) [8][17]
IETF trackerRFC 9728 (published April 2025, Standards Track) and RFC 8414 (June 2018, Standards Track) [1][2]—
Originated byRFC 9728: M.B. Jones, P. Hunt, and A. Parecki (April 2025). RFC 8414: M. Jones, N. Sakimura, and J. Bradley (June 2018). [1][2]WorkOS (2026-05-21 by Garrett Galow; demoed at MCP Night 4; re-introduced by Michael Grinich at AIE World's Fair in July 2026) [13][14][15]
Governed byIETF. Both are Internet Standards Track documents, represent the consensus of the IETF community, and were approved for publication by the IESG. [1][2]WorkOS (workos/auth.md); not submitted to IETF/W3C. Community hub (auth-md.com) and skill (fabricioctelles/skills) by Fabricio Telles [8][14][16]
StatusProposed Standard (RFC 9728, April 2025; RFC 8414, June 2018) [1][2][5][6]Reference specification at v0.6.0 (10 June 2026); generally available in WorkOS AuthKit (Agent Registration) since 4 August 2026 [12][18][19]
Latest versionRFC 9728 (April 2025); RFC 8414 (June 2018) [1][2]v0.6.0 (2026-06-10, after v0.1.0 on 2026-05-21 and v0.2.0–v0.5.0 on 2026-06-03–05); GA in WorkOS AuthKit (2026-08-04) [12][18][19]
FormJSON well-known metadata fileDocument format
Wire / transportJSON object (application/json) [1][2]Markdown (text/markdown / text/plain) at /auth.md, RFC 9728/8414 JSON (agent_auth), JSON POST /agent/identity, form-encoded POST /oauth2/token (jwt-bearer and claim), and RFC 8417/8935 SETs (application/secevent+jwt) [9][11][12]
Found atGET /.well-known/oauth-protected-resource; GET /.well-known/oauth-authorization-server (that path must use https) [1][2]HTTP 401 WWW-Authenticate: Bearer resource_metadata="https://<api>/.well-known/oauth-protected-resource" (RFC 9728) → /.well-known/oauth-authorization-server (RFC 8414 agent_auth.skill), plus WWW-Authenticate: AgentAuth error="interaction_required" or "login_required" [9][11][12]
Primary specificationOAuth 2.0 Protected Resource Metadata; OAuth 2.0 Authorization Server Metadata [1][2]AUTH.md · README.md · CHANGELOG.md · Official Docs · Community Spec [9][11][12]
Last checked2026-11-122026-11-12

Problem, mechanism & scope

Overview

OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization)

This article covers the agent-authorization profile of IETF RFC 9728 (OAuth 2.0 Protected Resource Metadata) and RFC 8414 (OAuth 2.0 Authorization Server Metadata), as mandated by the Model Context Protocol authorization specification (2026-07-28). For URL-based OAuth client identifiers used when an agent and server have no prior relationship, see OAuth Client ID Metadata Documents (CIMD). [1][2][3][4]

OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization) pairs two IETF Standards Track specifications—RFC 9728 (OAuth 2.0 Protected Resource Metadata, April 2025) and RFC 8414 (OAuth 2.0 Authorization Server Metadata, June 2018)—so AI agents and OAuth clients can dynamically discover a protected resource's authorization servers and endpoint capabilities without pre-configured endpoints. [1][2] When an unauthenticated request hits a protected resource, the server returns an HTTP 401 WWW-Authenticate header carrying resource_metadata, or the client probes GET /.well-known/oauth-protected-resource. [1] The client reads authorization_servers from that JSON response and fetches GET /.well-known/oauth-authorization-server over HTTPS (application/json) to obtain the issuer's endpoints and supported capabilities. [1][2] RFC 8414 generalized OpenID Connect Discovery 1.0 for wider OAuth 2.0 deployments, and RFC 9728 added resource-side discovery alongside the optional protected_resources authorization-server array. [1][2] The Model Context Protocol (2026-07-28) authorization specification mandates RFC 9728 on MCP servers and requires MCP clients to support both RFC 8414 and OpenID Connect Discovery 1.0. [3]

auth.md

Not to be confused with ACT-AUTH.md, the component-and-host authentication specification in actcore/act-spec, or with OAuth Client ID Metadata Documents (OAuth CIMD). For the IETF cross-domain identity-assertion grant used by auth.md's agent-verified flow, see Identity Assertion Authorization Grant (ID-JAG). For the underlying OAuth discovery metadata pair, see OAuth 2.0 Metadata for Agents (RFC 9728 / RFC 8414). [8]

auth.md is a single-vendor reference implementation and procedural Markdown convention originated by WorkOS (workos/auth.md, MIT License) for agentic registration, a protocol for agents to authenticate to services on behalf of users. [8][9] The architecture defines three roles: an agent acting for a user, an agent provider that mints identity assertions (ID-JAGs), and a service that accepts those assertions when available and issues credentials, or uses an RFC 8628-style claim ceremony when the agent is not associated with a user identity or the provider does not support ID-JAGs. [9] A service publishes a Markdown walkthrough at /auth.md (referenced via the skill field in agent_auth) alongside Protected Resource Metadata at /.well-known/oauth-protected-resource and Authorization Server Metadata at /.well-known/oauth-authorization-server carrying the agent_auth profile extension. [9][10] Registration and credential issuance are split across two endpoints: POST /agent/identity accepts the agent's registration request (identity_assertion, service_auth, or anonymous) and returns a service-signed identity_assertion (or initiates a claim ceremony), which the agent exchanges at POST /oauth2/token (urn:ietf:params:oauth:grant-type:jwt-bearer) for a Bearer access_token. [9][11] WorkOS released the initial v0.1.0 proposal on 2026-05-21, followed by v0.2.0 and v0.3.0 on 2026-06-03 (separating /agent/identity from /oauth2/token and switching revocation to RFC 8417 Security Event Tokens over RFC 8935), v0.4.0 on 2026-06-04 (polling /oauth2/token with urn:workos:agent-auth:grant-type:claim), v0.5.0 on 2026-06-05 (adding interaction_required and login_required gates), and v0.6.0 on 2026-06-10 (splitting email hints into top-level service_auth with login_hint). [12]

Adoption and ecosystem

OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization)

See verified implementations and cited ecosystem censuses on the OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization) protocol page.

auth.md

See verified implementations and cited ecosystem censuses on the auth.md protocol page.

References

  1. M.B. Jones (Self-Issued Consulting), P. Hunt (Independent Identity, Inc.), and A. Parecki (Okta), RFC 9728: OAuth 2.0 Protected Resource Metadata, published April 2025; Internet Standards Track — https://www.rfc-editor.org/rfc/rfc9728.html
  2. M. Jones (Microsoft), N. Sakimura (NRI), and J. Bradley (Yubico), RFC 8414: OAuth 2.0 Authorization Server Metadata, June 2018; Internet Standards Track — https://www.rfc-editor.org/rfc/rfc8414.html
  3. Model Context Protocol, Authorization, specification version 2026-07-28 — https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization
  4. Model Context Protocol, Client Registration, specification version 2026-07-28 — https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration
  5. IETF Datatracker, RFC 9728: OAuth 2.0 Protected Resource Metadata, RFC - Proposed Standard (April 2025) — https://datatracker.ietf.org/doc/html/rfc9728
  6. IETF Datatracker, RFC 8414: OAuth 2.0 Authorization Server Metadata, RFC - Proposed Standard (June 2018) — https://datatracker.ietf.org/doc/html/rfc8414
  7. A. Parecki (Okta) and E. Smith (independent), OAuth Client ID Metadata Document (draft-ietf-oauth-client-id-metadata-document-03), draft-ietf-oauth-client-id-metadata-document-03, 2 November 2026; expires 6 May 2027 — https://www.ietf.org/archive/id/draft-ietf-oauth-client-id-metadata-document-03.txt
  8. WorkOS, auth.md, repository created 2026-05-20; pushed 2026-09-24 — https://github.com/workos/auth.md
  9. WorkOS, auth.md, README on main — https://raw.githubusercontent.com/workos/auth.md/main/README.md
  10. WorkOS, The auth.md file — auth.md, checked 2026-10-29 — https://workos.com/auth-md/docs/auth-md
  11. WorkOS, AUTH.md, checked 2026-10-29 — https://raw.githubusercontent.com/workos/auth.md/main/AUTH.md
  12. WorkOS, CHANGELOG.md, checked 2026-10-29 — https://raw.githubusercontent.com/workos/auth.md/main/CHANGELOG.md
  13. Garrett Galow (WorkOS), Agent Registration with Auth.md — WorkOS, checked 2026-10-29 — https://workos.com/blog/agent-registration-with-auth-md
  14. Zack Proser (WorkOS), MCP Night 4 recap: agent auth, auth.md, and the rise of agentic registration — WorkOS, checked 2026-10-29 — https://workos.com/blog/mcp-night-4-recap-auth-md-agentic-registration
  15. Zack Proser (WorkOS), Lifestyles of the AI-Native: WorkOS at the AI Engineer World's Fair 2026 — WorkOS, checked 2026-10-29 — https://workos.com/blog/workos-aie-worlds-fair-2026-recap
  16. WorkOS, auth.md — Open Protocol for Agent Registration, checked 2026-10-29 — https://workos.com/auth-md
  17. Fabricio Telles, AI Agent Registration Protocol for Web — auth-md, checked 2026-10-29 — https://auth-md.com/
  18. WorkOS, package.json, checked 2026-10-29 — https://raw.githubusercontent.com/workos/auth.md/main/package.json
  19. WorkOS, Agent Registration – AuthKit – WorkOS Docs, checked 2026-10-29 — https://workos.com/docs/authkit/agent-registration

oauth-metadata-for-agents.json · auth-md.json · JSON · Markdown