## Sign-in `needs = ["sso"]`: people sign in with their Core account, through the Core's Authelia (OpenID Connect, authorization code flow with PKCE). - At install, the client `coreapp-{{NAME}}` is registered in Authelia, with the random `OIDC_CLIENT_SECRET` from `.env`. `coreapp remove` removes it. - Its redirect URI is `https://{{NAME}}./auth/callback`, so the app has to handle that path. - Authelia decides whether a second factor is needed (the Core's 2FA policy). - `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`.