Let apps describe their sign-in client: [sso] callback, pkce, token_auth

A rehearsal with Vikunja showed apps with their own redirect path or no
PKCE needed a bridge in the container. coreapp.toml's [sso] now sets the
Authelia client's callback, PKCE and token method; changes re-register
the client, and a failed update restores it. The skill covers [sso],
images without a shell and upstream ENV defaults; coreapp shell and
status explain rough edges the rehearsal hit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 17:45:54 -07:00
co-authored by Claude Opus 5.5
parent e2d9381c35
commit 5d06f1bd9b
10 changed files with 174 additions and 12 deletions
+18
View File
@@ -305,6 +305,24 @@ has the `DB_*` variables, `.coreapp` says `needs=postgres`.
`coreapp remove`: no block and no copy, and running
`/federated/bin/reconcile-authelia-sso` doesn't bring it back; Authelia
healthy, other clients (Nextcloud) still work. Deploy again: one block.
7. `[sso]`: `coreapps manifest` prints `sso_callback`, `sso_pkce`,
`sso_token_auth` (defaults `/auth/callback`, `true`,
`client_secret_basic`). Refused: `[sso]` without "sso" in needs, a
callback that isn't a path (`auth`, `/a'b`), `pkce = "no"`, `token_auth =
"none"`, an unknown key, `sso = "x"`. With the defaults, the client
block is the same as before `[sso]` existed.
8. Add `[sso] token_auth = "client_secret_post"` to an installed app and
deploy: its block says `client_secret_post` and Authelia restarted and is
healthy; remove it, deploy: `client_secret_basic` again. `callback =
"/auth/openid/core"`, `pkce = false`: the block has that redirect URI,
`require_pkce: false` and no `pkce_challenge_method`; Authelia's
authorize URL with that `redirect_uri` goes to its login page, with
`/auth/callback` to an `invalid_request` error. The copy
(`.<name>.oidc-client.yml`) matches.
9. Stock Vikunja (`vikunja/vikunja:2.8.0` with a busybox entrypoint,
`[sso] callback = "/auth/openid/core"`, `pkce = false`): `/api/v1/info`
lists the "Federated Core" provider; a browser sign-in with a Core
account works.
### With mysql