coreapp new --sso: sign-in through the Core's Authelia
A template overlay (templates/sso) registers the app as an OpenID Connect client in Authelia's idproviders.yml (between markers, secret hashed by the running Authelia), checks the configuration before restarting Authelia and restores it if the check fails; uninstall removes the client. The app reaches Authelia's https address through traefik (@TRAEFIK_IP@, provided by the template's install and by redeploys). The example is a standard-library Python OIDC client (code flow with PKCE). Tested by install, redeploy, remove and reinstall, and a real sign-in in a browser. Also: the postgres overlay appends to the base install, uninstall and env.in; database names get a coreapp_ prefix (PostgreSQL reserves pg_*); deploy waits until the app answers on its own address. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,6 +59,7 @@ the app's own `Dockerfile`. The README in each new app explains the files.
|
||||
|---|---|
|
||||
| `coreapp new <name>` | Make an app in `./<name>`; it gets an address in 192.168.200.x on the Core |
|
||||
| `coreapp new --postgres <name>` | The same, with its own database on the Core's PostgreSQL (a Python example app that uses it) |
|
||||
| `coreapp new --sso <name>` | The same, with sign-in through the Core's Authelia (OpenID Connect; a Python example app) |
|
||||
| `coreapp deploy` | Build its image, copy it to the Core over SSH, install it, or update it keeping its `.env` |
|
||||
| `coreapp check` | It answers at its `MONITOR` URL with a valid certificate |
|
||||
| `coreapp status` / `logs [-f]` / `shell` | Its container, its log, a shell in it |
|
||||
@@ -109,6 +110,6 @@ stay installed.
|
||||
| `bin/coreapp-vm` | Creates and manages CoreServer VMs (`coreapp-vm help`) |
|
||||
| `bin/coreapp` | Makes, deploys and tests apps (`coreapp help`) |
|
||||
| `templates/app/` | What `coreapp new` starts from |
|
||||
| `templates/postgres/` | Laid over it by `--postgres` (`*.append` files are added to the base file; `.remove` lists base files to drop) |
|
||||
| `templates/postgres/`, `templates/sso/` | Laid over it by `--postgres` / `--sso` (`*.append` files are added to the base file; `.remove` lists base files to drop) |
|
||||
| `uninstall.sh` | Removes what coreapp-dev set up |
|
||||
| [PLAN.md](PLAN.md), [TEST.md](TEST.md) | What's next, and how to test it |
|
||||
|
||||
Reference in New Issue
Block a user