saml2 2.2.6 → 2.2.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8318513e7a7412620681db32ff8ed52da989a2baff58c2f672a7d06729b4548e
4
- data.tar.gz: be9418a2a6677af6e5f59e91fe55280090300739767d220e8b189fa92b7d416e
3
+ metadata.gz: f95046518e86db9aca974fb6de4d3ce9da5d74dbd057a7cb72835404506f0e16
4
+ data.tar.gz: c2ee8956692d288bb2f1f1de24b5116ff9a79e441d6ad19bc6d2cb47a60923eb
5
5
  SHA512:
6
- metadata.gz: a79336adc521de7e9c56f6172d70dfb5cf1676592ba4d9dcedae07c286acafc7e968570b5c0cdf59ce4ec2e97ed25994299e91cae211656e3a54daa72553cdfe
7
- data.tar.gz: ecbc5b37f7fa682d71bb9488933f141454ed2777a0d0e0395bdf74b55b3868199b004fdca07210512a9da306e4ca5e66e0a85babd23b8a04e1155922a08b2d9b
6
+ metadata.gz: bc8d753aa0e783a6f104b6e8eb33f40f06438e955f4e9b71323cc22c15d1ac3e604130a77293e2e67b7dad9cc7669bfce07a8ee35bd0216f52ed11cfb24620eb
7
+ data.tar.gz: 54d210d78f6b28627595f7fff05dcc469d4694d3a154ea05a451ff9f8ec9c1a9ba41274593ebfac6fded65852e12068611d7a14f6424d85ea37b39d6bcc6f8f7
@@ -46,10 +46,10 @@ module SAML2
46
46
  def validate(verification_time: Time.now.utc, **options)
47
47
  options[:verification_time] ||= verification_time
48
48
  errors = []
49
- if not_before && verification_time < not_before
49
+ if not_before && verification_time < not_before - 5
50
50
  errors << "not_before #{not_before} is later than now (#{verification_time})"
51
51
  end
52
- if not_on_or_after && verification_time >= not_on_or_after
52
+ if not_on_or_after && verification_time >= not_on_or_after + 5
53
53
  errors << "not_on_or_after #{not_on_or_after} is earlier than now (#{verification_time})"
54
54
  end
55
55
 
data/lib/saml2/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SAML2
4
- VERSION = '2.2.6'
4
+ VERSION = '2.2.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri