ruby-saml 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ruby-saml might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f485d8f86fc7bab5dccd17139c2b4c47f06d2ca7
4
- data.tar.gz: b01df64b87b3eb6f6765960dc8bc4a5f7c4349dc
5
- SHA512:
6
- metadata.gz: 88de3d60dadfb99be4e9158aaedae71165144150b8f88104c2cc130567ca61f859eebf0ca39ca44f4da56dbd1f36f2bfb8cbb66e2337a4da8cb3359703432cef
7
- data.tar.gz: 2c4fce97b7b9ff0c4763199dd6b0a3f926fcc349617e5d2b5b717f5a131856fa2736ba85992ecf9a256801875ff6e919961363a1031652c52a1d80b2b742d66e
1
+ ---
2
+ SHA512:
3
+ metadata.gz: 8489326fd3207aa709c005557141665444ef5653c4850520908e7bbc16cb8cb6529fe6bf7d85ee7cb7f896a441ac078fa8eca87341c1737bbb8cc2c6a1712e54
4
+ data.tar.gz: dc7006007ed9e9bfa190401c4e003992ff66786854dfac4725b956714281eba2503d83814653674f171a02885c136adc078d5c13e3d6277f9677989591c6d375
5
+ SHA256:
6
+ metadata.gz: 024d00094972f6386863705f834f4ecb2c4e42d5b462181573151493211cfd52
7
+ data.tar.gz: 7346f35e9750a26de6b4d1079817ef148945c4949bdaa05ba0249e72ecac0a64
data/.travis.yml CHANGED
@@ -2,4 +2,10 @@ language: ruby
2
2
  rvm:
3
3
  - 1.8.7
4
4
  - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.0
5
7
  - ree
8
+
9
+ before_install:
10
+ - gem update --system 2.1.11
11
+ - gem install bundler -v 1.11.2
data/Gemfile CHANGED
@@ -22,6 +22,6 @@ group :test do
22
22
  gem 'rake', '~> 10'
23
23
  gem 'shoulda', '~> 2.11'
24
24
  gem 'systemu', '~> 2'
25
- gem 'test-unit', '~> 3'
25
+ gem 'test-unit', '~> 3.0.9'
26
26
  gem 'timecop', '<= 0.6.0'
27
27
  end
@@ -21,7 +21,11 @@ module OneLogin
21
21
  Logging.debug "Created AuthnRequest: #{request}"
22
22
 
23
23
  request = Zlib::Deflate.deflate(request, 9)[2..-5] if settings.compress_request
24
- base64_request = Base64.encode64(request)
24
+ if Base64.respond_to?('strict_encode64')
25
+ base64_request = Base64.strict_encode64(request)
26
+ else
27
+ base64_request = Base64.encode64(request).gsub(/\n/, "")
28
+ end
25
29
  encoded_request = CGI.escape(base64_request)
26
30
  params_prefix = (settings.idp_sso_target_url =~ /\?/) ? '&' : '?'
27
31
  request_params = "#{params_prefix}SAMLRequest=#{encoded_request}"
@@ -20,7 +20,11 @@ module OneLogin
20
20
  request_doc.write(request)
21
21
 
22
22
  deflated_request = Zlib::Deflate.deflate(request, 9)[2..-5]
23
- base64_request = Base64.encode64(deflated_request)
23
+ if Base64.respond_to?('strict_encode64')
24
+ base64_request = Base64.strict_encode64(deflated_request)
25
+ else
26
+ base64_request = Base64.encode64(deflated_request).gsub(/\n/, "")
27
+ end
24
28
  encoded_request = CGI.escape(base64_request)
25
29
 
26
30
  params_prefix = (settings.idp_slo_target_url =~ /\?/) ? '&' : '?'
@@ -1,5 +1,5 @@
1
1
  module OneLogin
2
2
  module RubySaml
3
- VERSION = '0.8.4'
3
+ VERSION = '0.8.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,54 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-saml
3
- version: !ruby/object:Gem::Version
4
- version: 0.8.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.5
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - OneLogin LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-05 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2018-09-12 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: uuid
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.3'
20
- type: :runtime
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '2.3'
27
- - !ruby/object:Gem::Dependency
28
- name: nokogiri
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.5.0
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: "2.3"
34
22
  type: :runtime
23
+ version_requirements: *id001
24
+ - !ruby/object:Gem::Dependency
25
+ name: nokogiri
35
26
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
27
+ requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
38
29
  - - ">="
39
- - !ruby/object:Gem::Version
30
+ - !ruby/object:Gem::Version
40
31
  version: 1.5.0
32
+ type: :runtime
33
+ version_requirements: *id002
41
34
  description: SAML toolkit for Ruby on Rails
42
35
  email: support@onelogin.com
43
36
  executables: []
37
+
44
38
  extensions: []
45
- extra_rdoc_files:
39
+
40
+ extra_rdoc_files:
46
41
  - LICENSE
47
42
  - README.md
48
- files:
49
- - ".document"
50
- - ".gitignore"
51
- - ".travis.yml"
43
+ files:
44
+ - .document
45
+ - .gitignore
46
+ - .travis.yml
52
47
  - Gemfile
53
48
  - LICENSE
54
49
  - README.md
@@ -103,29 +98,31 @@ files:
103
98
  - test/xml_security_test.rb
104
99
  homepage: http://github.com/onelogin/ruby-saml
105
100
  licenses: []
101
+
106
102
  metadata: {}
103
+
107
104
  post_install_message:
108
- rdoc_options:
109
- - "--charset=UTF-8"
110
- require_paths:
105
+ rdoc_options:
106
+ - --charset=UTF-8
107
+ require_paths:
111
108
  - lib
112
- required_ruby_version: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '0'
117
- required_rubygems_version: !ruby/object:Gem::Requirement
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: '0'
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - &id003
112
+ - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: "0"
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - *id003
122
118
  requirements: []
119
+
123
120
  rubyforge_project: http://www.rubygems.org/gems/ruby-saml
124
- rubygems_version: 2.4.8
121
+ rubygems_version: 2.7.7
125
122
  signing_key:
126
123
  specification_version: 4
127
124
  summary: SAML Ruby Tookit
128
- test_files:
125
+ test_files:
129
126
  - test/certificates/certificate1
130
127
  - test/certificates/r1_certificate2_base64
131
128
  - test/logoutrequest_test.rb