ruby-saml-bm 0.6.8 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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
|