Single sign-on (SSO)
Let the people in your business sign in to indox through your company’s identity provider (IdP), with SAML 2.0 or OpenID Connect. Accounts can be created at first sign-in or managed by your IdP through SCIM.
Step-by-step guides for the common IdPs:
Any other SAML 2.0 or OpenID Connect provider works if it meets the requirements below.
Who can set it up
Everything happens in the web app under Settings → Single sign-on. The tab appears for the owner and the admins of a business.
| Task | Admin | Owner |
|---|---|---|
| Domains, identity provider, role mapping, test sign-in | Yes | Yes |
| Require single sign-on | No | Yes |
| Issue or revoke the SCIM token | No | Yes |
Set it up
-
Verify your domain. Under Domains, add your company’s email domain (for example
example.com), publish the TXT record shown at your DNS provider, and press Verify. Personal email domains (Gmail, Outlook and the like) cannot be added, and a domain can be verified by one business only. SSO applies to people whose email is on a verified domain. -
Choose a sign-in name. It defaults to the first label of your domain (
example). It appears in every URL your IdP needs and locks after the first passing test. -
Configure your IdP. Copy the values from Values for your identity provider into a new application in your IdP:
Value Example Entity ID (SAML) https://indox.org/accounts/saml/example/metadata/ACS URL (SAML) https://indox.org/accounts/saml/example/acs/Service provider metadata URL https://indox.org/accounts/saml/example/metadata/Single logout URL (SAML, optional) https://indox.org/accounts/saml/example/sls/Redirect URI (OpenID Connect) https://indox.org/accounts/oidc/example/login/callback/Sign-in link for your team’s bookmark https://indox.org/en-US/sso/example -
Enter your IdP’s details under Identity provider: for SAML, its metadata URL (or paste the metadata XML); for OpenID Connect, the issuer URL, client ID and client secret. Choose how accounts are created under Provisioning, map IdP groups to roles if you want, and press Save settings.
-
Run a test sign-in. Run test sign-in sends you through your IdP and back to a page that says whether it worked. A failed test shows a reason code, see Troubleshooting. Sign-in through SSO is turned on after the first passing test.
-
Optional, owner only: require single sign-on. See Require single sign-on.
Identity provider requirements
SAML 2.0
| Requirement | Detail |
|---|---|
| Signing | Sign both the SAML response and the assertion, with SHA-256. Unsigned or SHA-1-signed responses are refused. |
Send the user’s email as the NameID with format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress, or in the attribute http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress. The email must be on one of your verified domains. | |
| Name (optional) | Attributes http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname and http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname. |
| Groups (optional) | An attribute named groups, or http://schemas.microsoft.com/ws/2008/06/identity/claims/groups, for role mapping. |
| Sign-in starts at indox | indox sends a signed request to your IdP and accepts only the matching response. A response your IdP sends on its own, for example from an app tile, is refused. Point app tiles at your bookmark link instead. |
| Single logout (optional) | HTTP-Redirect binding only. |
OpenID Connect
| Requirement | Detail |
|---|---|
| Client | A confidential web client with a client secret. indox also uses PKCE (S256). |
| Issuer | An https URL on a public host. indox reads <issuer>/.well-known/openid-configuration. |
| Scopes and claims | openid profile email; the ID token or user info must carry email. A groups claim is used for role mapping. |
How people sign in
- On the sign-in page, Continue with SSO, then their work email.
- Your bookmark link,
https://indox.org/<locale>/sso/<sign-in-name>. - In the mobile app, Continue with SSO on the sign-in screen.
The first sign-in creates the account, unless your provisioning is SCIM. An existing indox account with the same email (on a verified domain) is linked to your business instead, and its owner is emailed. indox does not ask for its own two-factor code on SSO sign-in: your IdP owns multi-factor authentication.
Roles
Role mapping maps an IdP group to a role: Admin, Manager, Employee or Viewer. Someone in several mapped groups gets the highest role; someone in none gets Employee. The business owner’s role is never changed by SSO or SCIM.
Require single sign-on
When the owner turns on Require single sign-on, everyone whose email is on a verified domain:
- must sign in through your IdP: password, emailed code, Google and Apple sign-in are refused;
- is signed out of indox at that moment;
- cannot reset an indox password or sign up with a password.
People in your business whose email is on another domain (contractors, guests) are not affected. It needs a passing test sign-in first.
Owner emergency sign-in. If your IdP is down, the owner can still sign in with their indox password and an authenticator app code. Recovery codes are not accepted for this. Set up an authenticator app before you require SSO.
SCIM provisioning
With SCIM, your IdP creates, updates and removes people in your business.
- Under Identity provider, set Provisioning to SCIM (managed by your IdP) and save. People your IdP has not provisioned can no longer be created at sign-in.
- The owner presses Issue new token under SCIM token. The token is shown once; issuing a new one replaces it immediately.
- In your IdP, set the SCIM base URL to
https://indox.org/scim/v2/and the authentication to a Bearer token (HTTP header) with that token.
| Supported | Detail |
|---|---|
| Users | Create, read, update (PUT, PATCH), deactivate (active: false), delete. userName is the email and must be on a verified domain. Filter: userName eq "…". |
| Groups | Create, read, update, delete, and membership through PATCH. A group’s display name is matched against your role mapping. |
| Rate limit | Per token; over the limit returns 429 with Retry-After. |
Deactivating or deleting a person suspends or removes them from your business and ends the indox sessions they started through your SSO. An account your SSO created, and that belongs to no other business, is also disabled and its API keys revoked.
Certificate expiry
When your IdP metadata comes from a URL, indox re-reads it once a day, so a new signing certificate is picked up automatically. The owner and admins are emailed 30 days and 7 days before the signing certificate expires, and when it has expired.
Troubleshooting
A failed sign-in or test shows a reason code.
| Code | Meaning |
|---|---|
sso.email_domain_mismatch | The email from your IdP is not on a verified domain of this business. |
sso.sso_not_active | No passing test sign-in yet, or the business is not active. |
sso.not_provisioned | SCIM provisioning is on and your IdP has not provisioned this person. |
sso.user_suspended | The person’s account or membership is suspended. |
sso.assertion_unsigned | The response or the assertion is not signed. Sign both. |
sso.signature_invalid | The signature does not match the IdP certificate indox has. Update your metadata. |
sso.algorithm_deprecated | The IdP signed with SHA-1. Use SHA-256. |
sso.assertion_expired | The assertion is outside its validity window. Check the IdP’s clock. |
sso.audience_mismatch | The audience is not the Entity ID shown in indox. |
sso.idp_initiated_rejected | The sign-in started at the IdP. Start from indox or your bookmark link. |
sso.assertion_replayed | The same response was used twice. Sign in again. |
sso.state_mismatch, sso.nonce_mismatch, sso.issuer_mismatch | The OpenID Connect response does not match the request or the issuer. Check the issuer URL. |
sso.pkce_failed, sso.code_expired, sso.code_used | The sign-in took too long or was retried. Sign in again. |
sso.sso_required | Single sign-on is required for this email. Use Continue with SSO. |