Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 15:29
· 12 commits to main since this release
a8251af

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 with 401 and a WWW-Authenticate challenge 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.
  • Verified consent (M2, AGENTIC_AUTH_VERIFIED_CONSENT_ENABLED). Consent takes the user's
    IdP token as subject_token, verifies it itself, and roots the session at iss#sub. The
    session, every audit row and the chain query say principal_source: verified. An asserted
    user_sub alone is refused, and one that disagrees with the token is refused without being
    echoed.
    • A new AGENTIC_AUTH_CONSENT_TOKEN may call consent and nothing else. Give it, never the
      admin token, to a proxy or gateway.
  • 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 with CLIENT_NOT_AUTHORIZED and next: 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's authorization_servers and 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 its REQUIREMENTS.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 as mcp-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 as principal_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 relay initialize, tools/list and every other non-tools/call method with
    all inbound headers, so the agent's bearer token reached the upstream server. It now strips
    Authorization, Cookie and Proxy-Authorization.
    • Upgrade: an upstream that needs a credential on those methods gets an operator secret per
      route, relay_authorization.
  • 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 only AGENTIC_AUTH_PRINCIPAL_IDP_ALGORITHMS, default RS256,ES256,EdDSA;
    none and HS* are refused at startup.
    • Upgrade: if your IdP signs with another algorithm, such as PS256, set that variable.
  • 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 raises StoreVersionMismatch.
    • Upgrade: export it with the version that created it, and start a new store. Server
      deployments migrate as usual (alembic upgrade head, migration 0008_mcp_oauth_baseline).
  • The SDK's Session ignores response fields it does not know, so a newer control plane never
    breaks an older client's consent(). New consent response fields appear only when they
    carry information (verified consent on, or a mapped client).

Upgrade notes

  • Turning on M3 changes iss in new tokens, because it needs AGENTIC_AUTH_ISSUER to 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 say root_of_authority: asserted. Turn on
    verified consent wherever you can.