"assertion has expired" error: enforcement of SAML assertion lifetime values

Problem statement

Does the application support the enforcement of the SAML assertion lifetime values set by the IdP and reject expired tokens?

Steps to reproduce

  1. Set up a SAML connection with the SAML Mock tool (https://saml-mock.vercel.app/ or https://samlmock.dev/)
  2. Enable IdP-initiated responses in the SAML connection settings
  3. Go to https://samlmock.dev/idp, configure the appropriate ACL and audience, and hard-code old NotOnOrAfter dates in the SAML response
  4. See that you’ll get an “assertion has expired” error in the tenant logs.

Solution

Yes, Auth0 enforces SAML assertion lifetime values set by the SAML IdP and will reject expired tokens with an “assertion has expired” error.

1 Like