saml2 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml2/authn_request.rb +1 -1
- data/lib/saml2/version.rb +1 -1
- data/spec/lib/authn_request_spec.rb +6 -0
- 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: e9d996f11bd3487fb05717ee44ac9722adfb5ba4
|
4
|
+
data.tar.gz: aa9adf5fe119842b4755ef610f7f33e86f80eec8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15210d0bd40590c747117762092c5372471cffdb88c92293d6f887aa6e4a61791d9562eb49c9e8cab5caba658cbe7e69b0225eda0fec0c8d2a19f1c94c491796
|
7
|
+
data.tar.gz: 6ccba6aea9ed36a306d70c6803fadd3538c88935971bc6a6062fd5779ea638b12cb4c98fdfc40dc69357ff3e0d3bb4cce6558ec570ff4bd16160214763b8f027
|
data/lib/saml2/authn_request.rb
CHANGED
@@ -15,7 +15,7 @@ module SAML2
|
|
15
15
|
class AuthnRequest < Request
|
16
16
|
# deprecated; takes _just_ the SAMLRequest parameter's value
|
17
17
|
def self.decode(authnrequest)
|
18
|
-
result, _relay_state = Bindings::HTTPRedirect.decode("http://host/?SAMLRequest=#{authnrequest}")
|
18
|
+
result, _relay_state = Bindings::HTTPRedirect.decode("http://host/?SAMLRequest=#{CGI.escape(authnrequest)}")
|
19
19
|
return nil unless result.is_a?(AuthnRequest)
|
20
20
|
result
|
21
21
|
rescue CorruptMessage
|
data/lib/saml2/version.rb
CHANGED
@@ -15,6 +15,12 @@ module SAML2
|
|
15
15
|
authnrequest = AuthnRequest.decode('abc')
|
16
16
|
expect(authnrequest.valid_schema?).to eq false
|
17
17
|
end
|
18
|
+
|
19
|
+
it "properly handles authnrequests that have pluses in them" do
|
20
|
+
samlrequest = "hZJbU8IwEIX/Smbfe6H1mqE4COPIDGoHqg++hXShmWkTzKao/95QQNEHfN09J2f32/RvPpqabdCSMjqDXhgDQy1NqfQqg+fiLriCm0GfRFMnaz5sXaVn+NYiOeaNmviuk0FrNTeCFHEtGiTuJJ8PH6Y8CWO+tsYZaWpgQyK0zkeNjKa2QTtHu1ESn2fTDCrn1sSjSJqmabVyn6EUeiOobij0tWgbFREZYGOfr7Rw3cwHm+/8MWwHSKKpWSkN7M5Yid0CGSxFTQhsMs5ApCotqzKRWEmxqha91VVVxvIMy1TGl8qLKBdEaoM/NqIWJ5qc0C6DJO5dBvFFkJwVvXOepDy9DtPr+BVYvl/7VukdzlOMFjsR8fuiyIP8aV4AezmcxQtgfwTepdtj+qcfFgfkMPgHcD86Tvg++qN/cjLOTa3kJxvWtXkfWRTO83C2xQ5sI9zpIbYVVQbLTsrX273IoXYQDfapvz/X4As="
|
21
|
+
authnrequest = AuthnRequest.decode(samlrequest)
|
22
|
+
expect(authnrequest.valid_schema?).to eq true
|
23
|
+
end
|
18
24
|
end
|
19
25
|
|
20
26
|
it "should be valid" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saml2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|