Skip to content

Single sign-on ​

Let your people sign in with the account they already use at work. You connect your identity provider (Okta, Microsoft Entra ID, Google Workspace, ADFS or any provider that supports OpenID Connect or SAML 2.0), prove which email domains your company owns, and then choose whether single sign-on is optional or required.

You need to be an administrator of the organization. Find the page under Single sign-on in the sidebar.

Set it up in four steps ​

  1. Add a connection. In your identity provider, create a web application that uses the authorization code flow and register the redirect address shown at the top of the connection card. Copy the issuer, client ID and client secret back into the form.
  2. Test it. Choose Test connection to check that the issuer and its endpoints are reachable. Then choose Test sign-in: a new tab opens, you sign in at your identity provider with your own work account, and the test passes only if that account is you.
  3. Activate it. A connection can be activated once its test has passed. Changing the issuer, client, claims or group mappings later resets the test, so run it again.
  4. Add your domain. Under Email domains, add the domain your colleagues use (for example acme.com), publish the TXT record shown at your DNS provider, and choose Check now. Once it is verified, choose the connection it should sign in with.

After this, a colleague who types a work address on the sign-in page and chooses Sign in with your company account (SSO) is sent to your identity provider and returns signed in.

Connect with SAML ​

Choose Add SAML connection when your provider offers SAML (ADFS, Ping and many older providers do). The steps are the same as above, with these differences.

  1. Create the application in your identity provider first. On the connection card choose Details for your identity provider. It shows the entity ID (audience), the reply address (ACS URL) and a metadata file you can import. Use the HTTP POST binding. Choose a persistent identifier or the email address as the NameID, not a transient one.
  2. Sign the assertion. Turn on assertion signing in your provider. Responses where only the outer response is signed are refused, as are signatures made with SHA-1 and encrypted assertions.
  3. Give us the provider's details. Paste the provider's metadata address and leave the rest blank, or enter its entity ID, sign-on address and signing certificate. When a metadata address is set, Test connection reads those three values from it. After your provider rotates its certificate, press Test connection again to pick up the new one. Nothing is refreshed behind your back.
  4. Name the attributes. The email attribute is email unless you change it; the usual names such as emailaddress and mail are recognized, and an email-shaped NameID is used when no email attribute is sent. Name the groups attribute if you map groups to roles.
  5. Test it, then activate it. Test sign-in works the same way as for OpenID Connect.

Sign-in starts from our sign-in page (type your work address, then choose single sign-on). Starting from a tile in your provider's app dashboard is not supported yet.

If your provider reports how the person signed in, we read the authentication context (and, for Microsoft Entra, its multi-factor attribute) for the Trust multi-factor sign-in done at my identity provider setting.

Which claims we read ​

SettingWhat it isUsual value
Email claimThe claim that carries the work email addressemail
Name claimThe claim that carries the person's namename
Groups claimThe claim that lists the groups a person belongs to (optional)groups

If your provider does not send the email claim, nobody can sign in. An address that the provider marks as unverified is refused.

Give roles from your groups ​

Under the connection, Group to role mapping lets a group in your identity provider raise a person's role in this organization when they sign in.

  • Administrator gives full control of the organization, including these settings.
  • Billing staff gives billing and support access only.

Good to know:

  • A group raises a person's role the next time they sign in. When they leave the group, they lose that role at their next sign-in and go back to the role they had before (or to the role another group still gives them). Until they sign in again the role stays, so for a leaver also remove them from the organization or deactivate them in your directory.
  • Only a role that single sign-on gave is ever taken away. A role you set yourself on the Team page is never lowered by a group, and changing a role on the Team page makes it a role you set yourself.
  • The last administrator of the organization and break-glass owners are never lowered. The change is held back and written to the audit log.
  • If your identity provider does not send the groups claim at all (for example Microsoft Entra when a person is in too many groups), nobody is lowered for that sign-in.
  • The Team page shows "Role comes from group ..." under people whose role a group gave. Every change is in the audit log with the role before and after.
  • Group names are not case sensitive. Some providers send group IDs instead of names, so copy the value your provider actually sends.
  • Making a group an administrator asks you to confirm with your password or a verification code, sends an email to every administrator, and is written to the audit log. Whoever manages that group in your identity provider can then administer your organization.
  • Joining the organization is separate. People join when they accept an invitation, or automatically if you turned on Add people with a work address automatically for the domain.

Require single sign-on ​

Under Require single sign-on choose a mode:

ModeWhat happens
OffSingle sign-on is not used.
OptionalPeople can use single sign-on or their password.
RequiredMembers with an address on a verified domain must use single sign-on. Passwords, email links and social sign-in stop working for them, and existing sessions that did not use single sign-on stop minting new access.

You can switch to Required only when all of this is true: a test sign-in passed in the last 24 hours, a verified domain is routed to an active connection, and at least one break-glass owner is set up. The page lists whatever is still missing.

Break-glass owners ​

Up to two organization owners can still sign in with a password and a multi-factor code while single sign-on is required, for example if your identity provider is down. They need multi-factor authentication turned on first. Every use is written to the audit log and emailed to all owners.

Multi-factor sign-in ​

By default, a sign-in through single sign-on is not treated as multi-factor. If your organization or the application requires multi-factor sign-in, the person is asked for a second factor right after their identity provider sends them back: a code from their authenticator app, or a backup code if they have enrolled one. A person who has not set up a second factor yet is taken through the short enrollment first, then signed in. A remembered device skips the code exactly as it does for a password sign-in. The session still counts as a single sign-on session, so Require single sign-on keeps accepting it.

If your identity provider already asks for a second factor, turn on Trust multi-factor sign-in done at my identity provider and pick which values count. Your provider must report them in the amr claim of the ID token. People then skip the extra code.

If sign-in fails ​

What the person seesWhat to check
"Single sign-on is not available for this work address"The domain is verified, routed to an active connection, and typed exactly.
"We could not reach your identity provider"The issuer matches your provider exactly, and the provider is online.
"Your work account is not set up for this application"The person has an account or invitation, or automatic joining is on for the domain.
"Your identity provider did not share a verified email address"The email claim is released and the address is marked verified.
"Your identity provider did not sign the sign-in response"SAML only: turn on assertion signing in your provider.
"We could not verify the sign-in response"SAML only: the entity ID, reply address and certificate in your provider match the card, the clocks agree, and the certificate has not changed (press Test connection).
"Your identity provider sent a one-time identifier"SAML only: send a persistent identifier or the email address as the NameID.
"Your login session expired" on the code pageThe code page must be reached within a few minutes of returning from the identity provider. Sign in again from the start.

Not available yet ​

  • Signing in from a tile inside your identity provider (provider-initiated sign-in).
  • Signed sign-in requests and encrypted assertions for SAML.

API ​

  • Connections: GET, POST /platform/api/v1/console/organizations/{organizationId}/sso-connections, then PATCH, DELETE on /{connectionId}, and POST /{connectionId}/test.
  • Test sign-in link: POST /{connectionId}/test-login.
  • SAML addresses for your identity provider: GET /{connectionId}/saml-service-provider. The metadata file is public at /account/sso/saml/{connectionId}/metadata.
  • Redirect address: GET /service-provider-info.
  • Domains: /platform/api/v1/console/organization-domains.
  • Requirement and break-glass owners: /platform/api/v1/console/organizations/{organizationId}/sso-enforcement.

TenancyEngine platform documentation