Skip to content

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 21 Sep 07:15
· 4 commits to main since this release

Authplane Auth Server v0.2.1

Self-hosted OAuth 2.1 Authorization Server for the Model Context Protocol.

Post-launch fixes. One additive schema change.

Security

  • Revoking a consent grant (DELETE /admin/grants/consent/{id}) now
    revokes every token issued because of it: the client's access token,
    every token exchanged from it, and the client's refresh families for the
    resource. Introspection reports them inactive and they are refused as a
    subject_token. An authorization code issued before the revoke can still
    be redeemed within its 10-minute life; the next minor closes that.
    Resource servers that verify JWTs locally see nothing until exp.
  • DELETE /admin/issuances/{id} now takes effect at introspection.
  • The per-client scope ceiling (client.Scope) is enforced on
    authorization_code and refresh_token, not only on the machine grants.
    A client whose ceiling is narrower than what it requests now gets
    invalid_scope. Check any client that has both a scope and
    authorization_code before upgrading.
  • New config oauth.default_client_scope
    (AUTHPLANE_OAUTH_DEFAULT_CLIENT_SCOPE): the ceiling assigned to clients
    created through dynamic registration or CIMD whose grants keep a user in
    the loop. Applies to new registrations only.

Deprecated

  • Clients with no scope ceiling will be refused at /oauth/authorize and
    on refresh_token from v0.3.0. Set oauth.default_client_scope or use
    dcr.mode: admin_only and grant scopes per client. The server logs a
    startup warning while it is unset.

Fixed

  • agent_id is emitted on authorization_code and refresh_token access
    tokens for agent clients, as it already was on the other grants.
    Delegated agent tokens now log one attached agent_id claim line (with
    chain_length) instead of two; anything keyed on
    attached agent_chain claim goes quiet.
  • GET /admin/clients, GET /admin/clients/{id} and the PATCH response
    include scope, agent and agent_description, always present.
  • GET /admin/issuances and GET /admin/issuances/{id} include
    consent_client_id and parent_jti.
  • Docs: agent identity identifies the issuing client; it does not vouch
    for it. The token exchange guide describes what revocation reaches.
  • Conformance register: AP-EXT-005 (consent revocation reaches derived
    tokens) and AP-EXT-006 (scope ceiling on the interactive grants).

Schema

  • Migration 013 adds issuances.consent_client_id, issuances.parent_jti
    and an index on parent_jti. It is numbered past the range the next
    minor reserves; the migration runner now applies every embedded version
    not yet recorded, so upgrades in either order apply cleanly.

Full Changelog: v0.2.0...v0.2.1