ruby-saml-bm 0.6.2 → 0.6.3

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.
@@ -1,5 +1,5 @@
1
1
  module Onelogin
2
2
  module Saml
3
- VERSION = '0.6.2'
3
+ VERSION = '0.6.3'
4
4
  end
5
5
  end
data/lib/xml_security.rb CHANGED
@@ -80,7 +80,7 @@ module XMLSecurity
80
80
  signed_info_element = REXML::XPath.first(sig_element, "//ds:SignedInfo", {"ds"=>DSIG})
81
81
  self.noko_sig_element ||= document.at_xpath('//ds:Signature', 'ds' => DSIG)
82
82
  noko_signed_info_element = noko_sig_element.at_xpath('./ds:SignedInfo', 'ds' => DSIG)
83
- canon_algorithm = canon_algorithm REXML::XPath.first(sig_element, '//ds:CanonicalizationMethod')
83
+ canon_algorithm = canon_algorithm REXML::XPath.first(sig_element, '//ds:CanonicalizationMethod', 'ds' => DSIG)
84
84
  canon_string = noko_signed_info_element.canonicalize(canon_algorithm)
85
85
  noko_sig_element.remove
86
86
 
@@ -89,7 +89,8 @@ module XMLSecurity
89
89
  uri = ref.attributes.get_attribute("URI").value
90
90
 
91
91
  hashed_element = document.at_xpath("//*[@ID='#{uri[1..-1]}']")
92
- canon_algorithm = canon_algorithm REXML::XPath.first(ref, '//ds:CanonicalizationMethod')
92
+
93
+ n_algorithm = canon_algorithm REXML::XPath.first(ref, '//ds:CanonicalizationMethod', 'ds' => DSIG)
93
94
  canon_hashed_element = hashed_element.canonicalize(canon_algorithm, inclusive_namespaces).gsub('&','&')
94
95
 
95
96
  digest_algorithm = algorithm(REXML::XPath.first(ref, "//ds:DigestMethod"))
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: ruby-saml-bm
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.2
5
+ version: 0.6.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Extreme Development
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-30 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: canonix
@@ -71,7 +71,6 @@ extra_rdoc_files:
71
71
  files:
72
72
  - .gitignore
73
73
  - Gemfile
74
- - Gemfile.lock
75
74
  - LICENSE
76
75
  - README.md
77
76
  - Rakefile
@@ -89,7 +88,6 @@ files:
89
88
  - lib/schemas/xenc_schema.xsd
90
89
  - lib/schemas/xmldsig_schema.xsd
91
90
  - lib/xml_security.rb
92
- - ruby-saml-bm-0.6.1.gem
93
91
  - ruby-saml-bm.gemspec
94
92
  - test/certificates/certificate1
95
93
  - test/logoutrequest_test.rb
data/Gemfile.lock DELETED
@@ -1,51 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ruby-saml-bm (0.6.0)
5
- canonix (= 0.1.1)
6
- nokogiri
7
- uuid (~> 2.3)
8
-
9
- GEM
10
- remote: http://rubygems.org/
11
- specs:
12
- activesupport (3.2.9)
13
- i18n (~> 0.6)
14
- multi_json (~> 1.0)
15
- canonix (0.1.1)
16
- columnize (0.3.6)
17
- i18n (0.6.1)
18
- macaddr (1.6.1)
19
- systemu (~> 2.5.0)
20
- metaclass (0.0.1)
21
- mocha (0.13.0)
22
- metaclass (~> 0.0.1)
23
- multi_json (1.3.7)
24
- nokogiri (1.5.5)
25
- nokogiri (1.5.5-java)
26
- rake (10.0.2)
27
- ruby-debug (0.10.4)
28
- columnize (>= 0.1)
29
- ruby-debug-base (~> 0.10.4.0)
30
- ruby-debug-base (0.10.4-java)
31
- shoulda (3.3.2)
32
- shoulda-context (~> 1.0.1)
33
- shoulda-matchers (~> 1.4.1)
34
- shoulda-context (1.0.1)
35
- shoulda-matchers (1.4.1)
36
- activesupport (>= 3.0.0)
37
- systemu (2.5.2)
38
- uuid (2.3.6)
39
- macaddr (~> 1.0)
40
-
41
- PLATFORMS
42
- java
43
-
44
- DEPENDENCIES
45
- debugger (~> 1.1.1)
46
- mocha
47
- nokogiri
48
- rake
49
- ruby-debug (~> 0.10.4)
50
- ruby-saml-bm!
51
- shoulda
Binary file