# Security: MFA & SSO

> Protect console access with TOTP multi-factor authentication and SAML single sign-on.

Source: https://croombit.com/en/docs/console-security

## Multi-factor authentication (TOTP)

Each member enables MFA from their own profile (**Account → Security → Two-factor authentication**). Org admins can see whether a member has MFA enabled in the team list.

1. **Enroll** — click *Set up authenticator app* and scan the QR code with any TOTP app (Google Authenticator, Authy, 1Password…).
2. **Activate** — enter a code from the app to confirm enrollment. The console then shows **10 recovery codes** once — copy or download them before closing the dialog.
3. **Sign-in** — after the Google or email-link step, the console asks for the current code. Lost your device? Choose *Use a recovery code instead*; each recovery code works once.
4. **Regenerate** — *Recovery codes → Regenerate* (requires a current authenticator code) replaces the whole set; the old codes stop working at once. The card shows how many unused codes you have left.
5. **Disable** — on the same screen, enter a current code and click *Disable 2FA*. Your recovery codes are deleted with it.

> **TIP:** Save the recovery codes somewhere safe — they bypass TOTP and are the only way back if you lose your device.

Each authenticator code is accepted **once**: a code that already signed you in (or an older one) is refused, so wait for the next one. A sign-in allows 5 code attempts; after that, start the sign-in again. Turning MFA on or off, using a recovery code and regenerating codes are recorded in the audit log of every organization you belong to.

## Sessions

**Account → Security → Sessions** lists every browser signed in to your account, with the one you are using marked *This session*. **Sign out** ends one session; **Sign out of all other sessions** ends every session but yours. A signed-out browser stops working within a few minutes (when its short-lived session next renews). Turning two-factor authentication on or off also signs out all your other sessions.

## SAML single sign-on

SAML SSO is configured at the org level by an ADMIN or OWNER. Your identity provider can only sign in people whose email is on a domain **your organization has verified** — a signature from your IdP alone is never enough, so no organization's IdP can vouch for anyone else's users.

1. Go to **SSO / SAML → Email domains** in the console and add your domain (for example `acme.com`). Shared mailbox providers such as gmail.com can't be added.
2. Publish the TXT record it shows — name `_croombit.acme.com`, value `croombit-verify=…` — at your DNS provider, then press **Verify**. A domain can be verified by only one organization.
3. In **Identity provider**, paste your IdP's metadata XML or metadata URL.
4. Register Croombit as a Service Provider in your IdP using the details below.
5. Choose the role given to people added automatically on their first SSO sign-in (Viewer by default; never Owner).
6. Save and test with a non-owner account before enforcing SSO.

**Signatures and replay.** Every SAML response must be signed by your IdP — either the whole response or the assertion, whichever your IdP signs — and its audience must be Croombit's SP entity ID. Each assertion can be used once. If your metadata lists several signing certificates (for example during a key rollover), any of them is accepted; save the metadata again after your IdP retires the old key.

**IdP-initiated sign-in.** By default people can also start from your identity provider's app dashboard. For the stricter setting, untick *Allow IdP-initiated sign-in*: Croombit then accepts only responses to a sign-in that started on Croombit (*Continue with SSO*, or a link to the login-init endpoint below), each within 10 minutes.

| SP endpoint | Value |
| --- | --- |
| Metadata | `GET /auth/saml/:orgId/metadata` |
| Login init (redirect users here) | `GET /auth/saml/:orgId/init` |
| ACS (Assertion Consumer Service) | `POST /auth/saml/:orgId/acs` |

> **NOTE:** Anyone your IdP signs in on a verified domain is added to your organization on their first SSO sign-in, with the role you chose — no invite needed. Someone on a domain you haven't verified is refused, and the login page tells them why. Their session only gains access to **your** organization. **Enforce SSO** applies to people on your verified domains; members on other domains (contractors, guests) keep signing in with Google or an email link. Removing your last verified domain turns SSO off.