Repository navigation
v0.4.0
Added
The MCP 2026-07-28 OAuth 2.1 baseline: a standard MCP client can authenticate to Agentic
Auth with no Agentic-Auth-specific code, and the root of every delegation chain can be a
human your IdP actually signed in. Your IdP stays the authorization server: Agentic Auth
never runs a login, an authorization endpoint or client registration. Each milestone is its
own setting, off by default; with all of them off, behaviour is unchanged apart from the
three changes listed under Changed.
- The connector proxy and gateway as OAuth protected resources (M1,
AGENTIC_AUTH_GATEWAY_OAUTH_RESOURCE_ENABLED).- They publish Protected Resource Metadata (RFC 9728) naming your IdP, and answer a missing
or bad token with401and aWWW-Authenticatechallenge pointing at it. - They validate the IdP's access token themselves: signature against its JWKS, issuer,
audience (RFC 8707, exactly this proxy's URL), expiry, and an allowed signing algorithm.
A token that fails is refused before any policy decision. - A valid token starts a session through consent, once per token, and the usual per-call
decision runs with that session's grant. The client's token never goes upstream. - The IdP's keys are fetched before the process serves; if they cannot be, it does not start.
If they become unreachable later with none cached, calls are refused, never allowed.
- They publish Protected Resource Metadata (RFC 9728) naming your IdP, and answer a missing
- Verified consent (M2,
AGENTIC_AUTH_VERIFIED_CONSENT_ENABLED). Consent takes the user's
IdP token assubject_token, verifies it itself, and roots the session atiss#sub. The
session, every audit row and the chain query sayprincipal_source: verified. An asserted
user_subalone is refused, and one that disagrees with the token is refused without being
echoed.- A new
AGENTIC_AUTH_CONSENT_TOKENmay call consent and nothing else. Give it, never the
admin token, to a proxy or gateway.
- A new
- Client mapping (M4,
AGENTIC_AUTH_CLIENT_MAPPING_ENABLED). An admin maps an IdP client
(its tokens'azp) to a registered agent at/v1/agents/{agent_id}/clients, and that
client's sessions run in the agent's scope. An unmapped client, or one whose agent has no
pinned manifest, is refused withCLIENT_NOT_AUTHORIZEDandnext: cold_start: identified,
not authorized. Mappings are soft-removed, so the table is its own history. - Authorization server metadata (M3,
AGENTIC_AUTH_AS_METADATA_ENABLED). The control plane
serves RFC 8414 metadata at/.well-known/oauth-authorization-server: token exchange, JWKS,
consent, and no authorization or registration endpoint. Registration also follows each MCP
server'sauthorization_serversand rejects a declared data class that server does not
issue (DECLARED_EXCEEDS_AUTHORIZATION_SERVER), blocks when it is unreachable
(AUTHORIZATION_SERVER_UNAVAILABLE), and notes when there was nothing to check
(AUTHORIZATION_SERVER_CHECK_SKIPPED, never blocking). - An MCP authorization conformance suite (
tests/conformance/mcp_auth, M5), one test per
named requirement in itsREQUIREMENTS.md, run against the proxy and the gateway, server
and embedded. A release now publishes nothing unless it passes, and the report is
attached to the GitHub release asmcp-conformance.xml. agentic_auth_consent_refusals_total{reason}, for consent refusals, which have no audit row
because no session exists yet.- The embedded control plane supports every new setting, and its test IdP mints MCP-client
access tokens. Sessions it roots are recorded asprincipal_source: embedded-test.
Changed
These apply with every flag off.
- Security: relayed MCP methods no longer carry the client's credentials. The connector
proxy used to relayinitialize,tools/listand every other non-tools/callmethod with
all inbound headers, so the agent's bearer token reached the upstream server. It now strips
Authorization,CookieandProxy-Authorization.- Upgrade: an upstream that needs a credential on those methods gets an operator secret per
route,relay_authorization.
- Upgrade: an upstream that needs a credential on those methods gets an operator secret per
- Security: tokens from the human IdP must use an allowed signing algorithm. Enrollment
binding and step-up used to verify an ID token with whatever algorithm its header named.
They now accept onlyAGENTIC_AUTH_PRINCIPAL_IDP_ALGORITHMS, defaultRS256,ES256,EdDSA;
noneandHS*are refused at startup.- Upgrade: if your IdP signs with another algorithm, such as
PS256, set that variable.
- Upgrade: if your IdP signs with another algorithm, such as
- Embedded stores created by 0.2.0 or 0.3.0 do not open. The schema gained columns, which
an embedded store cannot add in place, so opening one raisesStoreVersionMismatch.- Upgrade: export it with the version that created it, and start a new store. Server
deployments migrate as usual (alembic upgrade head, migration0008_mcp_oauth_baseline).
- Upgrade: export it with the version that created it, and start a new store. Server
- The SDK's
Sessionignores response fields it does not know, so a newer control plane never
breaks an older client'sconsent(). New consent response fields appear only when they
carry information (verified consent on, or a mapped client).
Upgrade notes
- Turning on M3 changes
issin new tokens, because it needsAGENTIC_AUTH_ISSUERto be an
https URL (RFC 8414). Update any offline verifier pinned to the old issuer first. - Removing a client mapping does not end live sessions. They expire within
SESSION_TTL_SECONDS. Revoke the agent for an immediate stop. - Running M1 with verified consent off needs
AGENTIC_AUTH_GATEWAY_ASSERTED_ROOT_SCOPE, and
roots sessions in an asserted subject: refusals sayroot_of_authority: asserted. Turn on
verified consent wherever you can.