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
+2 -1
View File
@@ -42,7 +42,8 @@ keep its values and add new ones):
`needs = ["postgres"]` adds `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER` and
`DB_PASSWORD` (`needs = ["mysql"]` the same, for MariaDB); `needs = ["sso"]` adds `OIDC_ISSUER`, `OIDC_CLIENT_ID` and
`OIDC_CLIENT_SECRET`; `needs = ["email"]` adds `SMTP_HOST`, `SMTP_PORT`
`OIDC_CLIENT_SECRET` (the client's callback, PKCE and secret method are in
`coreapp.toml`'s `[sso]`); `needs = ["email"]` adds `SMTP_HOST`, `SMTP_PORT`
(587), `SMTP_SECURITY` (`starttls`), `SMTP_USER`, `SMTP_PASSWORD` and
`SMTP_FROM` (`{{NAME}}@<domain>`): the app's own account on the Core's mail
server, for sending.
+6
View File
@@ -23,3 +23,9 @@ health = "/"
# What it needs from the Core: "postgres" or "mysql" (its own database), "sso"
# (sign-in with Core accounts through Authelia), "email" (sending mail)
needs = []
# With "sso": only if the app's sign-in can't use the defaults
# [sso]
# callback = "/auth/callback" # the path it sends people back to
# pkce = true # whether it sends PKCE (S256)
# token_auth = "client_secret_basic" # or "client_secret_post"