Commit 0fef1d4
Changed files (2)
lib
saml
lib/saml/kit/assertion.rb
@@ -36,7 +36,8 @@ module Saml
end
def active?(now = Time.current)
- now > configuration.clock_drift.seconds.before(started_at) && !expired?
+ drifted_started_at = started_at - configuration.clock_drift.to_i.seconds
+ now > drifted_started_at && !expired?
end
def attributes
lib/saml/kit/version.rb
@@ -1,5 +1,5 @@
module Saml
module Kit
- VERSION = "1.0.4"
+ VERSION = "1.0.5"
end
end