# Single sign-on troubleshooting

> What each single sign-on and SCIM error code means and how to fix it: audience, recipient, certificates, signatures, clocks, OIDC tokens, unverified domains, suspended members, seats, lockouts and group mapping.

People whose sign-in fails see a generic message ("We couldn't sign you in with your organisation's identity
provider…"). Admins see the reason: run **Test connection** (Security → Single sign-on) — the report names the failing
check with a stable code and the values behind it — or look at the connection's *Last sign-in failed* line and the
audit log (`auth.login_failed`, method `sso`).

## By error code

| Code | What it means | Fix |
|---|---|---|
| `audience_mismatch` | The assertion is for another service provider | In the IdP set the Audience / SP Entity ID to exactly the wizard's **Entity ID** |
| `recipient_mismatch`, `destination_mismatch` | Addressed to another sign-in URL | Set the ACS / Reply URL (and Recipient / Destination) to exactly the wizard's **ACS URL** |
| `cert_mismatch` | Signed with a certificate the connection doesn't have | Upload the IdP's current signing certificate (the report shows the fingerprint received); during a rollover paste both |
| `signature_invalid` | The signature doesn't verify | Re-import the IdP metadata; check nothing rewrites the response on the way |
| `unsigned_assertion` | The assertion isn't signed | Turn on assertion signing (*Sign assertion* / *Sign SAML response and assertion*) |
| `sha1_forbidden` | Signed with SHA-1 | Switch the IdP to RSA-SHA256 (or, for a legacy IdP, allow SHA-1 under Advanced) |
| `clock_skew` | Outside the assertion's validity window | Fix the IdP's or the server's clock (the report shows both times); raise *Allowed clock difference* (max 300 s) only if needed |
| `issuer_mismatch` | Another issuer than configured | Set the IdP entity ID (SAML) / issuer URL (OIDC) to exactly what the IdP sends (shown in the report) |
| `in_response_to_mismatch` | The answer doesn't match a sign-in we started | Start again from MoreVoice (not from an old tab or a bookmark of the IdP page) |
| `unsolicited_response` | Started from the IdP portal, which the connection doesn't allow | Start at MoreVoice's sign-in page, or allow sign-in from the provider's portal |
| `replay` | The same assertion was used twice | Start the sign-in again |
| `assertion_not_encrypted`, `decryption_failed` | Encryption is required / the key doesn't match | Turn encryption off in the connection, or make the IdP encrypt to the certificate in our current metadata |
| `doctype_forbidden`, `saml_invalid` | A malformed or dangerous response | Contact your IdP vendor; MoreVoice never accepts DOCTYPE / ENTITY declarations |
| `discovery_failed` | The OIDC discovery document can't be read | Check that `<issuer>/.well-known/openid-configuration` is reachable over https |
| `token_invalid`, `nonce_mismatch` | The ID token didn't validate | Check the client ID, the signing algorithm (asymmetric only) and the server clock |
| `email_unverified` | The provider says the email isn't verified | Verify the email in the provider, or (Entra ID) turn on *Trust the email without email_verified* |
| `client_secret_missing` | No client secret | Add the client secret (OIDC) |
| `missing_email` | No email attribute or claim | Send an email attribute (or an email-format Name ID); check **People → Attributes** |
| `email_domain_not_verified`, `domain_not_verified` | The person's email domain isn't verified | Verify the domain under **Domains** (and keep its TXT record) |
| `no_account` | No member matches and just-in-time sign-up is off (or SCIM manages people) | Add the person (or assign them in the IdP with SCIM), or turn on just-in-time sign-up |
| `account_suspended` | The person's membership is suspended | Reactivate them in **Users & Teams** or in the IdP (SCIM) |
| `seat_limit` | No seat free | Free a seat or add one; the person was added and waits for it |
| `state_invalid`, `browser_mismatch` | The sign-in link expired, was used, or finished in another browser | Start again in one browser (cookies must be allowed) |
| `sso_not_configured` | No active connection (or the server has no public address) | Activate a tested connection; for the address, contact support |

## Other situations

- **"Your organisation requires single sign-on" on the sign-in page.** Single sign-on is required for that person:
  they select *Continue with single sign-on*. Break-glass accounts use their password (with the second factor) or passkey.
- **Locked out because the IdP is down.** Sign in with a break-glass account and stop requiring single sign-on, or ask
  MoreVoice support to turn the requirement off (verified, recorded in the audit log).
- **Domain lapsed.** The TXT record disappeared for three nights: publish it again and select **Check now**.
- **Test passes but Activate is unavailable.** The test is older than 24 hours or the settings changed since: test again.
- **Groups don't map.** Compare the mapping's group value with the report's *Groups* line (Entra ID sends object IDs;
  Okta names; check what Google sends in the report). Mappings apply at just-in-time sign-up; turn on *Apply group
  mappings at every sign-in* for later changes, or use SCIM.
- **SCIM 401.** The token was revoked, expired or mistyped (`Bearer mvscim_…`). **429**: too many requests or failed
  attempts — the IdP retries.
