libsaml 2.21.0 → 2.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/saml/provider.rb +6 -1
- data/lib/saml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37ed104b474d7defa9f00a4a87b35ebfb1a38f08
|
4
|
+
data.tar.gz: a9afefb3cf58dab63370fe193b5df8eb912eae97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25ab66cc4b92fcaaeabdb69462f0156e2ae7b7709d71a906f077be25ea65d8aa7a92eda1e76eedd4c8a9aad8ae92d28f638118b1597401eda7b53218675650e6
|
7
|
+
data.tar.gz: 225f8901f40605f04df33e355606613d300c8b927fbf0bae685da30c19f6e9c57aa09ab8b48072484bff99d8b051872e0519f9ff3742777621bafc54b7c68998
|
data/lib/saml/provider.rb
CHANGED
@@ -89,7 +89,12 @@ module Saml
|
|
89
89
|
end
|
90
90
|
|
91
91
|
def verify(signature_algorithm, signature, data, key_name = nil)
|
92
|
-
certificate(key_name).public_key.verify(digest_method(signature_algorithm).new, signature, data) rescue nil
|
92
|
+
valid = certificate(key_name).public_key.verify(digest_method(signature_algorithm).new, signature, data) rescue nil
|
93
|
+
|
94
|
+
# Clear OpenSSL error queue if verification fails - https://bugs.ruby-lang.org/issues/7215
|
95
|
+
OpenSSL.errors if !valid
|
96
|
+
|
97
|
+
valid
|
93
98
|
end
|
94
99
|
|
95
100
|
def authn_requests_signed?
|
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: 2.21.
|
4
|
+
version: 2.21.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: 2016-
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|