Troubleshooting
The core put to work on real incidents: find the failing stage of a scope request, a callback, client authentication, a session, token trust, a SAML connection, provisioning or permissions. Each lesson pairs with a Lab.
Start with Finding the failing stage
- Finding the failing stageFollow one failed sign-in stage by stage, join audit records and request logs by request ID, and repair only the proven cause.
- When a scope is refused or quietly droppedCompare the scopes requested, defined, assigned and owned by the API, and catch a token that quietly carries fewer scopes than you asked for.
- Sign-in never returns to the appFind why users stop at the provider's error page, compare the redirect URI exactly at both endpoints, and repair without loosening the match.
- Token requests fail with invalid_clientSeparate a wrong authentication method, a Basic encoding bug and an instance left on a retired secret, all reported as invalid_client.
- The partner accepts the password, but sign-in failsTrace a failed external sign-in to an expired connection secret at the partner, replace it on both sides and confirm each user reaches the same account.
- A returning user's refresh fails with invalid_grantA returning user's refresh is refused with invalid_grant. Use the server's reason and the grant's timeline to tell expiry from revocation or reuse.
- Concurrent refreshes sign users outTwo workers refresh with one token, reuse detection revokes the family and customers are signed out. Find the race and coordinate renewal across instances.
- A valid token is refused in one deploymentOne deployment refuses tokens another accepts. Compare its configured issuer and audience with the token's claims, read the 401 challenge and fix the drift.
- Tokens fail with an unknown key after a rolloverAfter a signing key rollover one API instance refuses new tokens. Compare the kid with the issuer's JWKS, fix the stale key source and verify the overlap.
- The identity provider refuses a SAML requestTrace a SAML sign-in that stops at the identity provider to the entity ID it no longer recognizes, before anyone touches a certificate.
- Federated users arrive with the wrong nameSeparate which account a federated identity reaches, which profile values are copied and what the person may do, then repair only the mapping.
- Provisioning reads accounts but cannot change themFollow a refused SCIM activation through 403, 412 and 409 responses, repair it with the approved writer and never create a duplicate account.
- The help desk can no longer unlock accountsRead a 403 from a still-signed-in operator, find the role edit that removed one permission, and restore only that grant.
- It fails on one server or in one tabFind why fresh tokens fail on one API instance and sign-in fails in one old tab: clock drift, stale pending attempts and SameSite cookies.
- Timeouts, 503s and 429s from a providerRead 503s, 429s and timeouts from an upstream service, reconcile unknown outcomes and retry safely with idempotency, backoff and Retry-After.
- Everything broke after last night's change windowUntangle two faults from one change window in the order the requests reveal them, rule out a plausible decoy and repair one cause at a time.
- A provisioning request is rejected with a scimTypeRead SCIM error bodies to tell invalidFilter, invalidPath, mutability and noTarget apart, fix the client's request, and back off on 429.
- The ID token is rejected, or silent sign-in failsFind which ID token check failed, from issuer and audience to nonce and expiry, and handle prompt=none errors without a silent retry loop.
- The service provider rejects a SAML responseRead a rejected SAML response: the status first, then time conditions, audience and recipient, and which element the SP requires signed.