auth0 5.1.2 → 5.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -0
  3. data/CHANGELOG.md +44 -0
  4. data/README.md +1 -0
  5. data/auth0.gemspec +7 -6
  6. data/lib/auth0/api/v2/branding.rb +0 -1
  7. data/lib/auth0/api/v2/connections.rb +5 -2
  8. data/lib/auth0/api/v2/device_credentials.rb +3 -3
  9. data/lib/auth0/api/v2/logs.rb +2 -2
  10. data/lib/auth0/api/v2/organizations.rb +19 -3
  11. data/lib/auth0/api/v2/roles.rb +7 -3
  12. data/lib/auth0/mixins/httpproxy.rb +71 -33
  13. data/lib/auth0/mixins/initializer.rb +1 -0
  14. data/lib/auth0/version.rb +1 -1
  15. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/_filters/should_exclude_the_fields_indicated.yml +38 -26
  16. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/_filters/should_include_the_fields_indicated.yml +38 -24
  17. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/should_find_the_correct_connection.yml +38 -26
  18. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_include_previously-created_connection_when_filtered.yml +41 -21
  19. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_should_exclude_the_fields_indicated_from_filtered_results.yml +41 -21
  20. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_should_include_the_fields_indicated_from_filtered_results.yml +41 -21
  21. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/should_include_the_previously_created_connection.yml +41 -21
  22. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/should_not_be_empty.yml +41 -21
  23. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_delete_connection/should_delete_the_connection.yml +45 -24
  24. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_delete_connection_user/should_delete_the_user_created.yml +75 -39
  25. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_update_connection/should_update_the_connection.yml +39 -28
  26. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/create_test_connection.yml +37 -25
  27. data/spec/lib/auth0/api/v2/connections_spec.rb +1 -1
  28. data/spec/lib/auth0/api/v2/device_credentials_spec.rb +2 -2
  29. data/spec/lib/auth0/api/v2/organizations_spec.rb +31 -6
  30. data/spec/lib/auth0/api/v2/roles_spec.rb +5 -1
  31. data/spec/lib/auth0/mixins/httpproxy_spec.rb +216 -25
  32. data/spec/lib/auth0/mixins/initializer_spec.rb +7 -0
  33. data/spec/support/dummy_class_for_proxy.rb +1 -2
  34. metadata +32 -23
  35. data/.yardoc/checksums +0 -22
  36. data/.yardoc/complete +0 -0
  37. data/.yardoc/object_types +0 -0
  38. data/.yardoc/objects/root.dat +0 -0
  39. data/.yardoc/proxy_types +0 -0
@@ -26,5 +26,12 @@ describe Auth0::Mixins::Initializer do
26
26
 
27
27
  expect(instance.instance_variable_get('@token')).to eq('123')
28
28
  end
29
+
30
+ it 'sets retry_count when passed' do
31
+ params[:token] = '123'
32
+ params[:retry_count] = 10
33
+
34
+ expect(instance.instance_variable_get('@retry_count')).to eq(10)
35
+ end
29
36
  end
30
37
  end
@@ -1,5 +1,4 @@
1
1
  class DummyClassForProxy
2
2
  include Auth0::Mixins::HTTPProxy
3
3
  include Auth0::Mixins::Headers
4
- @base_uri = 'http://auth0.com'
5
- end
4
+ end
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.2
4
+ version: 5.5.0
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-07-15 00:00:00.000000000 Z
14
+ date: 2021-08-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
@@ -19,56 +19,70 @@ dependencies:
19
19
  requirements:
20
20
  - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: 2.0.0
22
+ version: 2.0.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.0
29
+ version: 2.0.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: jwt
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - "~>"
35
35
  - !ruby/object:Gem::Version
36
- version: 2.2.0
36
+ version: '2.2'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: 2.2.0
43
+ version: '2.2'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: zache
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - "~>"
49
49
  - !ruby/object:Gem::Version
50
- version: 0.12.0
50
+ version: '0.12'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: 0.12.0
57
+ version: '0.12'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: addressable
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: 2.8.0
64
+ version: '2.8'
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.8.0
71
+ version: '2.8'
72
+ - !ruby/object:Gem::Dependency
73
+ name: retryable
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '3.0'
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '3.0'
72
86
  - !ruby/object:Gem::Dependency
73
87
  name: bundler
74
88
  requirement: !ruby/object:Gem::Requirement
@@ -159,14 +173,14 @@ dependencies:
159
173
  requirements:
160
174
  - - "~>"
161
175
  - !ruby/object:Gem::Version
162
- version: 0.2.4
176
+ version: '0.2'
163
177
  type: :development
164
178
  prerelease: false
165
179
  version_requirements: !ruby/object:Gem::Requirement
166
180
  requirements:
167
181
  - - "~>"
168
182
  - !ruby/object:Gem::Version
169
- version: 0.2.4
183
+ version: '0.2'
170
184
  - !ruby/object:Gem::Dependency
171
185
  name: rspec
172
186
  requirement: !ruby/object:Gem::Requirement
@@ -201,14 +215,14 @@ dependencies:
201
215
  requirements:
202
216
  - - "~>"
203
217
  - !ruby/object:Gem::Version
204
- version: 2.1.2
218
+ version: '2.1'
205
219
  type: :development
206
220
  prerelease: false
207
221
  version_requirements: !ruby/object:Gem::Requirement
208
222
  requirements:
209
223
  - - "~>"
210
224
  - !ruby/object:Gem::Version
211
- version: 2.1.2
225
+ version: '2.1'
212
226
  - !ruby/object:Gem::Dependency
213
227
  name: simplecov
214
228
  requirement: !ruby/object:Gem::Requirement
@@ -272,11 +286,6 @@ files:
272
286
  - ".rspec"
273
287
  - ".rubocop.yml"
274
288
  - ".rubocop_todo.yml"
275
- - ".yardoc/checksums"
276
- - ".yardoc/complete"
277
- - ".yardoc/object_types"
278
- - ".yardoc/objects/root.dat"
279
- - ".yardoc/proxy_types"
280
289
  - CHANGELOG.md
281
290
  - CODE_OF_CONDUCT.md
282
291
  - DEPLOYMENT.md
@@ -621,7 +630,7 @@ homepage: https://github.com/auth0/ruby-auth0
621
630
  licenses:
622
631
  - MIT
623
632
  metadata: {}
624
- post_install_message:
633
+ post_install_message:
625
634
  rdoc_options: []
626
635
  require_paths:
627
636
  - lib
@@ -636,8 +645,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
636
645
  - !ruby/object:Gem::Version
637
646
  version: '0'
638
647
  requirements: []
639
- rubygems_version: 3.1.2
640
- signing_key:
648
+ rubygems_version: 3.2.16
649
+ signing_key:
641
650
  specification_version: 4
642
651
  summary: Auth0 API Client
643
652
  test_files:
data/.yardoc/checksums DELETED
@@ -1,22 +0,0 @@
1
- lib/auth0/api/v2/jobs.rb 53fe5a814c9da1bb89d7cb885fe7f1151d6ca44a
2
- lib/auth0/api/v2/logs.rb f4b9b93248d85d29d58ac12b6b5ebabd72f98adb
3
- lib/auth0/api/v2/roles.rb 99e9d0222f0d59f21cb061d13b434bf1a903660a
4
- lib/auth0/api/v2/rules.rb 2fbbf4258ba7e6fe67d1ab197ca3503d4e5daf84
5
- lib/auth0/api/v2/stats.rb 035b172ad69efb2b040ffcd29319f23017352b4c
6
- lib/auth0/api/v2/users.rb 6a648030a6851db60ab13dc3a8a7d46bd51ce977
7
- lib/auth0/api/v2/emails.rb 83aaf5ed8082cb2787a0f9c47c463d218a3aee77
8
- lib/auth0/api/v2/anomaly.rb c0e38b3cbb4cca65fbe51e6ed69d56cfa5ea8d0e
9
- lib/auth0/api/v2/clients.rb 23c2b6f307f6a20537720ad24de30b62de51b9f2
10
- lib/auth0/api/v2/prompts.rb 688c71d37885b64ed8c174d54c9403fe21dc0735
11
- lib/auth0/api/v2/tenants.rb d20a9c46b6754d504667b6d5187b525274d5ffe8
12
- lib/auth0/api/v2/tickets.rb fd192d8b281ca54d318cac0a6b5cff3cad555076
13
- lib/auth0/api/v2/guardian.rb 367ea7046c90fdb2065bc66eddb64e47b2d3370d
14
- lib/auth0/api/v2/blacklists.rb c3405a13b9c6481a43136b3f4c755602e24a9511
15
- lib/auth0/api/v2/connections.rb 3a2ac77a7f9ba97df3fd2e7b958192e06db2e0a7
16
- lib/auth0/api/v2/log_streams.rb 1624abe964bd0e9bcfa1107a970f8fa823ec5955
17
- lib/auth0/api/v2/user_blocks.rb ce0f80dc00eb32dc1b825c0bbafb89e94d30a28c
18
- lib/auth0/api/v2/client_grants.rb ac7489b697d58e7514014e5ae125ffa88015306d
19
- lib/auth0/api/v2/users_by_email.rb 95bb92421fb03ec8feee8ef0b5f2ab64c8e51403
20
- lib/auth0/api/v2/resource_servers.rb f9c6e7c8fc0bd497e34b0a9e3ac1a81d7fbbe88b
21
- lib/auth0/api/v2/device_credentials.rb 94b92db7091ebc7af97fe0fb10a3ad64fa36cdc8
22
- lib/auth0/api/authentication_endpoints.rb d6e5c2fabbd79b4f17864b6ec026488d65c5090d
data/.yardoc/complete DELETED
File without changes
data/.yardoc/object_types DELETED
Binary file
Binary file
data/.yardoc/proxy_types DELETED
Binary file