OAuth and OIDC spec library
Per-RFC summaries: what each spec does, why it exists, and exactly where OneAuth stands on it.
One page per specification. Each summarises what the spec is for, when to reach for it, and carries a grep-verified table of where OneAuth stands on every surface it defines. These are written for deciding what to build next, not as a replacement for the RFC text.
Start here
The map, and the profiles that pull the rest together.
| Specification | OneAuth coverage |
|---|---|
| OAuth Landscape | Implemented / Partial / Gap — links to code |
| OAuth 2.1 (draft-ietf-oauth-v2-1) | Baseline alignment landed in PR 296 (issue 140). Audit table: [docs/OAUTH21_ALIGNMENT.md](../OAUTH21_ALIGNMENT.md) |
| FAPI 1.0 / 2.0 — Financial-grade API Security Profiles | Not conformant — L5 is half-landed (DPoP shipped under #336; mTLS tracked under #335), L6 is half-landed (PAR shipped under #337; JAR tracked under #338) |
| RFC 9700 — OAuth 2.0 Security Best Current Practice | Adopted as baseline (PR 296). See [§OneAuth status](#oneauth-status). |
Core framework
The base protocol and how a token is carried.
| Specification | OneAuth coverage |
|---|---|
| RFC 6749 — The OAuth 2.0 Authorization Framework | Implemented (token endpoint + /authorize via PR 297) |
| RFC 6750 — OAuth 2.0 Bearer Token Usage | Implemented (header form); query-param fallback deprecated |
| RFC 7636 — Proof Key for Code Exchange (PKCE) | Implemented end-to-end (client + server, server enforcement landed in PR 297) |
| RFC 9207 — OAuth 2.0 Authorization Server Issuer Identification | Implemented (apiauth/authorize.go EmitIssParameter) |
Tokens and keys
JWT, JOSE, and the key formats underneath.
| Specification | OneAuth coverage |
|---|---|
| RFC 7515 — JSON Web Signature (JWS) | Implemented (via github.com/golang-jwt/jwt) |
| RFC 7516 — JSON Web Encryption (JWE) | Gap (not used; rarely needed in OAuth) |
| RFC 7517 — JSON Web Key (JWK) / JSON Web Key Set (JWKS) | Implemented (keys/jwks_handler.go, keys/jwks_keystore.go) |
| RFC 7518 — JSON Web Algorithms (JWA) | Implemented via github.com/golang-jwt/jwt/v5 |
| RFC 7519 — JSON Web Token (JWT) | Implemented (via github.com/golang-jwt/jwt/v5) |
| RFC 9068 — JWT Profile for OAuth 2.0 Access Tokens | Implemented |
Client authentication and registration
How a client proves who it is, and how it gets registered.
| Specification | OneAuth coverage |
|---|---|
| RFC 7521 — Assertion Framework for OAuth 2.0 Client Authentication and Authorization Grants | Implemented (transitively via [RFC 7523](RFC_7523.md)) |
| RFC 7523 — JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants | Grant: Implemented. Client auth: Implemented (client_secret_jwt PR 293; private_key_jwt shipped) |
| RFC 7591 — OAuth 2.0 Dynamic Client Registration (DCR) | Implemented (admin/DCRHandler) |
| RFC 7592 — OAuth 2.0 Dynamic Client Registration Management | Implemented (admin/DCRManagementHandler) |
| OAuth Client ID Metadata Document (CIMD, draft) | Implemented, opt-in (apiauth.CIMDAppStore, OneAuthConfig.ClientIDMetadataDocuments) |
| RFC 8705 — OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens | Gap (candidate for FAPI track) |
Grants and exchanges
Ways to obtain a token beyond the browser redirect.
| Specification | OneAuth coverage |
|---|---|
| RFC 8628 — OAuth 2.0 Device Authorization Grant | Implemented (apiauth.MountDeviceFlow) |
| RFC 8693 — OAuth 2.0 Token Exchange | Implemented (Phase 1 — JWT subject tokens) |
| OpenID Connect Client-Initiated Backchannel Authentication (CIBA) 1.0 | Gap |
Request hardening
Extensions that change how an authorization request is delivered or constrained.
| Specification | OneAuth coverage |
|---|---|
| RFC 9126 — OAuth 2.0 Pushed Authorization Requests (PAR) | Implemented (apiauth.PARHandler via MountAuthorize; in-memory + GORM stores) |
| RFC 9101 — JWT-Secured Authorization Request (JAR) | Gap (tracked under issue 338; issue 150 was consolidated into it) |
| JWT Secured Authorization Response Mode (JARM) | Implemented, opt-in (OneAuthConfig.JARM, client.VerifyAuthorizationResponse) |
| RFC 9396 — OAuth 2.0 Rich Authorization Requests (RAR) | Implemented (core/authorization_details.go + apiauth/ token / introspection / middleware) |
| RFC 9449 — OAuth 2.0 Demonstrating Proof-of-Possession at the Application Layer (DPoP) | Implemented — issuance (cnf.jkt, bound refresh tokens), resource-server enforcement, dpop_jkt at /authorize and on a pushed request, client SDK proof minting. Nonce protocol (§8/§9) outstanding |
Resource server and lifecycle
Discovery, introspection, revocation, logout.
| Specification | OneAuth coverage |
|---|---|
| RFC 8414 — OAuth 2.0 Authorization Server Metadata | Implemented (apiauth.MountASMetadata) |
| RFC 9728 — OAuth 2.0 Protected Resource Metadata | Implemented (apiauth.NewProtectedResourceHandler) |
| RFC 7662 — OAuth 2.0 Token Introspection | Implemented (apiauth/IntrospectionHandler) |
| RFC 7009 — OAuth 2.0 Token Revocation | Implemented (apiauth/RevocationHandler) |
| OpenID Connect Discovery 1.0 | Implemented (apiauth.MountASMetadata co-serves both well-known paths) |
| OpenID Connect Core 1.0 | Partial — /authorize shipped in PR 297 (OAuth-layer), but id_token issuance, nonce, and /userinfo are gaps |
| OpenID Connect Back-Channel Logout 1.0 | Implemented (apiauth/BCLDispatcher + LogoutTokenIssuer) |
Watch list
Tracked, not implemented.
| Specification | OneAuth coverage |
|---|---|
| GNAP — Grant Negotiation and Authorization Protocol (RFC 9635) | Watch-only — no implementation planned |