Files
coreapp-dev/templates/sso
davidandClaude Opus 5.5 bdb15367c2 Call the Core's sign-in "Core SSO" (or "Authelia") in apps
The skill, sign-in.md and the porting checklist say to name the sign-in
provider or button "Core SSO" or "Authelia", so it reads the same in every
app; the sso examples' link says "Sign in with Core SSO".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 08:07:03 -07:00
..

## 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}}.<domain>/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`.