Skip to content

Identity and SSO

Who gets in, and how we know.

Every way into a Compact mailbox, from the browser to a phone’s mail app, follows the same rules. Here is how sign-in works, layer by layer.

Your identity provider Entra ID, Google or any OIDC Source of truth for who works here, and their MFA.
OIDC sign-inSCIM 2.0
Compact gateway
  • PKCE, single-use state, nonce
  • Signature, issuer, audience, expiry checked
  • Second step unless the IdP proved MFA
  • Server-side session, HttpOnly cookie
  • Every step written to the audit log
Apps Mail, Calendar, Contacts, Files, Admin Mail apps use revocable app passwords, never the IdP password.
Diagram of single sign-on and provisioning.
Idle and absolute session limits
8 h / 7 days
Window for re-confirming with your IdP before sensitive changes
10 min
Failed sign-ins from one address before a 10-minute pause
10 in 10 min
Single-use recovery codes, shown once
10

01Sessions

The browser never holds your password.

Signing in creates a session on our side, identified by a random 256-bit value. The browser keeps only that identifier, in an HttpOnly, SameSite=Strict cookie that scripts can’t read. Sessions end after 8 hours idle or 7 days at most.

Every state-changing request also needs a header a cross-site form can’t send. People see their sessions, with device and address, and end any of them; changing your password signs out every other session.

[ fig. 01 · settings ]
Personal settings, including sessions and security. Personal settings, including sessions and security.

02Two-step sign-in

Authenticator codes that work once.

Two-step sign-in uses an authenticator app (TOTP) and 10 single-use recovery codes. Each code works once; a replayed code is refused. A sign-in challenge lives five minutes and dies after five wrong codes.

Admins choose the policy: off, required for admins, or required for everyone. People without it are walked through setup at their next sign-in. An admin can reset someone’s two-step sign-in when they lose their phone and their codes.

  • Secrets sealed with ChaCha20-Poly1305; recovery codes stored as hashes
  • Minimum password length set by the workspace, from 8 to 128
  • Can’t be turned off by a person when the policy requires it
[ fig. 02 · admin security ]
The workspace security policy: two-step sign-in and password length. The workspace security policy: two-step sign-in and password length.

03Mail apps

One password per device, revocable on its own.

A mail app can’t ask for a code, so it gets an app password: shown once, named after the device, revoked without touching the others. With two-step sign-in on, the main password stops working in mail apps at the mail server itself, not only in the web app.

[ fig. 03 · settings ]
The app passwords section in Settings. The app passwords section in Settings.

04Single sign-on

Your identity provider, checked on every token.

Microsoft Entra ID, Google Workspace and any OpenID Connect provider. Each sign-in carries PKCE, a single-use state bound to an HttpOnly cookie in this browser, and a nonce; the token’s signature, issuer, audience and expiry are checked before anything else happens.

A provider identity links to one mailbox and stays linked. A mailbox that already has a linked identity is never linked to another by email address. Suspension is checked on every use of an SSO session.

  • Entra: tenant pinned, personal Microsoft accounts refused
  • Google: verified email on your Workspace domain only
  • OIDC: issuer must match its discovery document; unverified email refused
[ fig. 04 · admin sso ]
Single sign-on settings with Microsoft, Google and a company OIDC connector. Single sign-on settings with Microsoft, Google and a company OIDC connector.

05Policy

Make SSO the only way in, with a way back.

With SSO only, password sign-in is refused before the mail server sees the password, and the mailbox password stops working in mail apps. One to five admins are break-glass owners who keep password sign-in, always with a second step, each sign-in audited.

SSO sessions have no password to re-enter, so creating an app password or turning off two-step sign-in asks for a fresh confirmation with your provider within the last 10 minutes.

[ fig. 05 · admin audit ]
The audit log, where SSO sign-ins, refusals and break-glass sign-ins are recorded. The audit log, where SSO sign-ins, refusals and break-glass sign-ins are recorded.

An SSO sign-in

What happens between the button and the inbox.

  1. STEP 01

    Discover

    The email’s domain tells Compact which providers the workspace allows. The answer is the same for any address on the domain.

  2. STEP 02

    Redirect

    You go to your provider with PKCE, a single-use state and a nonce.

  3. STEP 03

    Validate

    The returned token’s signature, issuer, audience, expiry and nonce are checked, then the provider’s own rules.

  4. STEP 04

    Second step

    Your enrolled code, unless the workspace trusts the provider’s MFA and the token shows it.

In place today

Every layer of sign-in.

  • 01

    Server-side sessions

    HttpOnly, SameSite=Strict, 8 h idle and 7 days at most.

  • 02

    Two-step sign-in

    TOTP with replay protection and recovery codes.

  • 03

    App passwords

    One per device, shown once, revoked on their own.

  • 04

    SSO

    Entra ID, Google and any OIDC provider.

  • 05

    SCIM 2.0

    Your directory creates and suspends people.

  • 06

    Lockout

    10 failed sign-ins in 10 minutes pause that address for 10 minutes.

  • 07

    Sign-in history

    30 days of your own web sign-ins; admins see each person’s, including refusals.

  • 08

    Passkeys and security keysComing

    Phishing-resistant second steps.

Questions

Straight answers.

Do mail apps support SSO?

No. IMAP and SMTP clients use app passwords. With SSO required, the mailbox password stops working in them.

What if our identity provider is down?

Break-glass owners sign in with their password and a second step. Choose one to five of them before you turn on SSO only.

Are mail-app sign-ins in the sign-in history?

No. Mail apps connect to the mail server directly, so sign-in history covers web and SSO sign-ins.

What happens when someone loses their phone?

They sign in with a recovery code. With none left, an admin resets their two-step sign-in, and the reset is audited.

Do you support SAML?

Not today. Single sign-on uses OpenID Connect.

Bring your identity provider.

Tell us which provider you use and how you want sign-in to work. We’ll answer with specifics.