You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/onelogin/ruby-saml/slo_logoutrequest.rb
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -186,13 +186,15 @@ def validate_version
186
186
true
187
187
end
188
188
189
-
# Validates the time. (If the logout request was initialized with the :allowed_clock_drift option, the timing validations are relaxed by the allowed_clock_drift value)
189
+
# Validates the time. (If the logout request was initialized with the :allowed_clock_drift option,
190
+
# the timing validations are relaxed by the allowed_clock_drift value)
190
191
# If fails, the error is added to the errors array
191
192
# @return [Boolean] True if satisfies the conditions, otherwise False if soft=True
192
193
# @raise [ValidationError] if soft == false and validation fails
193
194
#
194
195
defvalidate_not_on_or_after
195
196
now=Time.now.utc
197
+
196
198
ifnot_on_or_after && now >= (not_on_or_after + allowed_clock_drift)
197
199
returnappend_error("Current time is on or after NotOnOrAfter (#{now} >= #{not_on_or_after}#{" + #{allowed_clock_drift.ceil}s"ifallowed_clock_drift > 0})")
0 commit comments