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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41bbe3547b557d22f9624734a120bc288a829c71bc93192265f301e319dbd5d4
4
- data.tar.gz: 539fecf6754e8eb67f0a7883da478f872170adb6bbebc539b1b8274f2a9d62f0
3
+ metadata.gz: 55533de875ab34672276d744b41c7530ba9c2ae66acc6c54e447f6724aa90bf0
4
+ data.tar.gz: 85b191a2b6c42efc95e7a11894e7a01a4c0af32087b467b151e6a71d26e775ca
5
5
  SHA512:
6
- metadata.gz: c1e8ab017fccd80803230566d262d257f925739f8c4b6e24feb295cfe43574219860bc1fb7120dfa6125dc1b0e652cfef49a7849886729db78d28f3d7ef01d3f
7
- data.tar.gz: 714f47f1da6802142227ff6f3d4b99b8342e241ad235cf59c8f38231105994db1d1b48ff6598760f1ffee2b44ab3f243d30018261ecbd6aacd01dea95f54590c
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
- find_key_descriptors_by_use('signing').collect(&:certificate)
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
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = '3.13.0'.freeze
2
+ VERSION = '3.13.1'.freeze
3
3
  end
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport