Single sign-on (SSO)

Connect your organization's identity provider, and the exact redirect URIs to register on the IdP side for Microsoft Entra ID, Google Workspace, Okta, generic OIDC and SAML.

Organization admins can connect the organization's own identity provider (IdP) so members sign in with their company account. Setup lives in the portal under Settings → SSO:

  1. Provider. Pick the IdP and paste the client ID and secret of an app you registered on the IdP side (Microsoft also needs the directory tenant ID).
  2. Domain. Your email domain is claimed for the connection.
  3. Prove your domain. Your organization must prove it owns the domain before SSO can be activated: for Microsoft, run Test sign-in (below); for Google, Okta, generic OIDC and SAML, add a DNS TXT record (see Prove your domain).
  4. Test and activate. Run the connection test; once it passes and a domain is proven, activate. If your platform operator has enabled administrator verification there is also a Verify with Microsoft/Google sign-in for Microsoft and Google.

Domain proof is required to activate or re-enable SSO, to turn on Require SSO or Automatic membership, and for sign-ins at your domain to be sent to your IdP. A domain that is claimed but not proven does not route anyone to your SSO; your members keep signing in with their other methods until it is proven. (A platform operator can switch proof off on a non-production deployment; there, an automatically verified domain is enough.)

Until it is activated the tab shows the connection as Not active yet, with the next steps numbered (1. Test sign-in, 2. Activate). Once it is Active:

  • Who can join. By default only people you invite can join. Anyone else who signs in with your IdP is told they are not a member of your organization yet and should ask an administrator for an invitation. An invited person joins on their first SSO sign-in.
  • Automatic membership (off by default). Turn it on to let anyone who signs in with your IdP at your verified domains join as a Member. People you removed can't rejoin this way: they are listed under Settings → Members → Removed, where an administrator can Restore them (their previous role and projects come back when they next sign in; they get an email) or send them an invite.
  • Require SSO. Everyone at your verified domains must sign in with your IdP; other sign-in methods are refused.
  • Email address. Members are matched by their IdP account. Their email comes from the IdP's email claim; for Microsoft, an account without a mailbox uses its user principal name (UPN) when the UPN is at one of your proven domains. An account with no usable email is told to add one at the IdP or use another sign-in method. No extra form is shown after the IdP sign-in.

Prove your domain

Microsoft Entra ID. A Microsoft administrator grants admin consent for Organization.Read.All, then you run Test sign-in in Settings → SSO (see Admin consent and Test sign-in). Your tenant's verified domains are claimed as proven. DNS TXT is not used for Microsoft.

What "not proven" blocks. A domain can be claimed (verified for routing sign-ins) without being proven. Settings → SSO then shows "Your domain is not proven". Until it is proven:

  • Require SSO cannot be turned on;
  • Automatic membership cannot be turned on;
  • members who also have a password cannot sign in through your IdP: the sign-in is refused ("your organization has not verified this domain") and they keep signing in with their password.

If Require SSO was turned on before your domain was proven, members who have a password are locked out (their password is refused by Require SSO, and the IdP sign-in is refused for them). Prove the domain, or turn Require SSO off until it is proven.

Google Workspace, Okta, generic OIDC and SAML. Prove the domain with a DNS TXT record:

  1. In Settings → SSO, find the domain in the domain list. While it is pending, the portal shows the record to add: name _stf-verify.<your-domain>, value the token shown next to it.
  2. Add that TXT record at your DNS provider.
  3. Back in Settings → SSO, click Verify (in the setup wizard: Verify Now). DNS changes can take from a few minutes to a few hours to propagate; if the record is not found yet, wait and try again.

Once the domain shows as verified, you can activate SSO.

Members' own sign-in methods

Each person manages their own sign-in methods under Profile → Sign-in methods: their password, and Microsoft, Google or GitHub accounts connected to their portal account. Your SSO settings decide what they may change:

  • Require SSO on: the page is read-only for everyone at your verified domains. It says, for example, "Managed by Acme: sign in with Acme Microsoft Entra ID"; nobody at those domains can connect a personal account, remove a method or add a password.
  • Require SSO off: members may connect a personal Microsoft, Google or GitHub account and add a password, as long as the provider account uses the same email address as their portal account (verified by the provider). The provider your own connection uses (for example Microsoft for a Microsoft Entra connection) is not offered separately: those sign-ins go through your connection.
  • Your SSO link shows on the page as managed by your organization; members cannot remove it.
  • People whose address is not at your domains (guests you invited) are not affected by Require SSO.

Passwords. A password must have at least 12 characters (up to 128). Spaces and all characters are allowed, and there are no rules about capitals, digits or symbols. Common or leaked passwords, the person's own email address and their current password are refused. With Require SSO on, "Forgot password" at your domains sends no reset link: the person gets an email telling them to sign in with your SSO. People who sign in only with Microsoft, Google or GitHub get the same kind of email. Whenever a password is reset or changed, its owner gets an email saying so.

The IdP only accepts a sign-in if the address it sends the user back to is registered on your app, so register the redirect URIs below before members try to sign in.

Register redirect URIs

The Settings → SSO tab shows the exact values for your organization, with a copy button, for the IdP you picked. Copy them from there; the patterns below explain where each one comes from.

PlaceholderMeaning
<auth>The platform's sign-in host, for example https://auth.<domain>
<portal>The portal host, for example https://portal.<domain>
<sso-alias>Your organization's SSO connection identifier, starting with org-. Copy the full URI from Settings → SSO

Every IdP type uses the same sign-in redirect URI (the SAML ACS URL is the same address):

<auth>/auth/realms/org/broker/<sso-alias>/endpoint

For example: https://auth.example.com/auth/realms/org/broker/org-m7grxi5besplmsy7z4mwbmgt/endpoint.

It is specific to your organization. It is not the redirect URI of the generic "Sign in with Google/Microsoft" buttons on the login page, and it is not <portal>/auth/oidc/callback.

No logout URL needs to be registered: signing out ends the session on this platform only and does not call your IdP's logout endpoint.

Microsoft Entra ID

Microsoft Entra admin center → App registrations → your app → Authentication → Add a platform → Web.

RegisterValue
Redirect URI (Web)<auth>/auth/realms/org/broker/<sso-alias>/endpoint
Redirect URI (Web), admin consent<portal>/auth/sso/admin-consent/callback
  • Register the app in the same Microsoft tenant as your users' email domain. An app from another tenant (a parent company's, a partner's) does not work: Microsoft refuses it (AADSTS7000229) or your users sign in as guests. Settings → SSO warns when one of your domains belongs to a different tenant than the connection's.
  • Supported account types: Accounts in this organizational directory only (single tenant).
  • Create a client secret under Certificates & secrets and paste it, with the Application (client) ID and the Directory (tenant) ID, into Settings → SSO.
  • API permissions (Microsoft Graph):
    • Delegated openid, profile, email and User.Read (the default on every app registration) — for sign-in. Admin consent is not required unless your tenant blocks user consent.
    • Application Organization.Read.All — for domain proof (Test sign-in). It needs admin consent, a required step (see Admin consent and Test sign-in). Without it your domains are not proven, so SSO cannot be activated.
  • Token configuration: no optional claims are needed (adding email is harmless).
  • If the app's enterprise application has Assignment required set to Yes, only the users and groups assigned to it can sign in through SSO.
  • Verify with Microsoft appears only when administrator verification is enabled on the platform. It does not use your app: it signs you in through the platform's own Microsoft sign-in app, which returns to <portal>/auth/sso/verify-admin/callback. That URI is registered by the platform operator; do not add it to your app. If your tenant blocks user consent to third-party apps, an Entra administrator may need to grant consent to the platform's app the first time.

Test sign-in: prove your domains (Microsoft)

Proving your domains with Microsoft takes these steps, in this order:

  1. Register the admin consent redirect URI. On the app, under Authentication → Web → Redirect URIs, add <portal>/auth/sso/admin-consent/callback next to the sign-in redirect URI. Settings → SSO shows the exact value with a copy button.
  2. Add the permission. Under API permissions, add Microsoft Graph Application permission Organization.Read.All.
  3. Grant admin consent (required). In Settings → SSO click Get admin consent if you are a Microsoft administrator (Global Administrator or Privileged Role Administrator), or click Create a link for your Microsoft administrator and send them the link (valid for 7 days). Microsoft shows the permissions of your app; the administrator accepts them. An administrator can instead click Grant admin consent for (your tenant) under the app's API permissions in the Entra admin center. If Microsoft refuses, Settings → SSO (or the page the administrator lands on) shows the reason and Microsoft's AADSTS error number.
  4. Run Test sign-in. Back in Settings → SSO, click Test sign-in.

Test sign-in signs you in once through your app (the sign-in redirect URI). Use your own account — a member of the tenant, not a guest — whose email domain is one of the tenant's verified domains. With your app's own credentials the platform then reads your tenant's verified domains from Microsoft (Organization.Read.All, granted by your administrator) and claims them for your organization as proven:

  • *.onmicrosoft.com is never claimed, and you can untick any domain.
  • A domain another organization already claimed is shown as a conflict and is not taken; contact support to resolve it.
  • At a proven domain nobody can sign up on their own or create another organization: they sign in with your SSO, or you invite them.
  • If admin consent is missing, the result says "Ask your Microsoft administrator to grant admin consent for Organization.Read.All to this app, then test again." Nothing is claimed and SSO cannot be activated until a domain is proven.
  • Changing the client ID or tenant ID clears the proof; run Test sign-in again.

Google Workspace

Google Cloud console → APIs & Services → Credentials → Create credentials → OAuth client ID → application type Web application.

RegisterValue
Authorized redirect URI<auth>/auth/realms/org/broker/<sso-alias>/endpoint
  • No authorized JavaScript origin is needed.
  • Prove your email domain with a DNS TXT record before activating (see Prove your domain).
  • Verify with Google appears only when administrator verification is enabled on the platform. It does not use your OAuth client: it signs you in through the platform's own Google client, which returns to <portal>/auth/sso/verify-admin/callback. That URI is registered by the platform operator; do not add it to your client. Sign in with a managed Google Workspace account on the claimed domain: personal Gmail accounts carry no domain and fail verification.

Okta and generic OIDC

Okta Admin Console → Applications → Create App Integration → OIDC - OpenID Connect → Web Application. For another OIDC provider, create a confidential client with the authorization-code flow.

RegisterValue
Sign-in redirect URI<auth>/auth/realms/org/broker/<sso-alias>/endpoint
  • Grant type: authorization code. Scopes: openid, email, profile.
  • Paste the issuer URL (for Okta https://<your-okta-domain> or https://<your-okta-domain>/oauth2/default), the client ID and the client secret into Settings → SSO.
  • There is no IdP sign-in step for verification. Prove your email domain with a DNS TXT record before activating (see Prove your domain).

SAML

SAML connections are set up through the API rather than the portal wizard. Configure the service provider on your IdP with:

RegisterValue
Assertion Consumer Service (ACS) / Reply URL<auth>/auth/realms/org/broker/<sso-alias>/endpoint
SP entity ID / Audience<auth>/auth/realms/org
SP metadata (optional, to import)<auth>/auth/realms/org/broker/<sso-alias>/endpoint/descriptor

Use the user's email address as the NameID (format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress). Prove your email domain with a DNS TXT record before activating (see Prove your domain).

Troubleshooting

What you seeUsual cause
Microsoft: AADSTS7000229 / "This app isn't set up in tenant …"The app is registered in a different tenant than the Tenant ID. Use an app registered in your users' tenant, or grant admin consent there for a multi-tenant app
"… belongs to Microsoft tenant … This connection uses …", or Test sign-in: "signed in as a guest"The app's tenant is not the one your email domain belongs to. Register the app in the same tenant as your users' email domain and enter that Directory (tenant) ID
Microsoft: AADSTS50011 "redirect URI ... does not match"The sign-in redirect URI is missing from the app registration, or it was added under a platform other than Web
Google: Error 400: redirect_uri_mismatchThe URI is missing from Authorized redirect URIs, or differs by a character (trailing slash, http vs https)
Verify with Google/Microsoft (only when administrator verification is enabled) fails with a redirect mismatchThe platform's own app is missing <portal>/auth/sso/verify-admin/callback. Contact the platform operator
"Prove ownership of your organization's domain with its DNS TXT record …"The domain is not proven yet. Add the _stf-verify.<domain> TXT record and click Verify
"Run Test sign-in with a Microsoft administrator's consent …"No domain proven by your Microsoft tenant yet. Grant admin consent for Organization.Read.All and run Test sign-in
Get admin consent: "the admin consent redirect URI is not registered" (AADSTS50011)Add <portal>/auth/sso/admin-consent/callback as a Web redirect URI on the app
Get admin consent: "Admin consent was not granted"The person who signed in at Microsoft is not a tenant administrator, or declined. Send the link to a Global Administrator or Privileged Role Administrator (needed to consent to Microsoft Graph application permissions)
Members with a password get "your organization has not verified this domain" when signing in with SSOThe domain is not proven. Prove it (admin consent + Test sign-in, or DNS TXT); they can sign in with their password meanwhile unless Require SSO is on
TXT record not found on VerifyDNS has not propagated yet, or the record name/value differs. Check _stf-verify.<domain> holds exactly the token shown, wait, and try again
"Verification is not configured on this deployment"The platform operator has not set up the verification client for that IdP

We use strictly necessary cookies to record your choice and run this site. We do not use cookies for advertising or tracking. See the Cookie Policy.