Gate: Aivopod profile (scope, claims, ES256) #2

Merged
oliver.maklott merged 1 commit from aivopod-profile into main 2026-11-20 19:54:39 +01:00

This makes the gate work against Aivopod as the IdP. Checked against aivopod-app 0.82.0 (apps/api/src/op/*).

  • Example config: scope openid aivopod, claimPaths: ["groups"]. Aivopod emits groups only for scope aivopod, so the previous openid would have admitted nobody. profile stays off, so no names are sent.
  • Tests: the mock provider can sign ES256, Aivopod's algorithm; until now only EdDSA was exercised. A new test runs an Aivopod-shaped login: pairwise sub, groups with aivopod:school:<uuid>, roles, labels.
  • README:
    • <domain> is the target's site domain;
    • one gate per target with oidc sites;
    • why the callback lives on auth.<domain>;
    • the apcmd idp client add command (only a label and a redirect URI are needed).
  • Known limit, documented: Aivopod sends course claims only for courses connected (course_links) to the requesting client. A separate gate client therefore admits school audiences, but a course audience admits nobody (fails closed). How to fix this is an open decision.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4eShm8JT4LPt8MJdXT

This makes the gate work against Aivopod as the IdP. Checked against aivopod-app 0.82.0 (`apps/api/src/op/*`). - **Example config:** scope `openid aivopod`, `claimPaths: ["groups"]`. Aivopod emits `groups` only for scope `aivopod`, so the previous `openid` would have admitted nobody. `profile` stays off, so no names are sent. - **Tests:** the mock provider can sign ES256, Aivopod's algorithm; until now only EdDSA was exercised. A new test runs an Aivopod-shaped login: pairwise `sub`, `groups` with `aivopod:school:<uuid>`, `roles`, labels. - **README:** - `<domain>` is the target's site domain; - one gate per target with `oidc` sites; - why the callback lives on `auth.<domain>`; - the `apcmd idp client add` command (only a label and a redirect URI are needed). - **Known limit, documented:** Aivopod sends course claims only for courses connected (`course_links`) to the *requesting* client. A separate gate client therefore admits school audiences, but a course audience admits nobody (fails closed). How to fix this is an open decision. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4eShm8JT4LPt8MJdXT
Aivopod profile: example config with scope openid aivopod and groups; ES256 ID tokens tested.
All checks were successful
Test / test (pull_request) Successful in 8s
fe1018b25f
Aivopod issues `groups` only for scope `aivopod` and signs ID tokens with
ES256. The example config asked for `openid` alone, so a gate configured
from it would have admitted nobody. The mock provider can now sign ES256,
and a test runs an Aivopod-shaped login. The README explains `<domain>`,
one gate per target, the `apcmd idp client add` call, and that Aivopod
sends course claims only for courses connected to the gate's own client.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4eShm8JT4LPt8MJdXT
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-sites-gate!2
No description provided.