Closed phavekes closed 2 hours ago
PR: https://github.com/OpenConext/Stepup-Gateway/pull/161
Note: SubjectConfirmation has no NotBefore, but Conditions does have a NotBefore. The PR only does what\'s asked: SubjectConfirmation NotOnOrAfter equals the NotOnOrAfter of the assertion (Conditions), which is 5 minutes in the future. (Joris Steyn - May 30, 2018)
@jorissteyn Yes, this is what I indended. Only change theNotOnOrAfter of the SubjectConfirmation and do not add a NotBefore. My reasoning is that this is exactly what OpenConext-engine does, and engine has had a much a wider exposure to the many SP implementations out there than the Stepup gateway. So it is all about compatibility. (Pieter van der Meulen - May 30, 2018)
This issue is imported from pivotal - Originaly created at May 25, 2018 by Pieter van der Meulen
In the SAML Assertions that are generated by the Stepup-Gateway the time in the
NotOnOrAfter
attribute of thesaml:SubjectConfirmationData
element exceeds what is specified in theNotOnOrAfter
attribute of theConditions
element. This causes a Response contains no valid assertions error in NetIQ Access Manager.She the SAML 2.0 core specification, section 2.4.1.2, line 756 says:
Excerpt of an Assertion from the Stepup-Gateway:
Note that the NotOnOrAfter time of the SubjectConfirmationData is 8 hours after the NotBefore time of the Conditions element, whereas the Conditions has a NotOnOrAfter of 5 minutes after the NotBefore time.
To improve compatibility with other implementations, I want the
NotOnOrAfter
attribute of theSubjectConfirmation
element to be set equal to theNotOnOrAfter
attribute of theConditions
element. I.e.:This behaviour is the same as OpenConext engine.