Phase 12, part 5: roles from the Core's groups
Settings → Sign-in: roles follow the Core's groups, with a prefix. <prefix>-admins makes an admin, <prefix>-<module> edits a module, <prefix>-<module>-view reads it. Set at each sign-in with the Core; someone in a group joins; the owner never changes; someone in none of them keeps the access set here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -66,8 +66,9 @@ Core, multi-tenant.
|
||||
|
||||
**Phase 12 (signing in with the Core, OIDC) is built** on branch
|
||||
`phase12`, which starts from `phase13` (2026-11-26), with the Core's
|
||||
`idproviders.yml` as the guide. Not yet tried against a real Authelia. Phase 12 still needs who adds Supermarket's client to
|
||||
Authelia.
|
||||
`idproviders.yml` as the guide, all five parts (part 5, the Core's groups
|
||||
to roles, on 2026-11-26). Not yet tried against a real Authelia; the
|
||||
Core's admin adds Supermarket's client to `idproviders.yml`.
|
||||
|
||||
**Coming back to it (for the agent working on it):**
|
||||
- Run the tests inside the sandbox with
|
||||
@@ -2760,9 +2761,8 @@ it at once.
|
||||
owner's, kept as a way in if the Core is down.
|
||||
4. **Signing out**, which also ends the Authelia session where Authelia
|
||||
supports it.
|
||||
5. **Groups, later:** Authelia's groups could map to roles (a
|
||||
`supermarket-admins` group makes admins). Until then roles are set in
|
||||
Supermarket.
|
||||
5. **Groups:** Authelia's groups can map to roles (a
|
||||
`supermarket-admins` group makes admins), and to modules.
|
||||
|
||||
**What the Core's `idproviders.yml` shows (shared 2026-11-26).** Each
|
||||
service's client is an entry under `identity_providers.oidc.clients` in
|
||||
@@ -2789,7 +2789,7 @@ client: the Core's admin, pasting Supermarket's entry into
|
||||
`idproviders.yml` (2026-11-26).
|
||||
|
||||
**Built 2026-11-26** on branch `phase12` (from `phase13`). Parts 1–4; part 5
|
||||
(groups to roles) stays for later.
|
||||
(groups to roles) followed, below.
|
||||
- `internal/oidc`: discovery (the issuer must match), the code flow with
|
||||
PKCE (S256), a nonce and a state, the token exchange
|
||||
(`client_secret_post`), and the ID token's claims checked (issuer,
|
||||
@@ -2832,6 +2832,21 @@ client: the Core's admin, pasting Supermarket's entry into
|
||||
goes to the Core; and on multi-tenant (Postgres), the domain finds the
|
||||
team and the session works there. Not tried against a real Authelia yet.
|
||||
|
||||
**Part 5 built 2026-11-26** (on `main`, after Phase 14).
|
||||
- Settings → Sign-in: *Roles follow the Core's groups*, with a prefix
|
||||
(`supermarket` unless changed). In Authelia, `supermarket-admins` makes
|
||||
an admin, `supermarket-<module>` edits a module and
|
||||
`supermarket-<module>-view` reads it (module IDs: content, prospects,
|
||||
seo, metrics, sites, market).
|
||||
- Each sign-in with the Core sets the person's role and modules from their
|
||||
groups (the `groups` claim, from the ID token or userinfo), and the
|
||||
change goes in the audit log. Someone not yet in the team who is in one
|
||||
of the groups joins (with a seat free, on multi-tenant). The owner is
|
||||
never changed. Someone in none of these groups keeps the access set in
|
||||
Users, so people invited by hand still work; to take someone's access
|
||||
away, turn them off in Users or at the Core.
|
||||
- Access follows at the next sign-in, not mid-session.
|
||||
|
||||
|
||||
#### Phase 13: Multi-tenant
|
||||
|
||||
|
||||
Reference in New Issue
Block a user