OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization) vs auth.md
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
| Field | OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization) | auth.md |
|---|---|---|
| Category | Permit | Permit |
| Tier & lifecycle | Flagship · Published Standard | Spec Brief · Active Draft |
| Track | IETF 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 tracker | RFC 9728 (published April 2025, Standards Track) and RFC 8414 (June 2018, Standards Track) [1][2] | — |
| Originated by | RFC 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 by | IETF. 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] |
| Status | Proposed 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 version | RFC 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] |
| Form | JSON well-known metadata file | Document format |
| Wire / transport | JSON 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 at | GET /.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 specification | OAuth 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 checked | 2026-11-12 | 2026-11-12 |
Problem, mechanism & scope
- OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization) problem, mechanism & scope boundary: RFC 9728 is intended to be deployed where the client has no prior knowledge about the resource server, and where the resource server might or might not have prior knowledge about the client. How the client obtains the protected resource's location is out of scope for RFC 9728. How the client chooses an authorization server is out of scope for RFC 8414. [1][2] Together, RFC 9728 and RFC 8414 establish a two-hop, cryptographically bound discovery chain: the protected resource's metadata document binds its canonical
resourceidentifier to one or more trustedauthorization_serversissuer URLs, and each authorization server's metadata document verifies itsissueridentifier while publishingauthorization_endpointandtoken_endpoint. [1][2] How the client identifier is established at the authorization server is out of scope for RFC 9728. RFC 9728 is intentionally as parallel as possible to OAuth 2.0 Dynamic Client Registration and to OAuth 2.0 Authorization Server Metadata. A URL used asclient_id, which the authorization server fetches, is specified separately. [1][7] - auth.md problem, mechanism & scope boundary: When an agent registers with an external service on a user's behalf, the agent may lack a user identity or an
ID-JAG-capable provider, while services that blindly trust provider email claims or old upstream sessions face account-takeover risks. [9] Without a user-confirmation gate on first-time account linking, any trusted provider could mint anID-JAGwithemail_verified: truefor a victim's email and silently take over their account, and without anauth_timefreshness check an agent could use a stale upstream session. [12] auth.md pairs two-hop OAuth discovery (/.well-known/oauth-protected-resourceand/.well-known/oauth-authorization-serverwithagent_auth) with three registration modes atPOST /agent/identity(identity_assertionwithurn:ietf:params:oauth:token-type:id-jag,service_authwithlogin_hint, andanonymous) and an RFC 8628-shaped claim ceremony (user_code,verification_uri,expires_in,interval) polled viaurn:workos:agent-auth:grant-type:claim. [11] The structured Protected Resource Metadata at/.well-known/oauth-protected-resourceremains the authoritative source for endpoint URLs and supported flows whileauth.mdserves as the prose companion, and the two-stepidentity_assertionexchange replaces OAuthrefresh_tokenissuance. [10][11]
Overview
OAuth Protected Resource and Authorization Server Metadata (as used for agent authorization)
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
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)
auth.md
References
- 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
- 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
- Model Context Protocol, Authorization, specification version 2026-07-28 — https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization
- Model Context Protocol, Client Registration, specification version 2026-07-28 — https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration
- IETF Datatracker, RFC 9728: OAuth 2.0 Protected Resource Metadata, RFC - Proposed Standard (April 2025) — https://datatracker.ietf.org/doc/html/rfc9728
- IETF Datatracker, RFC 8414: OAuth 2.0 Authorization Server Metadata, RFC - Proposed Standard (June 2018) — https://datatracker.ietf.org/doc/html/rfc8414
- 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
- WorkOS, auth.md, repository created 2026-05-20; pushed 2026-09-24 — https://github.com/workos/auth.md
- WorkOS, auth.md, README on main — https://raw.githubusercontent.com/workos/auth.md/main/README.md
- WorkOS, The auth.md file — auth.md, checked 2026-10-29 — https://workos.com/auth-md/docs/auth-md
- WorkOS, AUTH.md, checked 2026-10-29 — https://raw.githubusercontent.com/workos/auth.md/main/AUTH.md
- WorkOS, CHANGELOG.md, checked 2026-10-29 — https://raw.githubusercontent.com/workos/auth.md/main/CHANGELOG.md
- Garrett Galow (WorkOS), Agent Registration with Auth.md — WorkOS, checked 2026-10-29 — https://workos.com/blog/agent-registration-with-auth-md
- 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
- 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
- WorkOS, auth.md — Open Protocol for Agent Registration, checked 2026-10-29 — https://workos.com/auth-md
- Fabricio Telles, AI Agent Registration Protocol for Web — auth-md, checked 2026-10-29 — https://auth-md.com/
- WorkOS, package.json, checked 2026-10-29 — https://raw.githubusercontent.com/workos/auth.md/main/package.json
- 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