SSO & MFA¶
Crios supports single sign-on through any OpenID Connect (OIDC) identity provider, and time-based one-time password (TOTP) multi-factor authentication for password sign-ins. SSO is configured once for the whole deployment by an instance admin; the MFA requirement is set per organization by its owners and admins.
Single sign-on (OIDC)¶
Configure SSO under Admin → SSO (instance admins only; see Instance administration). The settings apply to every organization on the deployment, because sign-in happens before Crios knows which organization you belong to. Crios works with Keycloak, Okta, Entra ID, Google Workspace and any other OIDC-compliant provider.
The top of the tab shows whether SSO is on (SSO disabled or the provider name) and where the settings in force come from: Saved admin settings, Environment variables (OIDC_*), or Not configured.
| Setting | Description |
|---|---|
| Enable SSO login | Shows the SSO button on the sign-in page |
| Provider display name | Label on the button, for example Okta (default SSO) |
| Default role for new users | Organization role given to accounts created on first SSO sign-in: Viewer, Member (default) or Admin. SSO never creates owners. See Users, groups & roles |
| Issuer URL | Your provider's issuer, for example https://idp.example.com/realms/main |
| Client ID / Client secret | The OIDC client registered for Crios. Both are required to enable SSO. The secret is write-only: once saved the field shows •••••• (unchanged), and leaving it empty keeps the stored secret |
| Redirect URL (leave empty to use the one registered at the provider) | The callback address sent to your provider; see below |
| Scopes (comma-separated) | Defaults to openid, profile, email |
| Auto-provision users on first login | On by default. When off, only people who already have a Crios account can sign in with SSO |
| Require SSO (disable password login) | Makes SSO the only way in for everyone except instance admins; see Requiring SSO |
The redirect URL. The sign-in page reaches Crios's sign-in endpoints under /api/auth/, so register this callback with your provider and enter the same address in the redirect field:
Use the host your users open Crios on. The tab also prints a suggested Redirect URI to register at your identity provider:; on a standard installation, where the app host only forwards /api/… paths to Crios, use the /api/auth/oidc/callback form above.
Test Connection runs OIDC discovery against the issuer without saving anything, and shows Discovery OK with the provider's authorization and token endpoints, or Discovery failed with the reason. Save & Apply stores the settings and applies them at once; no restart is needed.
How SSO accounts are matched¶
- A person whose verified email address already belongs to a Crios account signs in to that account; the SSO identity is linked on first use.
- With auto-provisioning on, a new email address gets a new account with the default role, in the deployment's default organization. On the Free edition each new account gets an organization of its own instead. A full organization (see member limits) refuses new SSO accounts.
- Suspended accounts cannot sign in through SSO either.
- An SSO sign-in also confirms the email address.
Settings from environment variables¶
The orchestrator also reads OIDC_ENABLED, OIDC_PROVIDER_NAME, OIDC_ISSUER_URL, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET, OIDC_REDIRECT_URL, OIDC_AUTO_PROVISION, OIDC_DEFAULT_ROLE and OIDC_REQUIRED. Settings saved on the tab win over them, including a saved "off". When both exist the tab says Environment OIDC_* variables are set but overridden by these saved settings., and Revert to Environment deletes the saved settings so the environment applies again. The Helm chart does not set these variables; on a chart install, configure SSO on the tab.
Requiring SSO¶
With Require SSO (disable password login) on, and while SSO is enabled, everyone signs in through your identity provider, so its MFA and offboarding apply to every sign-in. Crios enforces this on the server, not only on the sign-in page:
- Password sign-in is refused, through the page and through the API, with This deployment requires single sign-on. A wrong password still reports invalid credentials.
- Self-registration is refused, and the sign-in page no longer offers it.
- An invitation to someone without an account cannot create a password account. The invitation page asks the person to sign in with SSO first (with auto-provisioning on, that creates their account) and then open the invitation link again to join. With auto-provisioning off, add the person under Admin → Users first.
- Sessions that already exist are not ended; they last until they expire or the person signs out. Suspend an account in Admin → Users to cut it off at once.
Instance admins keep password sign-in as a break-glass path, so an identity-provider outage or a broken SSO configuration cannot lock the operator out. On the sign-in page they use Instance admin? Sign in with a password under the SSO button; their two-factor authentication still applies. Each such sign-in is recorded in the audit log as auth.sso_break_glass, and refused password sign-ins as auth.login_failed with reason sso_required. Give instance admins strong passwords and TOTP, and review break-glass use.
Turning SSO off (or clearing Require SSO) restores password sign-in for everyone immediately.
Before you turn it on
Test the connection, then confirm that you can sign in through SSO in a private window. Keep at least one instance admin with a known password and TOTP for the break-glass path.
Multi-factor authentication (TOTP)¶
MFA uses standard TOTP codes from any authenticator app (Google Authenticator, 1Password, Authy and similar). It protects password sign-ins; SSO sign-ins follow your identity provider's MFA policy instead, and the settings page tells SSO users so.
User enrollment¶
Each person turns MFA on for themselves in Settings → Security → Two-factor authentication:
- Click Enable two-factor authentication. Crios shows a QR code, plus a key to type in if you cannot scan it.
- Enter the 6-digit code from the app and click Verify & enable.
- Crios shows 8 one-time backup codes, once. Store them safely. Regenerate backup codes replaces them and invalidates the old set; it asks for a current authenticator code.
From then on, password sign-in has two steps: password first, then a code from the app or a backup code. Turning MFA off requires a current code or a backup code.
Requiring MFA for an organization¶
Owners and admins switch the requirement on Organization → Settings → Two-factor authentication between Optional (members choose in their settings) and Required (enforced for every password sign-in). While it is required:
- Every password sign-in to the organization must complete a TOTP challenge.
- Switching into the organization, or accepting an invitation to it with an existing account, asks for a TOTP code first when the current sign-in did not include one, or walks the person through enrollment. The invitation stays valid until that step is done.
- Members without MFA are walked through enrollment at their next sign-in (Set up two-factor authentication).
- Members cannot turn MFA off while any organization they belong to requires it.
- SSO sign-ins are unaffected.
The requirement belongs to the organization a person signs in to or switches to (their active organization), so on a multi-organization deployment it can differ between organizations.
Resetting someone's MFA¶
If someone loses both their authenticator and their backup codes, an instance admin opens Admin → Users and uses Reset MFA on their row. This removes the enrollment so the person can sign in with their password and set up a new authenticator; in an organization that requires MFA they are asked to enroll again straight away. Enrollment, removal and resets are recorded in the audit log.