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 +4 -4
- data/lib/saml/kit/builders/assertion.rb +8 -4
- data/lib/saml/kit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 125a2e6ca5411fe3311326b6b384b12ca154641189e8154671f99d7d773126a9
|
4
|
+
data.tar.gz: a6caa6b5c45cd823f8c2173c274a09cb4623d47056176c627e05641a99e42035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = {
|
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:
|
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
|
data/lib/saml/kit/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|