On line 574, the code is supposed to be calculating the SAML Assertions expiration. The code is calculating the lower bound on the time window, but is not properly storing the calculated DateTime. So rather than checking the Issue, and is effectively checking to see if the issue date is after the current time, which is never the case.
The code reads:
The code should read:
currentTime = currentTime.minusSeconds(ttl);