coreapp new --postgres --sso: database and sign-in together

Overlays no longer replace service: each names the Core apps it needs in
.depends, merged into DEPENDS. The sign-in code is a module (oidc.py)
that examples import; templates/postgres-sso is the combined example
(sign-in, each person's visits counted in PostgreSQL). Tested with
team-visits, including sign-in in a browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 12:43:22 -07:00
co-authored by Claude Opus 5.5
parent 284f52fc29
commit d8c6d1011f
14 changed files with 381 additions and 172 deletions
+4 -4
View File
@@ -15,7 +15,7 @@ People sign in with their Core account, through the Core's Authelia
is applied to every client after each install).
- The app reaches `https://authelia.<domain>` through traefik
(`extra_hosts` in `docker-compose.yml.in`).
- `app.py` shows the whole flow with Python's standard library: `/login`,
`/auth/callback`, `/logout`. For a real app, use your framework's OpenID
Connect library with `OIDC_ISSUER`, `OIDC_CLIENT_ID` and
`OIDC_CLIENT_SECRET`.
- `oidc.py` does the whole flow with Python's standard library, and `app.py`
uses it for `/login`, `/auth/callback` and `/logout`. For a real app, use
your framework's OpenID Connect library with `OIDC_ISSUER`,
`OIDC_CLIENT_ID` and `OIDC_CLIENT_SECRET`.