Single sign-on
Let your members sign in with Microsoft Entra ID, Google Workspace or another OpenID Connect provider. The exact steps at each provider, the values to paste, what "Test connection" tells you, and what your members see.
What it is#
On plans that include it (see Pricing), your members can sign in with your company's identity provider instead of a password. TaskToHuman speaks OpenID Connect, with the authorization code flow and PKCE. SAML and SCIM are not offered. The public site has a page for each kind of provider: Microsoft Entra ID, Google Workspace and other OpenID Connect providers.
Three rules always apply:
- Only your verified domains. A sign-in is accepted only for an email address at a domain your organization has verified by DNS. Your provider can't sign anyone in at another domain, even by mistake.
- The provider must vouch for the address. Google and other providers must say the address is verified (
email_verified). Microsoft Entra doesn't send that claim, so it must sendxms_edov(the address's domain is verified in your tenant) instead. - People are linked by the provider's identifier, never by email. If someone's address changes at the provider later, the link stays with the same person.
Humans who answer tasks don't sign in at all, so single sign-on doesn't affect them.
Before you start#
You need:
- the Owner or Admin role in TaskToHuman;
- at least one verified domain: Organization → Security & SSO → Domains → Add domain, publish the TXT record shown (
_tasktohuman.<your domain>), then Check. If other TaskToHuman accounts already use the domain, the check stops at "Needs support" and our support team takes it from there.
Then open Organization → Security & SSO → Single sign-on → Set up single sign-on. The drawer shows the Redirect URI to register at your provider:
https://app.tasktohuman.com/sso/callbackCopy it exactly, with nothing added: no trailing slash, no query.
Microsoft Entra ID#
In the Microsoft Entra admin center:
- Entra ID → App registrations → New registration. - Name:
TaskToHuman. - Supported account types: Accounts in this organizational directory only (Single tenant). Multi-tenant registrations, thecommonandorganizationsendpoints and personal Microsoft accounts are refused. - Redirect URI: platform Web, valuehttps://app.tasktohuman.com/sso/callback. - Register. - On the app's Overview, copy the Application (client) ID and the Directory (tenant) ID.
- Certificates & secrets → Client secrets → New client secret. Pick an expiry, then copy the secret's Value at once (Entra shows it only now). The Secret ID next to it is not the secret.
- Token configuration → Add optional claim → token type ID, tick email and xms_edov, Add. If Entra offers to add the Microsoft Graph
emailpermission, accept it. - API permissions: the defaults are enough (Microsoft Graph
User.Read, plusemailif step 4 added it). If your tenant requires admin consent, select Grant admin consent. - Each person who signs in needs an email address in Entra (the user's Email property, usually their mailbox), at a domain that is verified both in Entra (Entra ID → Domain names) and in TaskToHuman.
In TaskToHuman, choose Microsoft Entra ID and paste:
| TaskToHuman field | Value from Entra |
|---|---|
| Directory (tenant) ID | Overview → Directory (tenant) ID (a GUID, not your onmicrosoft.com name) |
| Client ID | Overview → Application (client) ID |
| Client secret | Certificates & secrets → the secret's Value |
TaskToHuman builds the issuer from the tenant id (https://login.microsoftonline.com/<tenant id>/v2.0) and accepts only tokens whose issuer and tid claim are that tenant. Addresses come only from the email claim: upn and preferred_username are never used, as Microsoft advises.
When the secret expires, sign-ins fail and the last error says so. Create a new secret in Entra, enter it in the drawer and save. Set a reminder before the expiry you chose.
Google Workspace#
In the Google Cloud console, in a project owned by your Workspace organization:
- Google Auth Platform → Branding, then Audience: choose Internal, so only accounts of your Workspace can use the app.
- Clients → Create client, application type Web application, name
TaskToHuman. - Authorized redirect URIs → Add URI:
https://app.tasktohuman.com/sso/callback. Create. - Copy the Client ID and the Client secret.
In TaskToHuman, choose Google Workspace and paste the client ID and the secret. The issuer (https://accounts.google.com) is filled in for you. Google's hd claim (your Workspace domain) must be one of your verified domains, so personal Gmail accounts and other Workspaces are refused.
Other OpenID Connect provider#
Okta, Keycloak, Auth0, JumpCloud and other providers work if they offer:
- a confidential (web) client with the authorization code flow and a client secret (sent as
client_secret_postorclient_secret_basic, whichever the provider lists); - PKCE with
S256(or no PKCE list at all); - an ID token signed with RSA or ECDSA (not HMAC), carrying
emailandemail_verified: true; - a discovery document at
<issuer>/.well-known/openid-configuration, on a publichttpsaddress.
At your provider, create the client with the redirect URI above and the scopes openid email profile. In TaskToHuman, choose Other OpenID Connect provider and paste the issuer URL exactly as the provider's discovery document shows it (a trailing slash counts), the client ID and the secret.
Who joins, and with which role#
Under New members, Add people on their first sign-in decides what happens to someone your provider signs in for the first time:
- No TaskToHuman account yet: with the option on, an account and a membership are created, with the role you choose (never Owner) and the workspaces you tick, if a seat is free. With the option off, they're told to ask you for an invitation.
- Already a member of your organization: they're linked and signed in. Their role doesn't change.
- An account that isn't a member yet: we email that address a link ("Confirm it's you"); opening it in the same browser within 30 minutes links the account and adds the membership.
A sign-in through your provider lasts 12 hours unless you change Single sign-on sessions last in your organization settings (1 to 336 hours). After that, people sign in through your provider again, so someone disabled at the provider keeps access at most that long.
Test connection#
Save the connection with Sign-in through this provider is on still off, then select Test connection. You sign in at your provider as yourself; TaskToHuman checks everything, signs nobody in, changes nothing, and shows what the provider sent: the email, whether it was verified (and, for Entra, xms_edov), the subject and the issuer. When it works, turn sign-in on.
When the test fails, the page says the sign-in didn't work, and Security & SSO → Single sign-on shows the Last error with what to change:
| Last error | What it means | What to do |
|---|---|---|
client_secret_expired | The client secret has expired (Entra AADSTS7000222). | Create a new secret and enter it. |
client_secret_invalid | The provider refused the secret (Entra AADSTS7000215). | Paste the secret's Value, not its ID. |
client_invalid | The provider refused the client (OAuth invalid_client without an Entra code: the client id or the secret). | Check the client id and paste the secret's value again. |
client_unknown | The client id isn't known in that tenant (Entra AADSTS700016). | Check the client id and the tenant id. |
redirect_uri_mismatch, exchange_failed | The provider refused the sign-in code. | Check the redirect URI, the client id and the secret. |
tenant_mismatch, issuer_invalid | The token came from another tenant or issuer. | Use your own tenant id; for other providers, the exact issuer. |
email_missing | No email claim. | Entra: add the optional claim email (step 4) and give the user an email address. |
email_unverified | The provider didn't vouch for the address. | Entra: add the optional claim xms_edov and verify the domain in Entra. Others: send email_verified: true. |
email_domain, hd_mismatch | The address isn't at one of your verified domains. | Verify the domain, or sign in with an address at it. |
discovery_failed, issuer_mismatch | We couldn't read the provider's configuration. | Check the tenant id or the issuer URL. |
Some mistakes stop at the provider and never reach us. Microsoft then shows its own error page; the usual ones are:
AADSTS50011(the redirect URI doesn't match): registerhttps://app.tasktohuman.com/sso/callbackexactly, as a Web platform, not "Single-page application".AADSTS50020(the user isn't in the tenant): the person signed in with an account from another directory. Sign in with an account of your tenant.AADSTS90002(tenant not found): the tenant id is wrong.
What your members see#
- On the sign-in page, Sign in with single sign-on.
- They enter their Work email and select Continue.
- Your provider's sign-in page opens (Microsoft or Google already knows the address and the domain). After they sign in there, they're back in TaskToHuman, signed in to your organization.
If something stops them, the page says why, with Back to sign in:
- "Your address isn't at a domain your organization has verified."
- "Your provider didn't confirm your email address."
- "You don't have access yet. Ask your administrator to invite you."
- "Your organization has no free seats. Ask an administrator."
- "Single sign-on isn't available for this organization right now. Sign in with your password, or ask your administrator."
- "We couldn't sign you in with your provider. Try again, or ask your administrator." (the reason is in your Last error)
Someone whose account was created by single sign-on has no password. If single sign-on is ever removed, they use Forgot password to set one.
Removing single sign-on#
Remove in the connection's actions removes the connection and every link to it. Sessions already open run out normally, and nobody can sign in through the provider afterwards.