Single sign-on (SSO)
Single sign-on lets people sign in to termynl with your company’s identity provider (IdP), with the same account, password and multi-factor checks they use everywhere else. termynl supports SAML 2.0 and OpenID Connect. Owners set it up in Settings → Security → Single sign-on: only an owner chooses or changes the identity provider (its metadata, issuer and client) and whether termynl also asks for its own two-factor check. Admins can change the other settings. Every change there asks for a quick check (a passkey tap or code) first.
Before you start
Section titled “Before you start”- Verify your email domain in Members → Join policy. SSO signs people in only with an address on a verified domain of the workspace.
- The setup page shows the values your IdP asks for. Paste them exactly as shown. termynl compares the sign-in address (the ACS URL) letter for letter, so a different case, an added trailing slash or a default port makes the IdP’s answer be refused.
Set up SAML
Section titled “Set up SAML”- In Single sign-on, choose SAML. Copy the ACS URL, entity id and metadata URL into a new SAML application at your IdP.
- Send the user’s email address as the NameID or as an email attribute. Pick a NameID that never changes for a person. If you change the NameID mapping later, existing people stop matching their link and need Reset SSO link.
- Give termynl your IdP’s metadata: paste its metadata URL (termynl re-reads it daily, so certificate rollovers follow on their own; after new signing certificates, owners and admins confirm their next SSO sign-in with termynl two-factor once more) or paste the metadata XML (then you refresh it by hand).
- Sign the assertion. Signing only the outer response is not enough: the sign-in fails with
signature. Your IdP must sign with RSA-SHA256, RSA-SHA512 or RSA-PSS with SHA-256, and use a SHA-256 or SHA-512 digest. Providers that only sign or digest with SHA-1, or sign with ECDSA, are not supported. - Choose Save and continue, then Run test sign-in.
| Provider | Notes |
|---|---|
| Okta | Create a SAML 2.0 app. ACS URL goes in “Single sign-on URL”, entity id in “Audience URI”. Name ID format: EmailAddress. Use the app’s metadata URL. |
| Microsoft Entra | Enterprise application, Single sign-on, SAML. ACS URL is the “Reply URL”, entity id the “Identifier”. Entra’s default NameID is the user principal name, which can change: set the unique user identifier to a persistent value (for example the user’s object id) and send the email address as a claim. The app federation metadata URL is the metadata URL. |
| Google Workspace | Web and mobile apps, Add custom SAML app. Name ID format: EMAIL. Download the metadata XML and paste it (Google offers no metadata URL). |
| JumpCloud | Custom SAML app. ACS URL and entity id as shown; sign the assertion; send the email as the NameID. |
| OneLogin | SAML Custom Connector (Advanced). ACS URL as “Consumer URL” (and the recipient), entity id as “Audience”; OneLogin also requires the “ACS (Consumer) URL Validator” field, a regular expression that matches the ACS URL. SAML signature algorithm SHA-256; “SAML signature element”: Assertion (or Both). |
| Ping | SAML application. Set the ACS URL and entity id, choose RSA SHA256 as the signing algorithm, sign the assertion (not only the response), and send the email as the subject. |
Set up OpenID Connect
Section titled “Set up OpenID Connect”- Choose OpenID Connect. Copy the redirect URI into a new web application at your IdP.
- Enter the issuer (its https address), the client id and the client secret. The secret is write-only: termynl stores it encrypted and never shows it again.
- The IdP must sign ID tokens with an asymmetric algorithm (RS, PS, ES or EdDSA) and send the email address. Endpoints must be https.
- Email verification. If the ID token says
email_verified: false, the sign-in is refused (email-unverified): nobody is linked or created. Some IdPs (Microsoft Entra by default) do not send the claim at all; that is accepted for new people (just-in-time accounts) and for people already linked, and the sign-in audit records that the claim was missing. An existing member or guest is linked by email at once only when the claim istrue; without it they confirm the link once (see “Who gets in”). Your IdP must not let people register themselves or change their email address without verifying it. For Google, make the OAuth client Internal to your Workspace. - Changing the client id (a new app registration) counts as a new identity provider: see “Changing the identity provider” below.
Test it
Section titled “Test it”Run test sign-in signs you in through your IdP and reports what it sent. An owner has to run the test. Changing the issuer, metadata or client details clears the test, and Require SSO (below) turns itself off until an owner passes a new one.
After SSO sign-in, also ask for termynl 2FA?
Section titled “After SSO sign-in, also ask for termynl 2FA?”This is an explicit choice on the setup page, and the Require SSO confirmation repeats it:
- No, trust our identity provider’s MFA (the default): people who sign in with SSO are not asked for a termynl second step.
- Yes, always ask for termynl 2FA too: SSO sign-ins also ask for a termynl code or passkey.
The workspace setting Require two-factor sign-in for everyone applies to people who sign in with SSO only in the “Yes” mode. The setup page says which one is active.
Who gets in
Section titled “Who gets in”- First SSO sign-in links the account. Someone who signs in with SSO using an address on a verified domain is matched by that email to their termynl account, and the link is remembered from then on. People cannot remove their own SSO link; it is managed by the workspace.
- Members and guests confirm the first link when the IdP doesn’t vouch for the email. A termynl account belongs to the person, not to one workspace, so termynl links an existing member or guest at once only when an OpenID Connect provider says
email_verified: true. Otherwise (every SAML provider, or OpenID Connect without the claim) the first SSO sign-in shows “Check your email”: termynl emails a link to that address. The email and the page it opens name the workspace and its identity provider; on that page, in the same browser, the person chooses Confirm (which finishes the sign-in and links the account) or Not me (which cancels the link). Opening the link alone changes nothing. Only confirm if you just signed in to that workspace with SSO yourself. The link works once and expires in 15 minutes. Someone with termynl 2FA in this workspace confirms with their 2FA check instead. Until then nothing is linked and no session starts. Later SSO sign-ins go straight in. - Owners and admins confirm their first SSO sign-in with termynl 2FA, whatever the 2FA choice above is, and a trusted device does not skip it. An owner or admin who has not set up termynl 2FA is refused with “Set up two-factor sign-in first”: sign in your usual way, set it up in Profile, then try SSO again. Someone who linked as a member and is later made an admin or owner confirms their next SSO sign-in with termynl 2FA the same way, once.
- Create accounts on first sign-in (just-in-time, JIT). On by default; it is off by default while SCIM provisioning is turned on, since SCIM then decides who exists. With it off, someone your IdP signs in who has no termynl account is told to ask an admin. A deactivated member is refused too.
- Seats. A new person with no free seat waits, an admin is told, and they are emailed when they are in.
- SCIM works alongside SSO: SCIM adds and removes people, SSO signs them in. Without SCIM, someone removed at your IdP stays active in termynl until an admin deactivates them.
- Changing the identity provider. Setting SSO up again, switching between SAML and OpenID Connect, or changing the issuer, the SAML entity id or the OpenID Connect client id deletes every SSO link of the workspace, signs everyone out of their SSO sessions and disconnects apps that were connected through SSO. Each person’s next SSO sign-in links again (owners and admins confirm it with termynl 2FA), and every owner has to sign in with SSO again before Require SSO can turn back on. Removing SSO keeps the links, but they cannot sign anyone in without a connection.
- Reset SSO link (Members): use it if your IdP now sends a different identifier for a person. Their next SSO sign-in links again, they are signed out of SSO sessions, and apps connected through SSO are disconnected. Owners can reset anyone but themselves; admins can reset members and guests, not owners and not themselves.
Require SSO and break-glass
Section titled “Require SSO and break-glass”Turn on Require SSO to make SSO the only way into the workspace for everyone with a verified-domain address: Google, Microsoft, GitHub and email links stop working for them.
- It can turn on only when an owner has passed the test sign-in, every active owner has termynl 2FA set up (that is what makes break-glass possible), every active owner has signed in with SSO at least once, and the workspace has a verified domain. The page lists what is missing.
- Grace for admins and members. When Require SSO turns on, people who have not used SSO yet get 7 days. Their old sign-in only opens a full-screen “Sign in with SSO” card (with a Sign out button) and shows the days left. Signing in with SSO links them. When the 7 days end, their old sign-in is refused.
- Break-glass for owners. Owners can still sign in with an email link plus termynl 2FA, every time, so a broken IdP never locks the workspace out. Owners with no termynl 2FA have no break-glass: set it up before you rely on Require SSO, and before promoting anyone to owner while it is on.
- Sessions and connected apps an owner opened with a non-SSO sign-in before Require turned on end at their next refresh.
- For everyone on a verified domain, apps that were connected without SSO are disconnected when Require SSO turns on; connect them again after signing in with SSO.
- Changing the IdP connection turns Require SSO off until an owner passes a new test. Owners and admins see a notice in the app.
- If the IdP is down for good and no owner can sign in, contact termynl support, which can turn Require SSO off and tells your owners afterwards.
Session length
Section titled “Session length”An SSO session lasts 8 hours, 24 hours (default), 7 days or 30 days from the moment the person signed in to termynl with SSO (not from when they first signed in at the IdP, which can be days earlier). After that the app shows “Time to sign in with SSO again” and returns to the same page. Apps connected through SSO (for example Claude) keep their own expiry; deactivating a person still disconnects them.
Sign-in from the IdP’s dashboard (IdP-initiated)
Section titled “Sign-in from the IdP’s dashboard (IdP-initiated)”Off by default. When on, people can start from a tile in the IdP’s app launcher. Be aware of the limit: an IdP-initiated sign-in is not tied to a request from this browser, so someone could trick a person into being signed in as the attacker (login CSRF). That is inherent to the SAML feature. We recommend leaving it off and using the termynl sign-in page (SP-initiated). When on, an unsolicited assertion is accepted for 3 minutes after it was issued, with no clock allowance for its age.
How people sign in
Section titled “How people sign in”On the sign-in page, people type their work email first. If its domain uses SSO, termynl sends them to “your company’s sign-in”. Anyone can also choose Sign in with SSO. Checking a domain tells anyone who asks that the domain has a termynl workspace with SSO; it shows no provider or company name. Discovery, start and callback routes are rate limited per address (20 discovery checks a minute, 300 SSO sign-in steps every 10 minutes); a busy office behind one address can see “Too many tries” and should wait a few minutes.
Troubleshooting
Section titled “Troubleshooting”The sign-in page shows a plain message. The audit log records sso.signin.fail with a reason (one entry per reason a minute) for admins. Confirming a sensitive change in the workspace counts only an IdP sign-in that reports when it happened, within the last 15 minutes. Changes to the whole account (adding or removing a sign-in method, a two-factor method) never count an IdP sign-in: people confirm them with termynl 2FA, or, without it, with an email link to their account’s address, confirmed on the page it opens in the same browser.
| Reason | What it means and what to do |
|---|---|
signature |
The assertion or token was not signed correctly, only the response was signed (the assertion must be signed), or it used an unsupported algorithm or digest (SHA-1, ECDSA). Refresh the metadata, or ask your IdP to sign the assertion with RSA-SHA256. |
email-unverified |
The OpenID Connect provider says the person’s email address is not verified. Verify it at the IdP, then try again. |
auth-time |
A sensitive change asked the IdP for a fresh sign-in, and its answer did not say when the person signed in (OpenID Connect auth_time, SAML AuthnInstant). Try again; if it keeps happening, check that the IdP honors max_age / ForceAuthn. |
nonce, token |
The OpenID Connect answer did not match this sign-in, or the code could not be exchanged. Start again; check the client id and secret and the clocks. |
session, role, return-path, busy |
The termynl session ended during a test or a confirmation, someone who is not an owner or admin started a test, the page to return to was not a termynl page, or too many tries came from one address. Sign in again, or wait a few minutes. |
audience, recipient, issuer |
The IdP app has a wrong entity id, ACS URL or issuer. Paste the values exactly as shown on the setup page. |
expired, not-yet-valid |
Clocks differ by more than 2 minutes, or the sign-in took too long. Fix the time on the IdP side and try again. |
in-response-to, replay, binding |
The sign-in was started in another tab or browser, or the response was used twice. Start again in one tab. |
unsolicited |
The IdP sent a sign-in nobody asked for and IdP-initiated sign-in is off. |
domain |
The email is not on a verified domain of the workspace. |
not-provisioned |
No termynl account yet and JIT is off, or the account is deactivated. Ask an admin. |
pending-seat |
No free seat. An admin has been told. |
email-mismatch, wrong-account |
The IdP signed in a different person than the one in termynl (for a test or a step-up). Sign in at the IdP with the right account. |
needs-2fa |
An owner or admin without termynl 2FA. Set it up first. |
confirm-email |
Not an error: the IdP didn’t confirm the email, so the person confirms the first link with the emailed link (audited sso.link.pending). Open it in the same browser within 15 minutes. |
| “Open this link in the browser where you signed in” | The confirmation page was opened in another browser. Open the link where you signed in with SSO, or sign in with SSO again for a new link. If you didn’t sign in, choose Not me. |
required |
The workspace requires SSO and this sign-in way is off. |
transient-nameid, doctype, malformed, too-large |
The IdP sent something we do not accept (for example a one-time NameID). Send a stable NameID or the email. |
unavailable, disabled |
SSO setup changed, was removed or is turned off. Check the setup page. |
- Confirming a sensitive change opens a small window at your IdP. This is tested with Keycloak; Google and Microsoft return to the page through a same-origin handoff. If your browser blocks the window, the page opens it in place and you repeat the change after confirming.