libsaml 3.13.0 → 3.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml/complex_types/role_descriptor_type.rb +2 -2
- data/lib/saml/provider.rb +5 -1
- data/lib/saml/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: 55533de875ab34672276d744b41c7530ba9c2ae66acc6c54e447f6724aa90bf0
|
4
|
+
data.tar.gz: 85b191a2b6c42efc95e7a11894e7a01a4c0af32087b467b151e6a71d26e775ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f047a66fe5379de333009a8c070b1180652de32c7d273497676d6b5541f969bf8a1cda11a177fe16e7e39f788c4953f93140157e5667f7b6580ca3d2e539137
|
7
|
+
data.tar.gz: f25ebbe3da70e8c681eba7b3e8aa61058d079d2873609acdd2506b270483d7b5a1c632c502da8cb73d1f708acfd051399ab1cf2d8b0d4cc15cf20e059756a468
|
@@ -42,12 +42,12 @@ module Saml
|
|
42
42
|
key_descriptors.select { |key| key.use == use }
|
43
43
|
end
|
44
44
|
|
45
|
-
private
|
46
|
-
|
47
45
|
def find_key_descriptors_by_use_or_without(use)
|
48
46
|
key_descriptors.select { |key| key.use == use || key.use.blank? }
|
49
47
|
end
|
50
48
|
|
49
|
+
private
|
50
|
+
|
51
51
|
def key_name_or_use_specified?
|
52
52
|
key_descriptors.any? { |key| key.use.present? || key.key_info.key_name.present? }
|
53
53
|
end
|
data/lib/saml/provider.rb
CHANGED
@@ -50,6 +50,10 @@ module Saml
|
|
50
50
|
descriptor(type).find_key_descriptors_by_use(use)
|
51
51
|
end
|
52
52
|
|
53
|
+
def find_key_descriptors_by_use_or_without(use, type = :descriptor)
|
54
|
+
descriptor(type).find_key_descriptors_by_use_or_without(use)
|
55
|
+
end
|
56
|
+
|
53
57
|
def signing_key
|
54
58
|
@signing_key || encryption_key
|
55
59
|
end
|
@@ -89,7 +93,7 @@ module Saml
|
|
89
93
|
|
90
94
|
def verify(signature_algorithm, signature, data, key_name = nil)
|
91
95
|
certificates = if key_name.blank? && iterate_certificates_until_verified?
|
92
|
-
|
96
|
+
find_key_descriptors_by_use_or_without('signing').collect(&:certificate)
|
93
97
|
else
|
94
98
|
Array(certificate(key_name))
|
95
99
|
end
|
data/lib/saml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libsaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.13.
|
4
|
+
version: 3.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist Claassen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|