ruby-saml-bm 0.6.8 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -156,7 +156,8 @@ module Onelogin
|
|
156
156
|
return true if options[:skip_conditions]
|
157
157
|
|
158
158
|
if not_before = parse_time(conditions, "NotBefore")
|
159
|
-
|
159
|
+
# adding one minute offset to avoid possible time drift between ADFS server and Redmine's server.
|
160
|
+
if Time.now.utc + 60 < not_before
|
160
161
|
return soft ? false : validation_error("Current time is earlier than NotBefore condition")
|
161
162
|
end
|
162
163
|
end
|