Repository navigation
v0.2.1
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 untilexp. DELETE /admin/issuances/{id}now takes effect at introspection.- The per-client scope ceiling (
client.Scope) is enforced on
authorization_codeandrefresh_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 ascopeand
authorization_codebefore 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/authorizeand
onrefresh_tokenfrom v0.3.0. Setoauth.default_client_scopeor use
dcr.mode: admin_onlyand grant scopes per client. The server logs a
startup warning while it is unset.
Fixed
agent_idis emitted onauthorization_codeandrefresh_tokenaccess
tokens for agent clients, as it already was on the other grants.
Delegated agent tokens now log oneattached agent_id claimline (with
chain_length) instead of two; anything keyed on
attached agent_chain claimgoes quiet.GET /admin/clients,GET /admin/clients/{id}and thePATCHresponse
includescope,agentandagent_description, always present.GET /admin/issuancesandGET /admin/issuances/{id}include
consent_client_idandparent_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 onparent_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