From 637ef1cc258976fa5d9c37dafb0c08c4e38f1c72 Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 25 Nov 2026 12:52:40 -0700 Subject: [PATCH] PLAN.md: what the Core's idproviders.yml shows about adding a client Co-Authored-By: Claude Opus 5.5 --- PLAN.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/PLAN.md b/PLAN.md index be19d05..65ac46f 100644 --- a/PLAN.md +++ b/PLAN.md @@ -2759,9 +2759,24 @@ it at once. `supermarket-admins` group makes admins). Until then roles are set in Supermarket. -**Before starting (2026-11-26):** ask the user for the Core's -`idproviders.yml`; how the Core configures Authelia decides how this phase -is built. +**What the Core's `idproviders.yml` shows (shared 2026-11-26).** Each +service's client is an entry under `identity_providers.oidc.clients` in +that file on the Core host (edited as root, a template Authelia reads), so +the Core's admin pastes Supermarket's entry in: Supermarket can't add +itself (that answers the open question). The entries: +- `client_secret` is a hash: `$pbkdf2-sha512$310000$$` (16 + bytes of salt, a 64-byte key, in passlib's base64), so Supermarket can + make the secret, keep it encrypted, and show only its hash. +- `consent_mode: 'implicit'`, `authorization_policy: 'one_factor'` (Authelia + decides two-factor for its own sign-in), `public: false`. +- `redirect_uris` per service; scopes `openid profile email groups`; + `userinfo_signed_response_alg: 'none'`; `token_endpoint_auth_method` + `client_secret_post` or `client_secret_basic`. +- Clients that want it set `require_pkce: true` with `S256` (Nextcloud, + Vaultwarden). +- Lifespans: an authorize code lasts 1 minute, an ID token 1 minute, an + access token 2 hours. + Authelia is always at `authelia.` (confirmed 2026-11-25), so Supermarket fills in the issuer itself from the Core's domain. Still open: