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 +4 -4
- data/CHANGELOG.md +9 -1
- data/auth0.gemspec +1 -1
- data/lib/auth0/exception.rb +1 -1
- data/lib/auth0/mixins/httpproxy.rb +4 -1
- data/lib/auth0/version.rb +1 -1
- data/spec/lib/auth0/mixins/httpproxy_spec.rb +8 -8
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65e850e90fba56319b9629b53159529ba450c62633e0f3f32330d917922358fc
|
4
|
+
data.tar.gz: a7b19d7a9128b409e457e670b9b3ae8882b3fe2cc62978d18c3361b4bcaa85d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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'
|
data/lib/auth0/exception.rb
CHANGED
@@ -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
|
-
|
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
@@ -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
|
-
|
108
|
-
|
109
|
-
|
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
|
-
|
196
|
-
|
197
|
-
|
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.
|
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-
|
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.
|
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.
|
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
|
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:
|