feat: ✨ SSO
This commit is contained in:
@@ -10,6 +10,18 @@
|
||||
- `NAME`: Organisation name displayed in header (default: JDB-NET)
|
||||
- `LOGO_PNG`: URL or path to organisation logo (default: JDB-NET logo)
|
||||
|
||||
### Optional external sign-in (Logto)
|
||||
|
||||
External sign-in is **disabled and hidden** unless all three variables below are set. Self-hosted deployments should leave these unset so users cannot use the operator's identity provider.
|
||||
|
||||
- `LOGTO_OIDC_ENDPOINT`: Logto instance URL (e.g. `https://sso.jdbnet.co.uk`)
|
||||
- `LOGTO_APP_ID`: Traditional web application client ID (OIDC login flow)
|
||||
- `LOGTO_APP_SECRET`: Traditional web application client secret
|
||||
|
||||
When configured, enable external sign-in per deployment from **Users → SSO** (admin only). Pre-provisioned users are redirected to Logto after entering their email, where they can sign in with **Microsoft 365** or **Discord**. Local password and TOTP authentication remain available when external sign-in is disabled or the user is not pre-provisioned.
|
||||
|
||||
**Operator setup (managed deployments only):** Configure Microsoft (multi-tenant) and Discord connectors once in Logto Console. Register each IPAM instance redirect URI on the Logto application: `https://{host}/api/v2/auth/sso/callback`. Ensure the **email** scope is enabled on the Logto application.
|
||||
|
||||
### Database Setup
|
||||
|
||||
The application automatically initializes the database schema on first run. Ensure the database and user exist with appropriate
|
||||
|
||||
Reference in New Issue
Block a user