Allow logout to succeed if NotOnOrAfter expired. #272
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A pull request I previously submitted inadvertently changed the behavior of
do_logout()
when the user'ssession_info
was past thenot_on_or_after
timestamp.The result was that
do_logout()
would throw aToOld
exception if either theSessionNotOnOrAfter
orNotOnOrAfter
on the Assertion had past.I've done a bit of digging into the SAML 2.0. spec to find the following "fun" reading information:
and...
I'm currently dealing with a situation where I'm getting a very short time period on the
NotOnOrAfter
and noSessionNotOnOrAfter
. Looking on the Internet, there appears to be quite a bit of confusion as to exactly how these attributes should be used and/or related. I'm not sure that the usecase I'm dealing with is not valid and as such have opted to submit this pull request to "fix"do_logout()
by allowing it behave the way it did previously in regards to expired sessions.