PLAN.md: what the Core's idproviders.yml shows about adding a client

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:52:40 -07:00
co-authored by Claude Opus 5.5
parent 0de5ab6698
commit 637ef1cc25
+18 -3
View File
@@ -2759,9 +2759,24 @@ it at once.
`supermarket-admins` group makes admins). Until then roles are set in `supermarket-admins` group makes admins). Until then roles are set in
Supermarket. Supermarket.
**Before starting (2026-11-26):** ask the user for the Core's **What the Core's `idproviders.yml` shows (shared 2026-11-26).** Each
`idproviders.yml`; how the Core configures Authelia decides how this phase service's client is an entry under `identity_providers.oidc.clients` in
is built. 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$<salt>$<key>` (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.<Core domain>` (confirmed 2026-11-25), so Authelia is always at `authelia.<Core domain>` (confirmed 2026-11-25), so
Supermarket fills in the issuer itself from the Core's domain. Still open: Supermarket fills in the issuer itself from the Core's domain. Still open: