Repository navigation
v0.2.0
Authplane Auth Server v0.2.0
Self-hosted OAuth 2.1 Authorization Server for the Model Context Protocol.
MCP Authorization 2026-07-28 release, built with Go 1.26.6. Every gap
between authserver and the current revision of the specification is closed,
and the spec-surface features now ship enabled. A wire-level conformance
journey gates every change.
Contains breaking changes. Three bite a deployment that changes no
configuration: the spec-surface features are on, a cross-client token
exchange needs an operator allowlist entry, and an origin-only CIMD
client_idis refused. Read the next section first.
Breaking changes
-
DPoP, client credentials, token exchange and XAA are enabled by default.
dpop.enabled,client_credentials.enabled,token_exchange.enabledand
xaa.enablednow default totrue; a stock deployment previously
advertised onlyauthorization_codeandrefresh_token. The discovery
document grows accordingly. DPoPenabledmeans supported, not required —
a client sending no proof still gets a bearer token. Grants remain gated by
client registration, so enabling one widens what a client may register
for; it grants nothing retroactively. XAA validates nothing until a trusted
IdP is registered. The Helm chart (0.4.0) follows suit.
Action: set any of the four tofalse(or the matching
AUTHPLANE_*_ENABLED) to keep the previous posture. -
A cross-client token exchange needs an operator allowlist entry. A
client presenting a token minted for a different client — the common
shape is an MCP server exchanging a user's web-app or agent token for a
Mint resource token — must be named on the target Resource, in
policy.exchange.allowed_client_idsorpolicy.runtime.client_ids.
Otherwise the exchange is refused withaccess_denied(not
consent_required; re-prompting the user would not fix it). Previously an
empty allowlist meant "any client may act", so any client holding another
client's token could spend that client's consent. Unaffected: a client
exchanging a token issued to itself, fronted exchanges, Broker resources,
and an MCP server exchanging for its own resource where it is already in
runtime.client_ids.
Action: for each MCP server that exchanges for a downstream resource it
does not act as:PATCH /admin/resources/{id} {"policy": {"exchange": {"allowed_client_ids": ["<exchanging-client-id>"]}}} -
A CIMD
client_idURL must usehttpsand carry a path component.
Per the 2026-07-28 client-registration rules. An origin-only identifier
(https://example.com) collapses every client on that domain into one
identity and one consent record, so it is refused at/oauth/authorize
withinvalid_client; dot-segments and empty segments do not count as a
path. Those identifiers were never spec-legal.
Action: re-register affected clients against a metadata URL with a path. -
cimd.require_https: falseis only accepted with a localhost issuer.
The server refuses to boot otherwise: a metadata document served over
plaintext decides a client's identity and redirect URIs and is modifiable in
transit. Both shipped configs already use a localhost issuer. -
cimd.require_httpsno longer governs SSRF address filtering;
cimd.allow_private_addressesdoes. Turning HTTPS enforcement off for
local development previously also, and silently, removed dial-time address
filtering, so a DNS name resolving to a private or cloud-metadata address
was fetched unchecked. The two controls are now independent; both default
to their protective setting, and the new key is likewise refused off a
localhost issuer.
Action: if you runrequire_https: falseand serve CIMD documents from
loopback, a container network or a LAN address (the shape of the demo
config), addcimd.allow_private_addresses: true. -
resourceat the token endpoint is enforced. On the authorization-code
and refresh paths it was read and dropped; the audience came from the
session, so a client naming a different resource got a token for the one
it authorized, with a 200. Aresourcethat is not one the grant covers is
now refused withinvalid_target(RFC 8707 §2.2), before the code or
refresh token is consumed. Omitting it is unchanged. The likeliest way to
hit this is a spelling difference: resource URIs match exactly and a
trailing slash counts. -
Go API (embedders only):
Fetcher.SetAllowLoopbackis removed — the
address policy rides on the per-requestCIMDFetchConfig;
ssrf.NewSafeTransportis variadic;AccessTokenClaims.MayActis removed;
api/public.NewServerpanics when the authorize or consent handlers are
wired without anIssuerProvider.
Upgrading from 0.1.2
- Config and database from 0.1.2 work unchanged apart from the above.
Migration004applies on first start — additive (a nullable
application_typecolumn onclients; existing rows stay NULL and read
asweb). - Decide the posture for the four now-on features before upgrading.
- Authorize each MCP server that exchanges for a downstream resource (see
above). An MCP server exchanging for its own resource needs nothing. - If any client uses an origin-only CIMD
client_id, re-register it first.
Security
- The consent screen shows where an approval will be sent, and warns when
that is the user's own machine. The client name is self-declared; the
redirect URI is the one thing on the screen the server has verified. The
destination host is rendered in its own block above Deny/Allow; a loopback
destination is marked, with a warning that any program on the machine can
ask for this. Parsed from the URI, so a userinfo decoy
(https://good.example.com@evil.example/cb) displaysevil.example. - The CIMD fetch path is bounded.
GET /oauth/authorizeneeds no session
and a URL-shapedclient_idis fetched, so an unauthenticated caller could
drive outbound traffic at will. Failed fetches are negatively cached,
concurrent fetches of one document collapse into one, total outbound
concurrency is capped, and the document cache is bounded in entries. - The DPoP nonce middleware no longer issues a nonce — a durable insert —
for every/oauth/tokenrequest. Only a request presenting aDPoP
header gets one. Reachable now that DPoP is on by default. - Dependency updates.
google.golang.org/grpcv1.83.2 (CVE-2026-84445);
go-jose/v4v4.1.5 — verification key chosen per signature,algchecked
against the key's curve, malformed Ed25519 JWKs and out-of-range
NumericDaterejected, on the paths a trusted-IdP JWKS reaches;
golang.org/x/cryptov0.57.0 (CVE-2026-56855, CVE-2026-78662). - The
dcr.mode: openboot warning now reports the effective mode, so a
mode persisted through the admin API cannot leave it silent. AUTHPLANE_XAA_SUBJECT_MODEis validated at boot; a typo no longer
silently downgradesstricttoauto_map.
Added
- The AS serves OAuth 2.0 Protected Resource Metadata (RFC 9728) for
every registered Resource, atGET /.well-known/oauth-protected-resource
and/.well-known/oauth-protected-resource/{ref}—refbeing the §3.1
path suffix of the Resource URI or its slug. A resource server that cannot
host well-known paths itself still has a conformant document to point its
WWW-Authenticate: resource_metadataat. A Resource with no URI is 404, not
a document with an emptyresource. - RFC 9207
isson every authorization response, success and error
alike, andauthorization_response_iss_parameter_supported: truein
discovery — emitted unconditionally, because a client keys its strict
rejection on it and "absent" differs from "false". The value is written
verbatim; clients compare it byte for byte. authorization_grant_profiles_supportedin discovery, listing
urn:ietf:params:oauth:grant-profile:id-jag— the field the stable MCP
Enterprise-Managed Authorization extension tells clients to check. This
server previously advertised the capability only under a pre-standard flag
no conformant client reads.POST /oauth/registeraccepts and persistsapplication_type(web
ornative). MCP clients are required to send it; a client that omits it
is defaulted toweband told so in the response, which under OIDC refuses
the loopback redirect URIs native clients need.xaa.*is configurable from the environment:AUTHPLANE_XAA_ENABLED,
_TOKEN_EXPIRY,_MAX_ASSERTION_AGE,_REQUIRE_RESOURCE,
_SUBJECT_MODE,_JWKS_CACHE_TTL.cimd.allow_private_addresses(defaultfalse,
AUTHPLANE_CIMD_ALLOW_PRIVATE_ADDRESSES) — see Breaking changes.
Changed
- CIMD documents are cached according to their own HTTP cache headers
(Cache-Control,Expires), bounded above bycimd.cache_ttland below by
a short floor;no-storeis honoured.cimd.cache_ttlis now a ceiling
rather than a fixed lifetime. - The server warns at boot when
dcr.modeisopen. The 2026-07-28
specification deprecates DCR in favour of CIMD, which needs no registration
endpoint and is on by default, so most deployments no longer need open DCR.
It stays the default only because client-side CIMD support is still
arriving.
Deprecated
identity_assertion_supportedin AS metadata — still emitted this
release; removed in v0.3.0. Readauthorization_grant_profiles_supported.- Dynamic Client Registration as the primary registration path, per the
specification. Still supported; setdcr.mode: admin_onlyor
approved_redirectsonce your clients register via CIMD.
Removed
may_act. Its writer was removed long ago; the reader, claim field and
documentation were unreachable leftovers. Operator impact: none — a
cross-client exchange with noresourcewas already impossible and fails
at the same point with the sameaccess_denied.
Fixed
GET /.well-known/oauth-protected-resource/{ref}answered 500 on aref
that was not valid UTF-8; it is 404 now.- The consent
POSTresolved the issuer after minting the authorization
code, so an issuer failure orphaned the code and persisted the grant. - The compliance statement declared a
require_scopedeviation that was not
one, citing a record that did not exist. - The generated config reference documented zeros for every
xaa.*default.
Full Changelog: v0.1.2...v0.2.0