Skip to content

Commit cdf571a

Browse files
committed
fix(auth): keep the tracker id out of the withdraw ledger note
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxU7nr4BXM7e8qMfwq
1 parent 9bcc1b5 commit cdf571a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/plugins/plugin-auth/src/auth-route-ledger.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export const AUTH_ROUTE_LEDGER: readonly AuthRouteLedgerEntry[] = [
199199
{ route: 'GET /api/v1/auth/admin/authorized-clients', family: 'objectstack-mount', source: 'objectstack', disposition: 'sdk', client: 'oauth.authorizedClients.listForUser', note: 'another person\'s authorized AI assistants, ?userId=ID: platform-admin gated exactly as the admin session doors are (ADR-0068 D2, a held session refused per ADR-0069 D3), the gate run before the query is read, so a caller outside that reach is refused once whether or not the person exists; an organization owner or admin is not a platform admin and is refused. Every organization the person granted in, each row naming its organizationId. Read only. Closed query set {userId}: missing, empty or repeated is 400, an id naming no user is 404' },
200200
{ route: 'POST /api/v1/auth/admin/authorized-clients/withdraw', family: 'objectstack-mount', source: 'objectstack', disposition: 'sdk', client: 'oauth.authorizedClients.withdrawForUser', note: 'withdraw one of another person\'s authorized AI assistants, body { userId, id }: behind the same gate as GET /admin/authorized-clients (ADR-0068 D2, a held session refused per ADR-0069 D3), run before the body is read, so a caller outside that reach is refused once whether or not the person or the consent exists; an organization owner or admin is not a platform admin and is refused. A userId naming no user is 404 with the read\'s message; a consent that is not that person\'s reads the same 404 as one that does not exist. The same revoke as the own door' },
201201
{ route: 'GET /api/v1/auth/authorized-clients', family: 'objectstack-mount', source: 'objectstack', disposition: 'sdk', client: 'oauth.authorizedClients.list', note: 'the caller\'s own authorized AI assistants (OAuth consents), keyed by the session\'s subject and nothing else: the query set is closed and empty, so a userId or any other parameter is refused 400 rather than ignored. Each row: consent id (the key POST /authorized-clients/withdraw takes), clientId, name, scopes, organizationId, authorizedAt, lastUsedAt (start of the most recent hour with a verified MCP call, null when none is recorded); no token, code, secret or session value. Newest first, at most 200 rows with truncated saying when there are more; Cache-Control: no-store' },
202-
{ route: 'POST /api/v1/auth/authorized-clients/withdraw', family: 'objectstack-mount', source: 'objectstack', disposition: 'sdk', client: 'oauth.authorizedClients.withdraw', note: 'withdraw one of the caller\'s own authorized AI assistants by the consent id the authorized-clients read answers, body { id } and nothing else (the query set is closed and empty, an unknown body key is 400): keyed by the session\'s subject, so an id naming no consent and an id naming another person\'s consent read the same 404 RESOURCE_NOT_FOUND and the other row stays. Revokes the grant as /oauth2/revoke does (cloud#3606 ruling A): the consent row, then the client\'s refresh family, so the assistant\'s token is refused on its next MCP call. Answers { id }; Cache-Control: no-store' },
202+
{ route: 'POST /api/v1/auth/authorized-clients/withdraw', family: 'objectstack-mount', source: 'objectstack', disposition: 'sdk', client: 'oauth.authorizedClients.withdraw', note: 'withdraw one of the caller\'s own authorized AI assistants by the consent id the authorized-clients read answers, body { id } and nothing else (the query set is closed and empty, an unknown body key is 400): keyed by the session\'s subject, so an id naming no consent and an id naming another person\'s consent read the same 404 RESOURCE_NOT_FOUND and the other row stays. Revokes the grant as /oauth2/revoke does: the consent row, then the client\'s refresh family, so the assistant\'s token is refused on its next MCP call. Answers { id }; Cache-Control: no-store' },
203203
// ─────────────────────────────────────────────────────────────────────
204204
// #10534 — the remaining ObjectStack raw-app mounts, ledgered.
205205
//

0 commit comments

Comments
 (0)