saml-kit 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7de3914506e622094ea275f1f1f98a0994931ab9779df6e58c47387558be511b
4
- data.tar.gz: ea5497e11c1490e189a391354bfa8cc958ce758942cba8f139c3fc29540cf2ba
3
+ metadata.gz: 125a2e6ca5411fe3311326b6b384b12ca154641189e8154671f99d7d773126a9
4
+ data.tar.gz: a6caa6b5c45cd823f8c2173c274a09cb4623d47056176c627e05641a99e42035
5
5
  SHA512:
6
- metadata.gz: 0cdd0a19b09784a1987cc9e16e98498ad6411b9b9f17bd31aaef0c4436de6dd0b8b543ee096eb7fa56abfddc9fdb55fb626abd55a44b6bd53b52e312fd14cd51
7
- data.tar.gz: c79384552443f04600c30ff75f617ad88e3d3b3835e206299a99d8b773a57b20200e6f1f36ec206a0af6838cb97a50aacca9873302004e8ed7b2608ea0489b6f
6
+ metadata.gz: 16bf24aa308395aed4f74ad9dda46802d8cdb5659448fca0fe2c258ba5973d784ac37338c238b16835d6a34bc15223b89b2216416b04d985223a279ead5c92f0
7
+ data.tar.gz: 39542cb68f6668d8fffbdabc5fcb975ca2a1d99d03001c647b36296e5b6699e28cf7f844ad2056fdc716b08d9eaa6864fdaefa13165737ab1b86e983ff49801d
@@ -50,16 +50,17 @@ module Saml
50
50
  end
51
51
 
52
52
  def subject_confirmation_data_options
53
- options = { NotOnOrAfter: 3.hours.since(now).utc.iso8601 }
54
- options[:Recipient] = destination if destination.present?
53
+ options = {}
55
54
  options[:InResponseTo] = request.id if request.present?
55
+ options[:NotOnOrAfter] = (not_on_or_after - 1.second).iso8601
56
+ options[:Recipient] = destination if destination.present?
56
57
  options
57
58
  end
58
59
 
59
60
  def conditions_options
60
61
  {
61
62
  NotBefore: now.utc.iso8601,
62
- NotOnOrAfter: configuration.session_timeout.since(now).utc.iso8601,
63
+ NotOnOrAfter: not_on_or_after.iso8601,
63
64
  }
64
65
  end
65
66
 
@@ -67,13 +68,16 @@ module Saml
67
68
  {
68
69
  AuthnInstant: now.iso8601,
69
70
  SessionIndex: reference_id,
70
- SessionNotOnOrAfter: configuration.session_timeout.since(now).utc.iso8601,
71
71
  }
72
72
  end
73
73
 
74
74
  def name_id_options
75
75
  { Format: name_id_format || default_name_id_format }
76
76
  end
77
+
78
+ def not_on_or_after
79
+ configuration.session_timeout.since(now).utc
80
+ end
77
81
  end
78
82
  end
79
83
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Saml
4
4
  module Kit
5
- VERSION = '1.0.19'.freeze
5
+ VERSION = '1.0.20'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.19
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-10 00:00:00.000000000 Z
11
+ date: 2018-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel