Runbook: SAML misconfigured
Symptom: Clicking “Sign in with SSO” redirects to an error page, loops back to the login screen, or shows a403 Forbidden. Users cannot log in via SSO.
Diagnose
1. Check app logs during a login attempt:saml: failed to validate response— clock skew or wrong IdP certificatesaml: invalid ACS URL— the ACS URL in the IdP doesn’t match Regen’s actual URLsaml: no email attribute in assertion— IdP is not sending the email claimsaml: certificate expired— the IdP signing certificate has expired
- Metadata URL or Metadata XML is populated
- ACS URL shown matches what’s configured in your IdP
- Entity ID matches what the IdP expects
https://time.is/UTC. More than 1 minute of drift causes failures.
Common causes and fixes
ACS URL mismatch The IdP must post the SAML assertion to Regen’s ACS URL exactly. It is:APP_URL is set to your public-facing base URL — Regen constructs the ACS URL from it:
https://login.microsoftonline.com/<tenant-id>/federationmetadata/2007-06/federationmetadata.xml.
Email attribute not mapped
Regen requires the email address to be present in the SAML assertion. Ensure your IdP is configured to include the email attribute:
Clock skew
Emergency bypass
If SAML is broken and users are locked out, disable SAML temporarily to allow local login:Resolve
- Re-test the SSO login flow end-to-end
- Check logs confirm no SAML errors during the assertion
- Re-enable SAML if you temporarily disabled it
- Notify users once SSO is restored
Prevention
- Set a calendar reminder to check IdP certificate expiry — most certs are valid for 1–3 years
- Test SSO login after any IdP configuration change before communicating it to users
- Keep at least one local admin account active as a break-glass, even when SAML is enabled
