A connected service may take its course claims from another service's links (D604) #741
Loading…
Reference in a new issue
No description provided.
Delete branch "oidc-client-links-from"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Limedoc's new Sites pack protects course-only websites with a gate (
limedoc-sites-gate), which signs in to Aivopod as its own confidential client. Course and workspace claims are only issued for courses linked to the requesting client (course_links.client_id, ADR 0002 §5), so the gate only ever received the school claim and a site restricted to a course admitted nobody.What
oidc_clients.links_from(FK tooidc_clients,ON DELETE SET NULL DEFERRABLE, check<> client_id).op_claims_person,op_claims_person_workspaces,op_claims_teacher,op_claims_teacher_workspacesjoin the links oncoalesce(links_from, client_id). Schools, the gate claimaivopod:<client>, superadmins, pseudonymoussub, events and logouts stay the client's own.idp-client-add … --links-from <id>; newidp-client-links-from --id <id> [--links-from <id>](without the option: back to its own links). One step only (ops:idp.links-from-chain), never itself (ops:idp.links-from-self), unknown source →ops:idp.not-found.removeof a source is refused while a client takes its links (ops:idp.remove-links-source), also with--force. Audited (op.client.links-from);show/listreturnlinksFrom.TableFormat.keynames the key for deferred updates (client_idhere, defaultid). Upgrade 68 → 69 addslinks_from: null.schema.sql,types.tsregenerated; German ops messages; docs: D604,betrieb.md, SPEC, ADR 0002.Tests
op/claims.test.ts(gate withlinks_fromgets course, team and workspace claims via the source's links, never for a school it doesn't serve; without it only the school claim; self-reference rejected; source deleted → null),ops/idp.test.ts(add/set/clear, show, chain, self, unknown, audit; remove refused then allowed),instance/upgrade.test.ts(68 → 69), full-instance round trip with a gate client sorting before its source. Locally: full@aivopod/apisuite 1721 passed, i18n/shared, lint, typecheck, prettier.apcmdpassthrough (idp client add --links-from,idp client links-from set) follows as a separate PR inaivopod/apcmd.🤖 Generated with Claude Code
https://claude.ai/code/session_01PVUe4eShm8JT4LPt8MJdXT