ruby-saml-mod 0.1.29 → 0.1.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/xml_sec.rb +5 -1
  3. data/ruby-saml-mod.gemspec +2 -2
  4. metadata +14 -18
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: de2dcfe3e3d9c2993dac7f1a06bc809fb52cfcf9
4
+ data.tar.gz: 3465736cf3a7146a3abd0b573e28ddeb3003f54d
5
+ SHA512:
6
+ metadata.gz: 7ad9d8d8e2c97650b4bae20abd37917c028b9c085aebd47a56e3c1b2c7aab8490db419d0f620a66622f9e0eb4cb0621f577d8f96b84b31c0d07fa07f819935f7
7
+ data.tar.gz: 18d63098d79fffee7efcfe843ea5585d2c2e57ba6f92091315de12390d717b475e4eb89b32587e902ee67c3893fdf1ace5898f313d0c44d1634dc36d25dbd5e2
data/lib/xml_sec.rb CHANGED
@@ -365,12 +365,16 @@ module XMLSecurity
365
365
 
366
366
  # create a copy of the document with the certificate removed
367
367
  doc = LibXML::XML::Document.new
368
+ doc.encoding = self.encoding == XML::Encoding::NONE ? XML::Encoding::ISO_8859_1 : self.encoding
368
369
  doc.root = doc.import(self.root)
369
370
  sigcert = doc.find_first("//ds:Signature/ds:KeyInfo", Onelogin::NAMESPACES)
370
371
  sigcert.remove!
371
372
 
373
+ # Force encoding of the xml and the xml string for validation
374
+ xml = doc.to_s(:indent => false, :encoding => doc.encoding).encode(doc.rb_encoding)
375
+
372
376
  # validate it!
373
- validate_doc(doc.to_s(:indent => false), SignedDocument.format_cert(cert))
377
+ validate_doc(xml, SignedDocument.format_cert(cert))
374
378
  end
375
379
 
376
380
  def validate_doc(xml, pem)
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{ruby-saml-mod}
3
- s.version = "0.1.29"
3
+ s.version = "0.1.30"
4
4
 
5
- s.authors = ["OneLogin LLC", "Bracken", "Zach", "Cody", "Jeremy", "Paul"]
5
+ s.authors = ["OneLogin LLC", "Bracken", "Zach", "Cody", "Jeremy", "Paul", "Nick"]
6
6
  s.date = %q{2014-05-05}
7
7
  s.extra_rdoc_files = [
8
8
  "LICENSE"
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-saml-mod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
5
- prerelease:
4
+ version: 0.1.30
6
5
  platform: ruby
7
6
  authors:
8
7
  - OneLogin LLC
@@ -11,6 +10,7 @@ authors:
11
10
  - Cody
12
11
  - Jeremy
13
12
  - Paul
13
+ - Nick
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
@@ -19,37 +19,33 @@ dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: libxml-ruby
21
21
  requirement: !ruby/object:Gem::Requirement
22
- none: false
23
22
  requirements:
24
- - - ! '>='
23
+ - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: 2.3.0
27
26
  type: :runtime
28
27
  prerelease: false
29
28
  version_requirements: !ruby/object:Gem::Requirement
30
- none: false
31
29
  requirements:
32
- - - ! '>='
30
+ - - ">="
33
31
  - !ruby/object:Gem::Version
34
32
  version: 2.3.0
35
33
  - !ruby/object:Gem::Dependency
36
34
  name: ffi
37
35
  requirement: !ruby/object:Gem::Requirement
38
- none: false
39
36
  requirements:
40
- - - ! '>='
37
+ - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: '0'
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
- none: false
47
43
  requirements:
48
- - - ! '>='
44
+ - - ">="
49
45
  - !ruby/object:Gem::Version
50
46
  version: '0'
51
- description: ! 'This is an early fork from https://github.com/onelogin/ruby-saml -
52
- I plan to "rebase" these changes ontop of their current version eventually. '
47
+ description: 'This is an early fork from https://github.com/onelogin/ruby-saml - I
48
+ plan to "rebase" these changes ontop of their current version eventually. '
53
49
  email:
54
50
  executables: []
55
51
  extensions: []
@@ -72,26 +68,26 @@ files:
72
68
  - ruby-saml-mod.gemspec
73
69
  homepage: http://github.com/bracken/ruby-saml
74
70
  licenses: []
71
+ metadata: {}
75
72
  post_install_message:
76
73
  rdoc_options: []
77
74
  require_paths:
78
75
  - lib
79
76
  required_ruby_version: !ruby/object:Gem::Requirement
80
- none: false
81
77
  requirements:
82
- - - ! '>='
78
+ - - ">="
83
79
  - !ruby/object:Gem::Version
84
80
  version: '0'
85
81
  required_rubygems_version: !ruby/object:Gem::Requirement
86
- none: false
87
82
  requirements:
88
- - - ! '>='
83
+ - - ">="
89
84
  - !ruby/object:Gem::Version
90
85
  version: '0'
91
86
  requirements: []
92
87
  rubyforge_project:
93
- rubygems_version: 1.8.23.2
88
+ rubygems_version: 2.2.2
94
89
  signing_key:
95
- specification_version: 3
90
+ specification_version: 4
96
91
  summary: Ruby library for SAML service providers
97
92
  test_files: []
93
+ has_rdoc: