Plugin SDK: teacherClaimsOf and appOidcIssuer for packs (ADR 0007) #44

Merged
oliver.maklott merged 2 commits from sdk-teachers-issuer into main 2026-11-25 10:13:16 +01:00

Two small SDK shims for the Sites pack review fixes (ADR 0007):

  • plugin_spaces.teacherClaimsOf(space): the teacher claims of a claim space as its claim-space templates name them (teacherClaim); claims no template matches have none. The pack used to hard-code <claim>:teacher.
  • plugin_auth.appOidcIssuer(): OIDC_ISSUER without trailing slash, so the pack can enforce ADR 0007 D1 (people rules only when the gate shares Limedoc's issuer).

Test lib/spaces/plugin_spaces_shim.test.ts (in test:spaces). No release bump: the pack uses the shims when the core has them and falls back otherwise; the next core release carries them.

🤖 Generated with Claude Code

Two small SDK shims for the Sites pack review fixes (ADR 0007): - `plugin_spaces.teacherClaimsOf(space)`: the teacher claims of a claim space as its claim-space templates name them (`teacherClaim`); claims no template matches have none. The pack used to hard-code `<claim>:teacher`. - `plugin_auth.appOidcIssuer()`: `OIDC_ISSUER` without trailing slash, so the pack can enforce ADR 0007 D1 (people rules only when the gate shares Limedoc's issuer). Test `lib/spaces/plugin_spaces_shim.test.ts` (in `test:spaces`). No release bump: the pack uses the shims when the core has them and falls back otherwise; the next core release carries them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Plugin SDK: teacherClaimsOf (claim-space templates) and appOidcIssuer for packs (ADR 0007 D1, D2)
Some checks failed
Encrypted-mode tests / native (pull_request) Successful in 8s
Lifecycle tests / unit (pull_request) Successful in 18s
Read policy tests / unit (pull_request) Successful in 12s
Lifecycle tests / e2e (pull_request) Successful in 27s
Check / check (pull_request) Successful in 52s
TOC tests / unit (pull_request) Successful in 16s
TOC tests / e2e (pull_request) Successful in 10s
Encrypted-mode tests / encrypted (pull_request) Has been cancelled
Core tests / core (pull_request) Has been cancelled
Read policy tests / integration (pull_request) Successful in 1m45s
Plugin SDK check / plugin-check (pull_request) Has been cancelled
Render pipeline / docker (pull_request) Has been cancelled
Render pipeline / unit (pull_request) Has been cancelled
7149802613
The Sites pack derived a private site's teacher claims as <claim>:teacher
and could not compare its gate's issuer with Limedoc's. Both now come
from core: plugin_spaces.teacherClaimsOf(space) fills each claim's
teacherClaim from the claim-space templates (no template: none), and
plugin_auth.appOidcIssuer() is OIDC_ISSUER without trailing slash.
No release: packs use them when present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Plugin SDK: schoolOfClaim (claim-space templates) for packs
All checks were successful
Render pipeline / docker (pull_request) Successful in 4m37s
Plugin SDK check / plugin-check (pull_request) Successful in 7m50s
Encrypted-mode tests / encrypted (pull_request) Successful in 22m31s
Check / check (pull_request) Successful in 49s
Encrypted-mode tests / native (pull_request) Successful in 6s
Lifecycle tests / unit (pull_request) Successful in 12s
Lifecycle tests / e2e (pull_request) Successful in 23s
Read policy tests / unit (pull_request) Successful in 12s
Read policy tests / integration (pull_request) Successful in 1m58s
Render pipeline / unit (pull_request) Successful in 2m18s
TOC tests / unit (pull_request) Successful in 18s
TOC tests / e2e (pull_request) Successful in 11s
Core tests / core (pull_request) Successful in 7m3s
461de759c2
A pack checks that a person it adds to a school site belongs to that
school through the course or workspace both share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
limedoc/limedoc!44
No description provided.