saml2 1.1.1 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 788b9842bac7051e976ef2a7360d488f2a0249e1
4
- data.tar.gz: 4c654aedef625b8c7ac918775158174406b570cd
3
+ metadata.gz: e9d996f11bd3487fb05717ee44ac9722adfb5ba4
4
+ data.tar.gz: aa9adf5fe119842b4755ef610f7f33e86f80eec8
5
5
  SHA512:
6
- metadata.gz: 70b0409bc9a42a6c4786f5de2c3dfc09a18dc518e290fe450f3874695876c8f3ffb41e4baa59e0850c1af43a8f1aecc6a0978ec047f18c7d8b7d9407e5c6beb4
7
- data.tar.gz: 802adedaadd6e2c033b4d6c7ec4e9d97fd7426bc8e7244ccd253cddbe89762466c03d59e0af98b7ca33f021abf42b8b1337ba537d703cd3e4e00bf4a2f78acf2
6
+ metadata.gz: 15210d0bd40590c747117762092c5372471cffdb88c92293d6f887aa6e4a61791d9562eb49c9e8cab5caba658cbe7e69b0225eda0fec0c8d2a19f1c94c491796
7
+ data.tar.gz: 6ccba6aea9ed36a306d70c6803fadd3538c88935971bc6a6062fd5779ea638b12cb4c98fdfc40dc69357ff3e0d3bb4cce6558ec570ff4bd16160214763b8f027
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SAML2
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
@@ -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.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-08 00:00:00.000000000 Z
11
+ date: 2017-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri