auth0 5.1.1 → 5.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6363fb309ed21f92b00feb47e3df1a870fb5bdec7e6786eafb436d6c93249afd
4
- data.tar.gz: d45130f889436020fea8acb76385fa4a5f884b8c04cda38345ccb06b4408699d
3
+ metadata.gz: 65e850e90fba56319b9629b53159529ba450c62633e0f3f32330d917922358fc
4
+ data.tar.gz: a7b19d7a9128b409e457e670b9b3ae8882b3fe2cc62978d18c3361b4bcaa85d4
5
5
  SHA512:
6
- metadata.gz: c736ed7cc86e68643659bec55bca8b26e5a2262f0a1c81547c505c3e9375698a24e4094a72f08412fb6962abe3717c3055bb5ad7c86a91626e1e9585e102a27d
7
- data.tar.gz: f201783d610980d679e5c13741c278acd070060f917b4015dc098e2c56c81b265ef3a1e3901849a6662ba97c8627b95b80337e9562461cf825baaa6eec64b7f6
6
+ metadata.gz: 98fa29ea9c5cbfb1c7918566b1569630af21ff0f078ebcd990131ed1a70352d1b53f70cb033038fb28d6a5a9d89a445bc29a2e6b31c2e7f14193bcd8b4ccf9f3
7
+ data.tar.gz: 5059fbdf9fbe8b84118b224945b4abac252744c6af58ef1aa2efba99301c410016d9196502d277714d76786907a2cae352d3f9ab81987879410fa03aa5f40712
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Change Log
2
2
 
3
- ## [v5.1.01(https://github.com/auth0/ruby-auth0/tree/v5.1.1) (2021-04-14)
3
+ ## [v5.1.2](https://github.com/auth0/ruby-auth0/tree/v5.1.2) (2021-07-15)
4
+
5
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.1.1..v5.1.2)
6
+
7
+ **Security**
8
+
9
+ - Bump addressable version per CVE-2021-32740 [\#276](https://github.com/auth0/ruby-auth0/pull/276) ([lostapathy](https://github.com/lostapathy))
10
+
11
+ ## [v5.1.1](https://github.com/auth0/ruby-auth0/tree/v5.1.1) (2021-04-14)
4
12
 
5
13
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.1.0..v5.1.1)
6
14
 
data/auth0.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.add_runtime_dependency 'rest-client', '~> 2.0.0'
20
20
  s.add_runtime_dependency 'jwt', '~> 2.2.0'
21
21
  s.add_runtime_dependency 'zache', '~> 0.12.0'
22
- s.add_runtime_dependency 'addressable', '~> 2.7.0'
22
+ s.add_runtime_dependency 'addressable', '~> 2.8.0'
23
23
 
24
24
  s.add_development_dependency 'bundler'
25
25
  s.add_development_dependency 'rake', '~> 13.0'
@@ -53,7 +53,7 @@ module Auth0
53
53
  # Auth0 API rate-limiting encountered
54
54
  class RateLimitEncountered < Auth0::HTTPError
55
55
  def reset
56
- Time.at(headers['X-RateLimit-Reset']).utc
56
+ Time.at(Integer(headers[:x_ratelimit_reset])).utc
57
57
  end
58
58
  end
59
59
 
@@ -26,7 +26,10 @@ module Auth0
26
26
  call(:delete, url(safe_path), timeout, headers, body.to_json)
27
27
  elsif method == :post_file
28
28
  body.merge!(multipart: true)
29
- call(:post, url(safe_path), timeout, headers, body)
29
+ # Ignore the default Content-Type headers and let the HTTP client define them
30
+ post_file_headers = headers.slice(*headers.keys - ['Content-Type'])
31
+ # Actual call with the altered headers
32
+ call(:post, url(safe_path), timeout, post_file_headers, body)
30
33
  else
31
34
  call(method, url(safe_path), timeout, headers, body.to_json)
32
35
  end
data/lib/auth0/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # current version of gem
2
2
  module Auth0
3
- VERSION = '5.1.1'.freeze
3
+ VERSION = '5.1.2'.freeze
4
4
  end
@@ -104,9 +104,9 @@ describe Auth0::Mixins::HTTPProxy do
104
104
  it "should raise Auth0::RateLimitEncountered on send http #{http_method} method
105
105
  to path defined through HTTP when 429 recieved" do
106
106
  headers = {
107
- 'X-RateLimit-Limit' => 10,
108
- 'X-RateLimit-Remaining' => 0,
109
- 'X-RateLimit-Reset' => 1560564149
107
+ :x_ratelimit_limit => 10,
108
+ :x_ratelimit_remaining => 0,
109
+ :x_ratelimit_reset => 1560564149
110
110
  }
111
111
  @exception.response = StubResponse.new({}, false, 429, headers)
112
112
  allow(RestClient::Request).to receive(:execute).with(method: http_method,
@@ -127,7 +127,7 @@ describe Auth0::Mixins::HTTPProxy do
127
127
  reset: Time.at(1560564149)
128
128
  )
129
129
  }
130
- end
130
+ end
131
131
 
132
132
  it "should raise Auth0::ServerError on send http #{http_method} method
133
133
  to path defined through HTTP when 500 received" do
@@ -188,13 +188,13 @@ describe Auth0::Mixins::HTTPProxy do
188
188
  .and_raise(@exception)
189
189
  expect { @instance.send(http_method, '/test') }.to raise_error(Auth0::Unauthorized)
190
190
  end
191
-
191
+
192
192
  it "should raise Auth0::RateLimitEncountered on send http #{http_method} method
193
193
  to path defined through HTTP when 429 status received" do
194
194
  headers = {
195
- 'X-RateLimit-Limit' => 10,
196
- 'X-RateLimit-Remaining' => 0,
197
- 'X-RateLimit-Reset' => 1560564149
195
+ :x_ratelimit_limit => 10,
196
+ :x_ratelimit_remaining => 0,
197
+ :x_ratelimit_reset => 1560564149
198
198
  }
199
199
  @exception.response = StubResponse.new({}, false, 429,headers)
200
200
  allow(RestClient::Request).to receive(:execute).with(method: http_method,
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
8
8
  - Jose Romaniello
9
9
  - Ivan Petroe
10
10
  - Patrik Ragnarsson
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-04-15 00:00:00.000000000 Z
14
+ date: 2021-07-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
@@ -61,14 +61,14 @@ dependencies:
61
61
  requirements:
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: 2.7.0
64
+ version: 2.8.0
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: 2.7.0
71
+ version: 2.8.0
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: bundler
74
74
  requirement: !ruby/object:Gem::Requirement
@@ -621,7 +621,7 @@ homepage: https://github.com/auth0/ruby-auth0
621
621
  licenses:
622
622
  - MIT
623
623
  metadata: {}
624
- post_install_message:
624
+ post_install_message:
625
625
  rdoc_options: []
626
626
  require_paths:
627
627
  - lib
@@ -636,8 +636,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
636
636
  - !ruby/object:Gem::Version
637
637
  version: '0'
638
638
  requirements: []
639
- rubygems_version: 3.2.16
640
- signing_key:
639
+ rubygems_version: 3.1.2
640
+ signing_key:
641
641
  specification_version: 4
642
642
  summary: Auth0 API Client
643
643
  test_files: