Home / Companies / SSOJet / Blog / Post Details
Content Deep Dive

SAML Clock Skew: Fixing \"Assertion Not Yet Valid\" Errors

Blog post from SSOJet

Post Details
Company
Date Published
Author
Goverdhan Sisodia
Word Count
3,245
Company Posts That Month
19
Language
English
Hacker News Points
-
Post removed?
No
Summary

SAML “assertion not yet valid” errors usually result from a service provider clock lagging behind the identity provider, causing UTC-based NotBefore and NotOnOrAfter validity checks to reject otherwise correct assertions. SAML Core defines these timestamps as a strict interval, with NotBefore inclusive and NotOnOrAfter exclusive, while the Web Browser SSO profile explicitly permits unspecified clock-skew allowance only for bearer SubjectConfirmationData expiry; common symmetric tolerance across both boundaries is an implementation convention rather than a standards requirement. The guide recommends diagnosing failures through retry behavior, affected hosts, and direct timestamp-versus-host-clock comparisons, distinguishing persistent skew from genuine expiry delays and timezone parsing defects. A tolerance of roughly 30 seconds to two minutes is presented as an engineering judgment for synchronized systems, but persistent drift should prompt clock repair through NTP or host-level time synchronization rather than a larger acceptance window. Increasing tolerance also extends the required retention of consumed assertion IDs for replay prevention, making replay-cache duration and shared storage important security considerations. Finally, SessionNotOnOrAfter governs the duration of the resulting user session rather than whether the assertion itself is accepted.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 1 156 54 28 -80%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.