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: