saml-kit 1.0.4 → 1.0.5
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/assertion.rb +2 -1
- data/lib/saml/kit/default_registry.rb +1 -0
- data/lib/saml/kit/namespaces.rb +26 -19
- data/lib/saml/kit/signature.rb +2 -0
- data/lib/saml/kit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2492d44c647c9dad4c879ad4c4ee0386a1ac47064ee1bd32361fd78a0dae463
|
4
|
+
data.tar.gz: 04d41916481b1b6c85ac10805bdf30f40fd516fa684575302f0bc5e0c8b282c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d0cfb62a014c2d7daa43f0f1018d440063c4ef6c4bfe011c11fccf59d7872a0939baa9451095b4237682c8c472d0bd54748a96d82faab0d7e8ef5a47b3cff1e
|
7
|
+
data.tar.gz: 2538d1eac3597a1c53b0d4b777cf93770e19b25fbaf8a6590ad0e926aec0d6f8e038cfa21b3247e53818f0c3c7d4f07f2c7d73f8c24060c35ca955a138110315
|
data/lib/saml/kit/assertion.rb
CHANGED
@@ -36,7 +36,8 @@ module Saml
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def active?(now = Time.current)
|
39
|
-
|
39
|
+
drifted_started_at = started_at - configuration.clock_drift.to_i.seconds
|
40
|
+
now > drifted_started_at && !expired?
|
40
41
|
end
|
41
42
|
|
42
43
|
def attributes
|
data/lib/saml/kit/namespaces.rb
CHANGED
@@ -1,25 +1,32 @@
|
|
1
1
|
module Saml
|
2
2
|
module Kit
|
3
3
|
module Namespaces
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
4
|
+
SAML_2_0 = "urn:oasis:names:tc:SAML:2.0"
|
5
|
+
SAML_1_1 = "urn:oasis:names:tc:SAML:1.1"
|
6
|
+
ATTR_NAME_FORMAT = "#{SAML_2_0}:attrname-format"
|
7
|
+
NAME_ID_FORMAT_1_1 = "#{SAML_1_1}:nameid-format"
|
8
|
+
NAME_ID_FORMAT_2_0 = "#{SAML_2_0}:nameid-format"
|
9
|
+
STATUS = "#{SAML_2_0}:status"
|
10
|
+
|
11
|
+
ASSERTION = "#{SAML_2_0}:assertion"
|
12
|
+
ATTR_SPLAT = "#{ATTR_NAME_FORMAT}:*"
|
13
|
+
BASIC = "#{ATTR_NAME_FORMAT}:basic"
|
14
|
+
BEARER = "#{SAML_2_0}:cm:bearer"
|
15
|
+
EMAIL_ADDRESS = "#{NAME_ID_FORMAT_1_1}:emailAddress"
|
16
|
+
INVALID_NAME_ID_POLICY = "#{STATUS}:InvalidNameIDPolicy"
|
17
|
+
METADATA = "#{SAML_2_0}:metadata"
|
18
|
+
PASSWORD = "#{SAML_2_0}:ac:classes:Password"
|
19
|
+
PASSWORD_PROTECTED = "#{SAML_2_0}:ac:classes:PasswordProtectedTransport"
|
20
|
+
PERSISTENT = "#{NAME_ID_FORMAT_2_0}:persistent"
|
21
|
+
PROTOCOL = "#{SAML_2_0}:protocol"
|
22
|
+
REQUESTER_ERROR = "#{STATUS}:Requester"
|
23
|
+
RESPONDER_ERROR = "#{STATUS}:Responder"
|
24
|
+
SUCCESS = "#{STATUS}:Success"
|
25
|
+
TRANSIENT = "#{NAME_ID_FORMAT_2_0}:transient"
|
26
|
+
UNSPECIFIED = "#{SAML_2_0}:consent:unspecified"
|
27
|
+
UNSPECIFIED_NAMEID = "#{NAME_ID_FORMAT_1_1}:unspecified"
|
28
|
+
URI = "#{ATTR_NAME_FORMAT}:uri"
|
29
|
+
VERSION_MISMATCH_ERROR = "#{STATUS}:VersionMismatch"
|
23
30
|
end
|
24
31
|
end
|
25
32
|
end
|
data/lib/saml/kit/signature.rb
CHANGED
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.5
|
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-02-
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
246
|
version: '0'
|
247
247
|
requirements: []
|
248
248
|
rubyforge_project:
|
249
|
-
rubygems_version: 2.7.
|
249
|
+
rubygems_version: 2.7.5
|
250
250
|
signing_key:
|
251
251
|
specification_version: 4
|
252
252
|
summary: A simple toolkit for working with SAML.
|