Skip to content
Agent Identity

IETF · June 2018

OAuth 2.0 Authorization Server Metadata

RFC 8414

M. Jones, N. Sakimura, J. Bradley

RFCStableIdentity + Authn + AuthzFoundationField guide

Agents discover tools at runtime. Hardcoded token endpoints will not survive first contact with a new MCP server or a multi-tenant AS.

At a glance

Problem
Clients need a machine-readable map of the authorization server: issuer, endpoints, supported grants, PKCE methods, JWKS.
Identity / authn / authz
Discovery. Enables both OIDC-style identity and OAuth authorization without hardcoded URLs.

Actors

  • Client
  • Authorization server

01

The gap for agents

Clients need a machine-readable map of the authorization server: issuer, endpoints, supported grants, PKCE methods, JWKS. Agents discover tools at runtime; hardcoded token endpoints will not survive first contact with a new MCP server or a multi-tenant AS.

02

Actors and trust boundaries

The issuer identifier in the document MUST match the identifier used to fetch it. A document that lies about issuer is an attack (mix-up). Fetch over HTTPS; do not follow to a different host blindly.

03

Mechanics

RFC 8414: GET {issuer}/.well-known/oauth-authorization-server (OIDC uses /.well-known/openid-configuration). Path insertion rules exist when the issuer has a path. MCP clients MUST try both RFC 8414 and OIDC discovery path variants.

issuerfrom spec
Quoted: must match the identifier used to fetch metadata. Mix-up defense.
authorization_endpoint / token_endpoint / jwks_urifrom spec
Quoted core fields. Also grant_types_supported, code_challenge_methods_supported, …

04

Step-by-step flows

Flow 1

Discover an AS

  1. 1

    Start from an issuer URL (from PRM authorization_servers, or from user input).

  2. 2

    GET well-known metadata (8414 and/or OIDC).

  3. 3

    Reject if issuer does not match. Cache with TTL.

  4. 4

    Use endpoints and capability flags (PKCE S256, PAR, DPoP, CIMD) from the document.

05

Identity vs authentication vs authorization

Discovery. Enables both OIDC-style identity and OAuth authorization without hardcoded URLs.

06

How it composes

07

What bites agent implementers

  • Issuer mismatch

    Always compare exactly. Trailing slashes matter.

  • User-supplied issuer

    SSRF and mix-up. Allow-list when you can; always use HTTPS.

08

Stability — what you can ship

RFC 8414, June 2018. Stable. https://www.rfc-editor.org/rfc/rfc8414.html

Catalog claims (short form)

issuer
Must match the identifier used to fetch metadata. Mix-up defense.

Implementer notes

MCP clients MUST try both RFC 8414 and OIDC discovery path variants. Reject documents whose issuer does not match the fetched URL.

Relationship to others

Primary sources

  • RFC 8414https://www.rfc-editor.org/rfc/rfc8414.html