## Sign-in People sign in with their Core account, through the Core's Authelia (OpenID Connect, authorization code flow with PKCE): - `install` registers the client `coreapp-{{NAME}}` in Authelia's `idproviders.yml` (between `### coreapp-{{NAME}} begin/end` markers), with the random `OIDC_CLIENT_SECRET` from `.env`, hashed. It checks Authelia's configuration before restarting it and puts the old one back if the check fails. `uninstall` removes the client. - Its redirect URI is `https://{{NAME}}./auth/callback`. Change it in `install` if your app uses another path. - Authelia decides whether a second factor is needed (the Core's 2FA policy is applied to every client after each install). - The app reaches `https://authelia.` 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`.