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
+20
View File
@@ -345,6 +345,26 @@ Steps:
linked into `~/.claude/skills/coreapp` by `update.sh`, so any Claude Code
agent on this computer can use it. Rehearsed with a small app
(`memo-board`)
- Rehearsed again 2026-12-03 with Vikunja (postgres, sso, email), by an
agent given only the skill. It worked, but Vikunja's sign-in couldn't
use the fixed Authelia client (its browser code sends people back to
`/auth/openid/<provider>`, and its server doesn't send PKCE: checked in
its v2.8.0 source), so the agent wrote a 450-line OpenID bridge into the
container. Fixed in coreapps instead: `[sso]` in `coreapp.toml`
(`callback`, `pkce`, `token_auth`) shapes the app's client; changing it
registers the client again on deploy (Authelia restarts only then), and
a rollback puts the old one back (needs' update steps run after the
old files are restored). Stock Vikunja with `[sso] callback =
"/auth/openid/core"`, `pkce = false` and a busybox entrypoint replaced
the bridge. Also from it: the skill covers images without a shell
(copy in a static busybox), upstream `ENV` defaults, when Authelia
checks PKCE, and says not to build bridges; `coreapp shell` explains a
missing `sh`; `coreapp status` hides the empty address before install;
the example apps' README no longer mentions `www/`
- [ ] David: sign in to `https://vikunja.dev.fedcom.net/` with a Core
account (the agent tested the flow only against a stand-in Authelia)
- [ ] A "test locally" recipe in the skill: running the image with
made-up Core settings, for sign-in code
- [ ] Test it with David's candidate app: an agent in that repository
uses the skill; what it struggles with becomes fixes
6. [ ] The Coreapps screen in Superpanel (Federated's code: needs their