--
You received this message because you are subscribed to the Google Groups "Pac4j users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pac4j-users/51e96ca1-ba98-4a4d-9d89-1c52e7039959n%40googlegroups.com.
`All SAML assertions contain a “Conditions” tag. That tag will contain a “NotBefore” value and
a “NotOnOrAfter” value.
We test to see that the system receiving the SAML assertion is checking those conditions and rejecting the SAML document when either condition fails.
If you look at the above values, you can see this SAML assertion would be valid for only 2 minutes (16:22:02 thru 16:24:02).
The company that is asserting the identity (i.e. building the SAML assertion), can set these values to make as large or as small a window as desired.
Our test is to build the document and prevent to browser from sending the document until after the “NotOnOfAfter” time has been reached. We then expect the receiving system to reject the login.
Your system should
reject the document based on the values
in the conditions statement. (i.e. not based on some arbitrary fixed time
window)`
Currently it allows to accept the document even after time past due to default accepted skew.
Can you please let us know if we can change this code without affecting IssueInstant field in SAML response, currently in pac4j-saml same acceptedSkew is used at both places.
Please let us know your thoughts?
Thanks & Regards,
Naveen Kumar