auth0 5.7.0 → 5.9.0

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: 620d2e620738de16a0d93b03b0c0aa0bfb8ec4237f15bf5d162c265422c32a1c
4
- data.tar.gz: 4793187b1546e9a5bf2432de5d208971d689934444e2dcb50d962380bb020ab5
3
+ metadata.gz: 6d736435ce7655dc7910482e66b43a316a198b6b48ffa0b620830b7b55329dcb
4
+ data.tar.gz: 1b653fb372276036ecc11df764317d5b2dbc08249dd5eaf78181b0982c8d1d84
5
5
  SHA512:
6
- metadata.gz: 1940c62f9398063cbd3b24dceb8538ea7d8872091ec280f5580a4f880198767f3d7b0be0d512e1c63ee25ba380f3666eca1bbf823da0689fb6f17454c695daec
7
- data.tar.gz: 8994e0f38d80460bc770567c2a62b53dfafe302fe631f9ddb2edd559cb5af33356f9442014bc710c635bbb4c0064e8997bdf6dbdf42a9192e125b87ba55f03ec
6
+ metadata.gz: 84c07d47e830c171210764f6cdf392f0a513b78a0996a9e9763d4a4aa069b8a56f4dab5930330e84efcefc68b16125d68e00c65c71cabbf82bc27bd0e5e56a56
7
+ data.tar.gz: 27e7dce713e1859455806f9d1a90d86e9b3f9b2fdee1872ff1d1295924e162815995e9299b2d0e111d81622d6884b32b916d02b44ceff65ce13429963c87c336
data/.bundle/config CHANGED
@@ -1,4 +1,5 @@
1
1
  ---
2
2
  BUNDLE_JOBS: "3"
3
3
  BUNDLE_BIN: "bin"
4
- BUNDLE_RETRY: "3"
4
+ BUNDLE_RETRY: "3"
5
+ BUNDLE_PATH: "vendor/bundle"
data/.circleci/config.yml CHANGED
@@ -1,4 +1,7 @@
1
1
  version: 2.1
2
+ orbs:
3
+ ship: auth0/ship@dev:alpha
4
+ codecov: codecov/codecov@3
2
5
 
3
6
  matrix_ruby_versions: &matrix_ruby_versions
4
7
  matrix:
@@ -14,7 +17,7 @@ executors:
14
17
  type: string
15
18
  default: *default_ruby_version
16
19
  docker:
17
- - image: circleci/ruby:<< parameters.ruby_version >>
20
+ - image: cimg/ruby:<< parameters.ruby_version >>
18
21
 
19
22
  jobs:
20
23
  run-tests:
@@ -27,6 +30,7 @@ jobs:
27
30
  ruby_version: << parameters.ruby_version >>
28
31
  steps:
29
32
  - checkout
33
+ - run: gem install bundler:1.17.2
30
34
  - run: rm Gemfile.lock
31
35
  - restore_cache:
32
36
  key: gems-v2-{{ checksum "Gemfile.lock" }}
@@ -37,9 +41,20 @@ jobs:
37
41
  - vendor/bundle
38
42
  # Must define DOMAIN, CLIENT_ID, CLIENT_SECRET and MASTER_JWT env
39
43
  - run: bundle exec rake test
44
+ - codecov/upload
40
45
 
41
46
  workflows:
42
47
  tests:
43
48
  jobs:
44
49
  - run-tests:
45
50
  <<: *matrix_ruby_versions
51
+ - ship/ruby-publish:
52
+ context:
53
+ - publish-rubygems
54
+ - publish-gh
55
+ filters:
56
+ branches:
57
+ only:
58
+ - master
59
+ requires:
60
+ - run-tests
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+
4
+ - package-ecosystem: "bundler"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "daily"
8
+ ignore:
9
+ - dependency-name: "*"
10
+ update-types: ["version-update:semver-major"]
@@ -0,0 +1,28 @@
1
+ name: Semgrep
2
+
3
+ on:
4
+ pull_request: {}
5
+
6
+ push:
7
+ branches:
8
+ - master
9
+ - main
10
+
11
+ schedule:
12
+ - cron: '0 * * * *'
13
+
14
+ jobs:
15
+ semgrep:
16
+ name: Scan
17
+ runs-on: ubuntu-latest
18
+ container:
19
+ image: returntocorp/semgrep
20
+ if: (github.repository_owner == 'auth0')
21
+
22
+ steps:
23
+ - uses: actions/checkout@v3
24
+
25
+ - if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]'
26
+ run: semgrep ci
27
+ env:
28
+ SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,12 +1,57 @@
1
1
  # Change Log
2
2
 
3
+ ## [v5.9.0](https://github.com/auth0/ruby-auth0/tree/v5.9.0) (2022-08-24)
4
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.8.1...v5.9.0)
5
+
6
+ **Added**
7
+ - Add Delete All Authenticators API for Users [\#375](https://github.com/auth0/ruby-auth0/pull/375) ([phongnh](https://github.com/phongnh))
8
+
9
+ **Changed**
10
+ - Add include_totals to get connections options [\#357](https://github.com/auth0/ruby-auth0/pull/357) ([stevehobbsdev](https://github.com/stevehobbsdev))
11
+
12
+ **Fixed**
13
+ - Fix typo and remove param that is not used [\#365](https://github.com/auth0/ruby-auth0/pull/365) ([MatthewRDodds](https://github.com/MatthewRDodds))
14
+ - correct remove_user_roles doc: roles param is ids, not names [\#359](https://github.com/auth0/ruby-auth0/pull/359) ([gbirchmeier](https://github.com/gbirchmeier))
15
+
16
+ ## [v5.8.1](https://github.com/auth0/ruby-auth0/tree/v5.8.1) (2022-06-30)
17
+
18
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.8.0...v5.8.1)
19
+
20
+ **Fixed**
21
+
22
+ - FIX: delete_organizations_members does not send `members` in body [\#345](https://github.com/auth0/ruby-auth0/pull/345) ([T-800](https://github.com/T-800))
23
+
24
+ **Security**
25
+
26
+ - Security: Update dependencies lockfile [\#348](https://github.com/auth0/ruby-auth0/pull/348) ([evansims](https://github.com/evansims))
27
+
28
+ ## [v5.8.0](https://github.com/auth0/ruby-auth0/tree/v5.8.0) (2022-03-25)
29
+
30
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.7.0...v5.8.0)
31
+
32
+ **Added**
33
+
34
+ - Add parameters for pager to device_credentials method [\#318](https://github.com/auth0/ruby-auth0/pull/318) ([shibayu36](https://github.com/shibayu36))
35
+
36
+ **Fixed**
37
+
38
+ - Cache RS256 JWKS by url to allow for multiple Auth0 tenants per runtime [\#325](https://github.com/auth0/ruby-auth0/pull/325) ([rmm5t](https://github.com/rmm5t))
39
+ - Allow to pass nil to client_id arg of device_credentials [\#321](https://github.com/auth0/ruby-auth0/pull/321) ([shibayu36](https://github.com/shibayu36))
40
+
41
+ **Security**
42
+
43
+ - Bump nokogiri from 1.13.1 to 1.13.3 [\#320](https://github.com/auth0/ruby-auth0/pull/320) ([dependabot[bot]](https://github.com/apps/dependabot))
44
+
3
45
  ## [v5.7.0](https://github.com/auth0/ruby-auth0/tree/v5.7.0) (2022-02-17)
46
+
4
47
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.6.1...v5.7.0)
5
48
 
6
49
  **Added**
50
+
7
51
  - [SDK-3118] Add attack protection endpoints [\#316](https://github.com/auth0/ruby-auth0/pull/316) ([stevehobbsdev](https://github.com/stevehobbsdev))
8
52
 
9
53
  **Fixed**
54
+
10
55
  - [SDK-3106] Fix up tests for Ruby 3 and rspec-mocks update [\#313](https://github.com/auth0/ruby-auth0/pull/313) ([stevehobbsdev](https://github.com/stevehobbsdev))
11
56
  - Fix #310: delete_organizations_member_roles should use delete_with_body instead of delete [\#311](https://github.com/auth0/ruby-auth0/pull/311) ([SanterreJo](https://github.com/SanterreJo))
12
57
 
data/Gemfile CHANGED
@@ -8,12 +8,12 @@ group :development do
8
8
  gem 'coveralls', require: false
9
9
  gem 'rubocop', require: false
10
10
  gem 'rubocop-rails', require: false
11
+ gem 'irb', require: false
11
12
  end
12
13
 
13
14
  group :test do
14
15
  gem 'webmock', require: false
15
16
  gem 'vcr', require: false
16
- gem 'codecov', require: false
17
- gem 'simplecov'
17
+ gem 'simplecov-cobertura'
18
18
  gem 'timecop', require: false
19
19
  end
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- auth0 (5.7.0)
4
+ auth0 (5.9.0)
5
5
  addressable (~> 2.8)
6
- jwt (~> 2.2)
6
+ jwt (~> 2.3.0)
7
7
  rest-client (~> 2.1)
8
8
  retryable (~> 3.0)
9
9
  zache (~> 0.12)
@@ -11,32 +11,30 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionpack (7.0.2.2)
15
- actionview (= 7.0.2.2)
16
- activesupport (= 7.0.2.2)
14
+ actionpack (7.0.3.1)
15
+ actionview (= 7.0.3.1)
16
+ activesupport (= 7.0.3.1)
17
17
  rack (~> 2.0, >= 2.2.0)
18
18
  rack-test (>= 0.6.3)
19
19
  rails-dom-testing (~> 2.0)
20
20
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
21
- actionview (7.0.2.2)
22
- activesupport (= 7.0.2.2)
21
+ actionview (7.0.3.1)
22
+ activesupport (= 7.0.3.1)
23
23
  builder (~> 3.1)
24
24
  erubi (~> 1.4)
25
25
  rails-dom-testing (~> 2.0)
26
26
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
27
- activesupport (7.0.2.2)
27
+ activesupport (7.0.3.1)
28
28
  concurrent-ruby (~> 1.0, >= 1.0.2)
29
29
  i18n (>= 1.6, < 2)
30
30
  minitest (>= 5.1)
31
31
  tzinfo (~> 2.0)
32
- addressable (2.8.0)
33
- public_suffix (>= 2.0.2, < 5.0)
32
+ addressable (2.8.1)
33
+ public_suffix (>= 2.0.2, < 6.0)
34
34
  ast (2.4.2)
35
35
  builder (3.2.4)
36
- codecov (0.6.0)
37
- simplecov (>= 0.15, < 0.22)
38
36
  coderay (1.1.3)
39
- concurrent-ruby (1.1.9)
37
+ concurrent-ruby (1.1.10)
40
38
  coveralls (0.7.1)
41
39
  multi_json (~> 1.3)
42
40
  rest-client
@@ -50,93 +48,70 @@ GEM
50
48
  docile (1.4.0)
51
49
  domain_name (0.5.20190701)
52
50
  unf (>= 0.0.5, < 1.0.0)
53
- dotenv (2.7.6)
54
- dotenv-rails (2.7.6)
55
- dotenv (= 2.7.6)
51
+ dotenv (2.8.1)
52
+ dotenv-rails (2.8.1)
53
+ dotenv (= 2.8.1)
56
54
  railties (>= 3.2)
57
- erubi (1.10.0)
58
- faker (2.19.0)
59
- i18n (>= 1.6, < 2)
60
- ffi (1.15.5)
61
- formatador (1.1.0)
55
+ erubi (1.11.0)
56
+ faker (2.22.0)
57
+ i18n (>= 1.8.11, < 2)
62
58
  fuubar (2.5.1)
63
59
  rspec-core (~> 3.0)
64
60
  ruby-progressbar (~> 1.4)
65
61
  gem-release (0.7.4)
66
- guard (2.17.0)
67
- formatador (>= 0.2.4)
68
- listen (>= 2.7, < 4.0)
69
- lumberjack (>= 1.0.12, < 2.0)
70
- nenv (~> 0.1)
71
- notiffany (~> 0.0)
72
- pry (>= 0.9.12)
73
- shellany (~> 0.0)
74
- thor (>= 0.18.1)
75
- guard-compat (1.2.1)
76
- guard-rspec (4.7.3)
77
- guard (~> 2.1)
78
- guard-compat (~> 1.1)
79
- rspec (>= 2.99.0, < 4.0)
80
62
  hashdiff (1.0.1)
81
63
  http-accept (1.7.0)
82
- http-cookie (1.0.4)
64
+ http-cookie (1.0.5)
83
65
  domain_name (~> 0.5)
84
- i18n (1.10.0)
66
+ i18n (1.12.0)
85
67
  concurrent-ruby (~> 1.0)
68
+ io-console (0.5.11)
69
+ irb (1.4.1)
70
+ reline (>= 0.3.0)
71
+ json (2.6.2)
86
72
  jwt (2.3.0)
87
- listen (3.7.1)
88
- rb-fsevent (~> 0.10, >= 0.10.3)
89
- rb-inotify (~> 0.9, >= 0.9.10)
90
- loofah (2.14.0)
73
+ loofah (2.18.0)
91
74
  crass (~> 1.0.2)
92
75
  nokogiri (>= 1.5.9)
93
- lumberjack (1.2.8)
94
76
  method_source (0.9.2)
95
77
  mime-types (3.4.1)
96
78
  mime-types-data (~> 3.2015)
97
79
  mime-types-data (3.2022.0105)
98
- mini_portile2 (2.7.1)
99
- minitest (5.15.0)
80
+ minitest (5.16.3)
100
81
  multi_json (1.15.0)
101
- nenv (0.3.0)
102
82
  netrc (0.11.0)
103
- nokogiri (1.13.1)
104
- mini_portile2 (~> 2.7.0)
83
+ nokogiri (1.13.8-x86_64-linux)
105
84
  racc (~> 1.4)
106
- notiffany (0.1.3)
107
- nenv (~> 0.1)
108
- shellany (~> 0.0)
109
- parallel (1.21.0)
110
- parser (3.1.0.0)
85
+ parallel (1.22.1)
86
+ parser (3.1.2.1)
111
87
  ast (~> 2.4.1)
112
88
  pry (0.12.2)
113
89
  coderay (~> 1.1.0)
114
90
  method_source (~> 0.9.0)
115
91
  pry-nav (0.3.0)
116
92
  pry (>= 0.9.10, < 0.13.0)
117
- public_suffix (4.0.6)
93
+ public_suffix (5.0.0)
118
94
  racc (1.6.0)
119
- rack (2.2.3)
95
+ rack (2.2.4)
120
96
  rack-test (0.8.3)
121
97
  rack (>= 1.0, < 3)
122
98
  rails-dom-testing (2.0.3)
123
99
  activesupport (>= 4.2.0)
124
100
  nokogiri (>= 1.6)
125
- rails-html-sanitizer (1.4.2)
101
+ rails-html-sanitizer (1.4.3)
126
102
  loofah (~> 2.3)
127
- railties (7.0.2.2)
128
- actionpack (= 7.0.2.2)
129
- activesupport (= 7.0.2.2)
103
+ railties (7.0.3.1)
104
+ actionpack (= 7.0.3.1)
105
+ activesupport (= 7.0.3.1)
130
106
  method_source
131
107
  rake (>= 12.2)
132
108
  thor (~> 1.0)
133
109
  zeitwerk (~> 2.5)
134
110
  rainbow (3.1.1)
135
111
  rake (13.0.6)
136
- rb-fsevent (0.11.1)
137
- rb-inotify (0.10.1)
138
- ffi (~> 1.0)
139
- regexp_parser (2.2.1)
112
+ regexp_parser (2.5.0)
113
+ reline (0.3.1)
114
+ io-console (~> 0.5)
140
115
  rest-client (2.1.0)
141
116
  http-accept (>= 1.7.0, < 2.0)
142
117
  http-cookie (>= 1.0.2, < 2.0)
@@ -153,68 +128,69 @@ GEM
153
128
  rspec-expectations (3.11.0)
154
129
  diff-lcs (>= 1.2.0, < 2.0)
155
130
  rspec-support (~> 3.11.0)
156
- rspec-mocks (3.11.0)
131
+ rspec-mocks (3.11.1)
157
132
  diff-lcs (>= 1.2.0, < 2.0)
158
133
  rspec-support (~> 3.11.0)
159
134
  rspec-support (3.11.0)
160
- rubocop (1.25.1)
135
+ rubocop (1.35.1)
136
+ json (~> 2.3)
161
137
  parallel (~> 1.10)
162
- parser (>= 3.1.0.0)
138
+ parser (>= 3.1.2.1)
163
139
  rainbow (>= 2.2.2, < 4.0)
164
140
  regexp_parser (>= 1.8, < 3.0)
165
- rexml
166
- rubocop-ast (>= 1.15.1, < 2.0)
141
+ rexml (>= 3.2.5, < 4.0)
142
+ rubocop-ast (>= 1.20.1, < 2.0)
167
143
  ruby-progressbar (~> 1.7)
168
144
  unicode-display_width (>= 1.4.0, < 3.0)
169
- rubocop-ast (1.15.2)
170
- parser (>= 3.0.1.1)
171
- rubocop-rails (2.13.2)
145
+ rubocop-ast (1.21.0)
146
+ parser (>= 3.1.1.0)
147
+ rubocop-rails (2.15.2)
172
148
  activesupport (>= 4.2.0)
173
149
  rack (>= 1.1)
174
150
  rubocop (>= 1.7.0, < 2.0)
175
151
  ruby-progressbar (1.11.0)
176
- shellany (0.0.1)
177
152
  simplecov (0.21.2)
178
153
  docile (~> 1.1)
179
154
  simplecov-html (~> 0.11)
180
155
  simplecov_json_formatter (~> 0.1)
156
+ simplecov-cobertura (2.1.0)
157
+ rexml
158
+ simplecov (~> 0.19)
181
159
  simplecov-html (0.12.3)
182
160
  simplecov_json_formatter (0.1.4)
183
161
  sync (0.5.0)
184
162
  term-ansicolor (1.7.1)
185
163
  tins (~> 1.0)
186
- terminal-notifier-guard (1.7.0)
187
164
  thor (1.2.1)
188
- timecop (0.9.4)
189
- tins (1.31.0)
165
+ timecop (0.9.5)
166
+ tins (1.31.1)
190
167
  sync
191
- tzinfo (2.0.4)
168
+ tzinfo (2.0.5)
192
169
  concurrent-ruby (~> 1.0)
193
170
  unf (0.1.4)
194
171
  unf_ext
195
- unf_ext (0.0.8)
196
- unicode-display_width (2.1.0)
197
- vcr (6.0.0)
198
- webmock (3.14.0)
172
+ unf_ext (0.0.8.2)
173
+ unicode-display_width (2.2.0)
174
+ vcr (6.1.0)
175
+ webmock (3.18.1)
199
176
  addressable (>= 2.8.0)
200
177
  crack (>= 0.3.2)
201
178
  hashdiff (>= 0.4.0, < 2.0.0)
202
179
  zache (0.12.0)
203
- zeitwerk (2.5.4)
180
+ zeitwerk (2.6.0)
204
181
 
205
182
  PLATFORMS
206
- ruby
183
+ x86_64-linux
207
184
 
208
185
  DEPENDENCIES
209
186
  auth0!
210
187
  bundler
211
- codecov
212
188
  coveralls
213
189
  dotenv-rails (~> 2.0)
214
190
  faker (~> 2.0)
215
191
  fuubar (~> 2.0)
216
192
  gem-release (~> 0.7)
217
- guard-rspec (~> 4.5)
193
+ irb
218
194
  pry (~> 0.10)
219
195
  pry-nav (~> 0.2)
220
196
  rack (~> 2.1)
@@ -223,11 +199,11 @@ DEPENDENCIES
223
199
  rspec (~> 3.5)
224
200
  rubocop
225
201
  rubocop-rails
226
- simplecov
227
- terminal-notifier-guard
202
+ simplecov (~> 0.9)
203
+ simplecov-cobertura
228
204
  timecop
229
205
  vcr
230
206
  webmock
231
207
 
232
208
  BUNDLED WITH
233
- 1.17.2
209
+ 2.3.11
data/README.md CHANGED
@@ -45,7 +45,7 @@ end
45
45
  ... and a Controller to handle that route:
46
46
 
47
47
  ```ruby
48
- # app/controllers/all_users_controllers.rb
48
+ # app/controllers/all_users_controller.rb
49
49
  require 'auth0'
50
50
 
51
51
  class AllUsersController < ApplicationController
data/auth0.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.require_paths = ['lib']
18
18
 
19
19
  s.add_runtime_dependency 'rest-client', '~> 2.1'
20
- s.add_runtime_dependency 'jwt', '~> 2.2'
20
+ s.add_runtime_dependency 'jwt', '~> 2.3.0'
21
21
  s.add_runtime_dependency 'zache', '~> 0.12'
22
22
  s.add_runtime_dependency 'addressable', '~> 2.8'
23
23
  s.add_runtime_dependency 'retryable', '~> 3.0'
@@ -152,7 +152,7 @@ module Auth0
152
152
  # @param password [string] User's new password. This is only available
153
153
  # on legacy tenants with change password v1 flow enabled
154
154
  # @param connection_name [string] Database connection name
155
- # @deprecated Use {#password_reset} instead.
155
+ # @deprecated Use {#reset_password} instead.
156
156
  def change_password(email, password, connection_name = UP_AUTH)
157
157
  raise Auth0::InvalidParameter, 'Must supply a valid email' if email.to_s.empty?
158
158
 
@@ -170,8 +170,6 @@ module Auth0
170
170
  # @see https://auth0.com/docs/api/authentication#change-password
171
171
  # @see https://auth0.com/docs/connections/database/password-change
172
172
  # @param email [string] User's current email
173
- # @param password [string] User's new password; empty to trigger a
174
- # password reset email
175
173
  # @param connection_name [string] Database connection name
176
174
  # @param client_id [string] Client ID override (to allow forwarding
177
175
  # to a different application's login URI on password reset success page)
@@ -14,6 +14,7 @@ module Auth0
14
14
  # @param include_fields [boolean] True if the fields specified are to be included in the result, false otherwise.
15
15
  # @param page [int] Page number to get, 0-based.
16
16
  # @param per_page [int] Results per page if also passing a page number.
17
+ # @param include_totals [boolean] True if query totals should be included in the result. Defaults to false.
17
18
  # @return [json] Returns the existing connections matching the strategy.
18
19
  def connections(
19
20
  strategy: nil,
@@ -21,7 +22,8 @@ module Auth0
21
22
  fields: nil,
22
23
  include_fields: nil,
23
24
  page: nil,
24
- per_page: nil
25
+ per_page: nil,
26
+ include_totals: nil
25
27
  )
26
28
  include_fields = true if !fields.nil? && include_fields.nil?
27
29
  request_params = {
@@ -30,7 +32,8 @@ module Auth0
30
32
  fields: fields.is_a?(Array) ? fields.join(',') : fields,
31
33
  include_fields: include_fields,
32
34
  page: !page.nil? ? page.to_i : nil,
33
- per_page: !page.nil? && !per_page.nil? ? per_page.to_i : nil
35
+ per_page: !page.nil? && !per_page.nil? ? per_page.to_i : nil,
36
+ include_totals: include_totals
34
37
  }
35
38
  get(connections_path, request_params)
36
39
  end
@@ -38,7 +41,7 @@ module Auth0
38
41
 
39
42
  # Creates a new connection according to the JSON object received in body.
40
43
  # @see https://auth0.com/docs/api/v2#!/Connections/post_connections
41
- # @param body [hash] The Hash options used to define the conecctions's properties.
44
+ # @param body [hash] The Hash options used to define the connections's properties.
42
45
  #
43
46
  # @return [json] Returns the created connection.
44
47
  def create_connection(body)
@@ -1,7 +1,7 @@
1
1
  module Auth0
2
2
  module Api
3
3
  module V2
4
- # Methods to use the device crenditials endpoints
4
+ # Methods to use the device credentials endpoints
5
5
  module DeviceCredentials
6
6
  attr_reader :device_credentials_path
7
7
 
@@ -13,18 +13,23 @@ module Auth0
13
13
  # * :include_fields [boolean] True if the fields specified are to be included in the result, false otherwise.
14
14
  # * :user_id [string] The user_id of the devices to retrieve.
15
15
  # * :type [string] Type of credentials to retrieve. Must be 'public_key', 'refresh_token' or 'rotating_refresh_token'
16
+ # * :page [integer] The page number. Zero based
17
+ # * :per_page [integer] The amount of entries per page
18
+ # * :include_totals [boolean] Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
16
19
  #
17
20
  # @return [json] Returns the list of existing devices for the specified client_id.
18
21
  # rubocop:disable Metrics/AbcSize
19
- def device_credentials(client_id, options = {})
22
+ def device_credentials(client_id = nil, options = {})
20
23
  request_params = {
21
24
  fields: options.fetch(:fields, nil),
22
25
  include_fields: options.fetch(:include_fields, nil),
23
26
  user_id: options.fetch(:user_id, nil),
24
27
  client_id: client_id,
25
- type: options.fetch(:type, nil)
28
+ type: options.fetch(:type, nil),
29
+ page: options.fetch(:page, nil),
30
+ per_page: options.fetch(:per_page, nil),
31
+ include_totals: options.fetch(:include_totals, nil)
26
32
  }
27
- raise Auth0::InvalidParameter, 'Must supply a valid client_id' if client_id.to_s.empty?
28
33
  if !request_params[:type].nil? && !%w(public_key refresh_token rotating_refresh_token).include?(request_params[:type])
29
34
  raise Auth0::InvalidParameter, 'Type must be one of \'public_key\', \'refresh_token\', \'rotating_refresh_token\''
30
35
  end
@@ -267,7 +267,7 @@ module Auth0
267
267
  body = {}
268
268
  body[:members] = members
269
269
 
270
- delete(path, body)
270
+ delete_with_body(path, body)
271
271
  end
272
272
  alias remove_organizations_members delete_organizations_members
273
273
 
@@ -111,6 +111,15 @@ module Auth0
111
111
  end
112
112
  alias update_user patch_user
113
113
 
114
+ # Delete all authenticators
115
+ # @see https://auth0.com/docs/api/management/v2#!/Users/delete_authenticators
116
+ # @param user_id [string] The user_id of the user to delete all authenticators
117
+ def delete_user_authenticators(user_id)
118
+ raise Auth0::MissingUserId, 'Must supply a valid user_id' if user_id.to_s.empty?
119
+ path = "#{users_path}/#{user_id}/authenticators"
120
+ delete(path)
121
+ end
122
+
114
123
  # Delete a user's multifactor provider
115
124
  # @see https://auth0.com/docs/api/v2#!/Users/delete_multifactor_by_provider
116
125
  # @param user_id [string] The user_id of the user to delete the multifactor provider from.
@@ -215,7 +224,7 @@ module Auth0
215
224
  # @see https://auth0.com/docs/api/management/v2#!/Users/delete_user_roles
216
225
  #
217
226
  # @param user_id [string] The user_id of the roles to remove.
218
- # @param roles [array] An array of role names to remove.
227
+ # @param roles [array] An array of role ids to remove.
219
228
  def remove_user_roles(user_id, roles)
220
229
  raise Auth0::MissingUserId, 'Must supply a valid user_id' if user_id.to_s.empty?
221
230
  validate_strings_array roles
@@ -286,7 +286,7 @@ module Auth0
286
286
 
287
287
  # Clear the JWK set cache.
288
288
  def remove_jwks
289
- @@cache.remove(:jwks)
289
+ @@cache.remove_by { true }
290
290
  end
291
291
  end
292
292
 
@@ -311,13 +311,13 @@ module Auth0
311
311
  result = fetch_jwks if force
312
312
 
313
313
  if result
314
- @@cache.put(:jwks, result, lifetime: @lifetime)
314
+ @@cache.put(@jwks_url, result, lifetime: @lifetime)
315
315
  return result
316
316
  end
317
317
 
318
- previous_value = @@cache.last(:jwks)
318
+ previous_value = @@cache.last(@jwks_url)
319
319
 
320
- @@cache.get(:jwks, lifetime: @lifetime, dirty: true) do
320
+ @@cache.get(@jwks_url, lifetime: @lifetime, dirty: true) do
321
321
  new_value = fetch_jwks
322
322
 
323
323
  raise Auth0::InvalidIdToken, 'Could not fetch the JWK set' unless new_value || previous_value
data/lib/auth0/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # current version of gem
2
2
  module Auth0
3
- VERSION = '5.7.0'.freeze
3
+ VERSION = '5.9.0'.freeze
4
4
  end
@@ -18,7 +18,8 @@ describe Auth0::Api::V2::Connections do
18
18
  fields: nil,
19
19
  include_fields: nil,
20
20
  page: nil,
21
- per_page: nil
21
+ per_page: nil,
22
+ include_totals: nil
22
23
  })
23
24
  expect { @instance.connections }.not_to raise_error
24
25
  end
@@ -31,7 +32,8 @@ describe Auth0::Api::V2::Connections do
31
32
  strategy: nil,
32
33
  name: nil,
33
34
  page: nil,
34
- per_page: nil
35
+ per_page: nil,
36
+ include_totals: nil
35
37
  })
36
38
  expect {
37
39
  @instance.connections(fields: 'name', include_fields: true)
@@ -46,7 +48,8 @@ describe Auth0::Api::V2::Connections do
46
48
  strategy: nil,
47
49
  name: nil,
48
50
  page: nil,
49
- per_page: nil
51
+ per_page: nil,
52
+ include_totals: nil
50
53
  })
51
54
  expect {
52
55
  @instance.connections(fields: ['name','strategy'], include_fields: true)
@@ -61,12 +64,29 @@ describe Auth0::Api::V2::Connections do
61
64
  strategy: nil,
62
65
  name: nil,
63
66
  fields: nil,
64
- include_fields: nil
67
+ include_fields: nil,
68
+ include_totals: nil
65
69
  })
66
70
  expect {
67
71
  @instance.connections(page: 1, per_page: 10)
68
72
  }.not_to raise_error
69
73
  end
74
+
75
+ it 'is expected to include totals' do
76
+ expect(@instance).to receive(:get).with(
77
+ '/api/v2/connections', {
78
+ page: 1,
79
+ per_page: 10,
80
+ strategy: nil,
81
+ name: nil,
82
+ fields: nil,
83
+ include_fields: nil,
84
+ include_totals: true
85
+ })
86
+ expect {
87
+ @instance.connections(page: 1, per_page: 10, include_totals: true)
88
+ }.not_to raise_error
89
+ end
70
90
  end
71
91
 
72
92
  context '.create_connection' do
@@ -1,29 +1,58 @@
1
1
  require 'spec_helper'
2
2
  describe Auth0::Api::V2::DeviceCredentials do
3
- attr_reader :client_id
4
-
5
3
  before :all do
6
4
  dummy_instance = DummyClass.new
7
5
  dummy_instance.extend(Auth0::Api::V2::DeviceCredentials)
8
6
  @instance = dummy_instance
9
- @client_id = Faker::Lorem.word
10
7
  end
11
8
  context '.device_credentials' do
12
9
  it { expect(@instance).to respond_to(:device_credentials) }
13
10
  it { expect(@instance).to respond_to(:list_device_credentials) }
14
- it 'is expected to send get request to /api/v2/device-credentials' do
11
+ it 'is expected to send get request with no parameters to /api/v2/device-credentials' do
12
+ expect(@instance).to receive(:get).with(
13
+ '/api/v2/device-credentials', {
14
+ fields: nil,
15
+ include_fields: nil,
16
+ user_id: nil,
17
+ client_id: nil,
18
+ type: nil,
19
+ page: nil,
20
+ per_page: nil,
21
+ include_totals: nil
22
+ })
23
+ expect { @instance.device_credentials }.not_to raise_error
24
+ end
25
+ it 'is expected to send get request with client_id to /api/v2/device-credentials' do
26
+ client_id = Faker::Lorem.word
15
27
  expect(@instance).to receive(:get).with(
16
28
  '/api/v2/device-credentials', {
17
29
  fields: nil,
18
30
  include_fields: nil,
19
31
  user_id: nil,
20
32
  client_id: client_id,
21
- type: nil
33
+ type: nil,
34
+ page: nil,
35
+ per_page: nil,
36
+ include_totals: nil
22
37
  })
23
38
  expect { @instance.device_credentials(client_id) }.not_to raise_error
24
39
  end
40
+ it 'is expected to send get request with options to /api/v2/device-credentials' do
41
+ expect(@instance).to receive(:get).with(
42
+ '/api/v2/device-credentials', {
43
+ fields: 'name',
44
+ include_fields: true,
45
+ user_id: '1',
46
+ client_id: 'client_id',
47
+ type: 'rotating_refresh_token',
48
+ page: 1,
49
+ per_page: 10,
50
+ include_totals: true
51
+ })
52
+ expect { @instance.device_credentials('client_id', fields: 'name', include_fields: true, user_id: '1', type: 'rotating_refresh_token', page: 1, per_page: 10, include_totals: true) }.not_to raise_error
53
+ end
25
54
  it 'is expect to raise an error when type is not one of \'public_key\', \'refresh_token\', \'rotating_refresh_token\'' do
26
- expect { @instance.device_credentials(client_id, type: 'invalid_type') }.to raise_error(
55
+ expect { @instance.device_credentials('client_id', type: 'invalid_type') }.to raise_error(
27
56
  'Type must be one of \'public_key\', \'refresh_token\', \'rotating_refresh_token\''
28
57
  )
29
58
  end
@@ -514,7 +514,7 @@ describe Auth0::Api::V2::Organizations do
514
514
  end
515
515
 
516
516
  it 'is expected to delete /api/v2/organizations/org_id/members' do
517
- expect(@instance).to receive(:delete).with(
517
+ expect(@instance).to receive(:delete_with_body).with(
518
518
  '/api/v2/organizations/org_id/members', {
519
519
  members: ['123', '456']
520
520
  }
@@ -139,6 +139,21 @@ describe Auth0::Api::V2::Users do
139
139
  end
140
140
  end
141
141
 
142
+ context '.delete_user_authenticators' do
143
+ it 'is expected to respond to a delete_user_authenticators method' do
144
+ expect(@instance).to respond_to(:delete_user_authenticators)
145
+ end
146
+
147
+ it 'is expected to delete /api/v2/users/userId/authenticators' do
148
+ expect(@instance).to receive(:delete).with('/api/v2/users/USER_ID/authenticators')
149
+ @instance.delete_user_authenticators('USER_ID')
150
+ end
151
+
152
+ it 'is expected to raise an exception when the user ID is empty' do
153
+ expect { @instance.delete_user_authenticators(nil) }.to raise_exception(Auth0::MissingUserId)
154
+ end
155
+ end
156
+
142
157
  context '.delete_user_provider' do
143
158
  it 'is expected to respond to a delete_user_provider method' do
144
159
  expect(@instance).to respond_to(:delete_user_provider)
@@ -6,6 +6,7 @@ RSA_PUB_KEY_JWK_2 = { 'kty': "RSA", 'use': 'sig', 'n': "uGbXWiK3dQTyCbX5xdE4yCuY
6
6
  JWKS_RESPONSE_1 = { 'keys': [RSA_PUB_KEY_JWK_1] }.freeze
7
7
  JWKS_RESPONSE_2 = { 'keys': [RSA_PUB_KEY_JWK_2] }.freeze
8
8
  JWKS_URL = 'https://tokens-test.auth0.com/.well-known/jwks.json'.freeze
9
+ JWKS_URL_2 = 'https://tokens-test2.auth0.com/.well-known/jwks.json'.freeze
9
10
  HMAC_SHARED_SECRET = 'secret'.freeze
10
11
 
11
12
  LEEWAY = 60
@@ -459,6 +460,19 @@ describe Auth0::Algorithm::RS256 do
459
460
  expect(a_request(:get, JWKS_URL)).to have_been_made.once
460
461
  end
461
462
 
463
+ it 'is expected to fetch the jwks from multiple urls' do
464
+ stub_jwks(JWKS_RESPONSE_2, JWKS_URL_2)
465
+
466
+ instance1 = Auth0::Algorithm::RS256.jwks_url(JWKS_URL)
467
+ instance2 = Auth0::Algorithm::RS256.jwks_url(JWKS_URL_2)
468
+ instance1.jwks
469
+ instance2.jwks
470
+ instance1.jwks
471
+
472
+ expect(a_request(:get, JWKS_URL)).to have_been_made.once
473
+ expect(a_request(:get, JWKS_URL_2)).to have_been_made.once
474
+ end
475
+
462
476
  it 'is expected to forcibly fetch the jwks from the url' do
463
477
  instance = Auth0::Algorithm::RS256.jwks_url(JWKS_URL)
464
478
  instance.jwks
@@ -493,6 +507,6 @@ describe Auth0::Algorithm::RS256 do
493
507
  end
494
508
  # rubocop:enable Metrics/BlockLength
495
509
 
496
- def stub_jwks(stub = JWKS_RESPONSE_1)
497
- stub_request(:get, JWKS_URL).to_return(body: stub.to_json)
510
+ def stub_jwks(stub = JWKS_RESPONSE_1, url = JWKS_URL)
511
+ stub_request(:get, url).to_return(body: stub.to_json)
498
512
  end
data/spec/spec_helper.rb CHANGED
@@ -13,8 +13,8 @@ require 'simplecov'
13
13
  SimpleCov.start
14
14
 
15
15
  if ENV['CI'] == 'true'
16
- require 'codecov'
17
- SimpleCov.formatter = SimpleCov::Formatter::Codecov
16
+ require 'simplecov-cobertura'
17
+ SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
18
18
  end
19
19
 
20
20
  require 'dotenv'
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.7.0
4
+ version: 5.9.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: 2022-02-17 00:00:00.000000000 Z
14
+ date: 2022-08-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
@@ -33,14 +33,14 @@ dependencies:
33
33
  requirements:
34
34
  - - "~>"
35
35
  - !ruby/object:Gem::Version
36
- version: '2.2'
36
+ version: 2.3.0
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'
43
+ version: 2.3.0
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: zache
46
46
  requirement: !ruby/object:Gem::Requirement
@@ -125,20 +125,6 @@ dependencies:
125
125
  - - "~>"
126
126
  - !ruby/object:Gem::Version
127
127
  version: '2.0'
128
- - !ruby/object:Gem::Dependency
129
- name: guard-rspec
130
- requirement: !ruby/object:Gem::Requirement
131
- requirements:
132
- - - "~>"
133
- - !ruby/object:Gem::Version
134
- version: '4.5'
135
- type: :development
136
- prerelease: false
137
- version_requirements: !ruby/object:Gem::Requirement
138
- requirements:
139
- - - "~>"
140
- - !ruby/object:Gem::Version
141
- version: '4.5'
142
128
  - !ruby/object:Gem::Dependency
143
129
  name: dotenv-rails
144
130
  requirement: !ruby/object:Gem::Requirement
@@ -281,7 +267,9 @@ files:
281
267
  - ".github/ISSUE_TEMPLATE/feature_request.md"
282
268
  - ".github/ISSUE_TEMPLATE/report_a_bug.md"
283
269
  - ".github/PULL_REQUEST_TEMPLATE.md"
270
+ - ".github/dependabot.yml"
284
271
  - ".github/stale.yml"
272
+ - ".github/workflows/semgrep.yml"
285
273
  - ".gitignore"
286
274
  - ".rspec"
287
275
  - ".rubocop.yml"
@@ -631,7 +619,7 @@ homepage: https://github.com/auth0/ruby-auth0
631
619
  licenses:
632
620
  - MIT
633
621
  metadata: {}
634
- post_install_message:
622
+ post_install_message:
635
623
  rdoc_options: []
636
624
  require_paths:
637
625
  - lib
@@ -646,224 +634,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
646
634
  - !ruby/object:Gem::Version
647
635
  version: '0'
648
636
  requirements: []
649
- rubygems_version: 3.2.22
650
- signing_key:
637
+ rubygems_version: 3.3.11
638
+ signing_key:
651
639
  specification_version: 4
652
640
  summary: Auth0 API Client
653
- test_files:
654
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_change_password/should_trigger_a_password_reset.yml
655
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_login_with_resource_owner/should_fail_with_an_incorrect_email.yml
656
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_login_with_resource_owner/should_fail_with_an_incorrect_password.yml
657
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_login_with_resource_owner/should_fail_with_an_invalid_audience.yml
658
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_login_with_resource_owner/should_login_successfully_with_a_custom_audience.yml
659
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_login_with_resource_owner/should_login_successfully_with_a_default_scope.yml
660
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_saml_metadata/should_retrieve_SAML_metadata.yml
661
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_userinfo/should_fail_as_not_authorized.yml
662
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_userinfo/should_return_the_userinfo.yml
663
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_wsfed_metadata/should_retrieve_WSFED_metadata.yml
664
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/create_test_user.yml
665
- - spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/delete_test_user.yml
666
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Blacklists/_add_token_to_blacklist/should_add_a_token_to_the_blacklist.yml
667
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Blacklists/_blacklisted_tokens/should_get_the_added_token_from_the_blacklist.yml
668
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_client_grants/should_return_at_least_1_result.yml
669
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_client_grants/should_return_the_test_client_grant.yml
670
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_delete_client_grant/should_delete_the_test_client_grant.yml
671
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_patch_client_grant/should_update_the_test_client_grant.yml
672
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/create_test_client.yml
673
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/create_test_client_grant.yml
674
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/delete_test_client.yml
675
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/delete_test_client_grant.yml
676
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_client/_filters/should_exclude_and_include_fields_properly.yml
677
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_client/_filters/should_include_the_specified_fields.yml
678
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_client/should_get_the_test_client.yml
679
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/_filters/should_exclude_fields_not_specified.yml
680
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/_filters/should_exclude_the_specified_fields.yml
681
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/_filters/should_include_the_specified_fields.yml
682
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/_filters/should_paginate_results.yml
683
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/should_get_at_least_one_client.yml
684
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_delete_client/should_delete_the_test_client_without_an_error.yml
685
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_patch_client/should_update_the_client_with_the_correct_attributes.yml
686
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/create_test_client.yml
687
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/_filters/should_exclude_the_fields_indicated.yml
688
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/_filters/should_include_the_fields_indicated.yml
689
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/should_find_the_correct_connection.yml
690
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_include_previously-created_connection_when_filtered.yml
691
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_should_exclude_the_fields_indicated_from_filtered_results.yml
692
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_should_include_the_fields_indicated_from_filtered_results.yml
693
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/should_include_the_previously_created_connection.yml
694
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/should_not_be_empty.yml
695
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_delete_connection/should_delete_the_connection.yml
696
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_delete_connection_user/should_delete_the_user_created.yml
697
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_update_connection/should_update_the_connection.yml
698
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/create_test_connection.yml
699
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/create_test_user.yml
700
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_DeviceCredentials/create_test_credential.yml
701
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_DeviceCredentials/create_test_user.yml
702
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_DeviceCredentials/delete_test_user.yml
703
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_configure_provider/should_configure_a_new_email_provider.yml
704
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_delete_provider/should_delete_the_existing_email_provider_without_an_error.yml
705
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_delete_provider/should_throw_an_error_trying_to_get_the_email_provider.yml
706
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_get_provider/_filters/should_get_the_existing_email_provider_with_specific_fields.yml
707
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_get_provider/_filters/should_get_the_existing_email_provider_without_specific_fields.yml
708
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_get_provider/should_get_the_existing_email_provider.yml
709
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_update_provider/should_update_the_existing_email_provider.yml
710
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/delete_existing_provider.yml
711
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_export_users_and_get_job/should_create_an_export_users_job_successfully.yml
712
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_export_users_and_get_job/should_get_the_export_users_job.yml
713
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_import_users_and_get_job/should_create_an_import_users_job_successfully.yml
714
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_import_users_and_get_job/should_get_the_import_users_job.yml
715
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_send_verification_email_and_get_job/should_create_a_new_verification_email_job.yml
716
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_send_verification_email_and_get_job/should_get_the_completed_verification_email.yml
717
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_send_verification_email_and_get_job/should_reject_an_invalid_client_id.yml
718
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/delete_imported_user.yml
719
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/search_for_connection_id.yml
720
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_log/should_match_the_created_log_entry.yml
721
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_log/should_not_be_empty.yml
722
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_filters/should_exclude_fields_not_specified.yml
723
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_filters/should_exclude_the_specified_fields.yml
724
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_filters/should_have_one_log_entry.yml
725
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_filters/should_include_the_specified_fields.yml
726
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_from/should_take_one_log_entry.yml
727
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/create_test_user.yml
728
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/delete_test_disabled_rule.yml
729
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/delete_test_enabled_rule.yml
730
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/delete_test_user.yml
731
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_delete_resource_server/should_delete_the_test_server_without_an_error.yml
732
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_patch_resource_server/should_update_the_resource_server_with_the_correct_attributes.yml
733
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_server/should_get_the_test_server.yml
734
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_servers/should_get_the_test_server.yml
735
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_servers/should_return_at_least_1_result.yml
736
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_servers/should_return_the_first_page_of_one_result.yml
737
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/create_test_server.yml
738
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/delete_test_server.yml
739
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_permissions/should_add_a_Permission_to_the_Role_successfully.yml
740
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_users/should_add_a_User_to_the_Role_successfully.yml
741
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_delete_role/should_delete_the_Role_successfully.yml
742
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role/should_get_the_Role_successfully.yml
743
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_exactly_1_Permission.yml
744
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_the_added_Permission_from_the_Role_successfully.yml
745
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_exactly_1_User.yml
746
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_the_added_User_from_the_Role_successfully.yml
747
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_roles/should_get_the_Role_successfully.yml
748
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_remove_role_permissions/should_remove_a_Permission_from_the_Role_successfully.yml
749
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_update_role/should_update_the_Role_successfully.yml
750
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_api.yml
751
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_role.yml
752
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_user.yml
753
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_api.yml
754
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_user.yml
755
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_delete_rule/should_delete_the_test_disabled_rule_without_an_error.yml
756
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_delete_rule/should_delete_the_test_enabled_rule_without_an_error.yml
757
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/_filters/should_exclude_the_fields_not_specified.yml
758
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/_filters/should_exclude_the_specified_fields.yml
759
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/_filters/should_include_the_specified_fields.yml
760
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/should_get_a_specific_rule.yml
761
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_exclude_fields_not_specified.yml
762
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_include_the_specified_fields.yml
763
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_return_at_least_1_disabled_rule.yml
764
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_return_at_least_1_enabled_rule.yml
765
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_return_paginated_results.yml
766
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/should_return_at_least_1_rule.yml
767
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_update_rule/should_update_the_disabled_rule_to_be_enabled.yml
768
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/create_test_disabled_rule.yml
769
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/create_test_enabled_rule.yml
770
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Stats/_active_users/should_have_at_least_one_active_user.yml
771
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Stats/_daily_stats/should_have_at_least_one_stats_entry_for_the_timeframe.yml
772
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_get_tenant_settings/should_get_the_tenant_settings.yml
773
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_get_tenant_settings_with_specific_fields/should_exclude_a_field_not_requested.yml
774
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_get_tenant_settings_with_specific_fields/should_include_the_field_requested.yml
775
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_update_tenant_settings/should_revert_the_tenant_name.yml
776
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_update_tenant_settings/should_update_the_tenant_settings_with_a_new_tenant_name.yml
777
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/_post_email_verification/should_create_an_email_verification_ticket.yml
778
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/_post_password_change/should_create_a_password_change_ticket.yml
779
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/create_test_user.yml
780
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/delete_test_user.yml
781
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_add_user_permissions/should_add_a_Permissions_for_a_User_successfully.yml
782
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_add_user_roles/should_add_a_Role_to_a_User_successfully.yml
783
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user/should_delete_the_User_successfully.yml
784
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user/should_delete_the_secondary_User_successfully.yml
785
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user_provider/should_attempt_to_delete_the_MFA_provider_for_the_User.yml
786
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_enrollments/should_get_Enrollments_for_a_User_successfully.yml
787
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_permissions/should_get_exactly_1_Permission_for_a_User_successfully.yml
788
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_permissions/should_get_the_correct_Permission_for_a_User_successfully.yml
789
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_roles/should_get_Roles_for_a_User_successfully.yml
790
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_invalidate_browsers/should_invalidate_MFA_browsers_for_the_User_successfully.yml
791
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_link_user_account/should_link_two_Users_successfully.yml
792
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_patch_user/should_patch_the_User_successfully.yml
793
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_remove_user_permissions/should_remove_a_Permission_from_a_User_successfully.yml
794
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_remove_user_roles/should_remove_a_Role_from_a_User_successfully.yml
795
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_unlink_user_account/should_unlink_two_Users_successfully.yml
796
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_exclude_fields_not_indicated.yml
797
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_exclude_the_fields_indicated.yml
798
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_include_the_fields_indicated.yml
799
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/should_retrieve_the_created_user.yml
800
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user_logs/should_get_Logs_for_a_User_successfully.yml
801
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/is_expected_to_find_a_user_with_a_v2_search_engine_query.yml
802
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/is_expected_to_find_a_user_with_a_v3_search_engine_query.yml
803
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_exclude_the_indicated_fields_when_paginated.yml
804
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_include_the_indicated_fields_when_paginated.yml
805
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_not_include_other_fields_when_paginated.yml
806
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_return_the_correct_number_of_results_when_paginated.yml
807
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/should_have_at_least_one_user.yml
808
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_secondary_test_user.yml
809
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_api.yml
810
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_role.yml
811
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_user.yml
812
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/delete_test_api.yml
813
- - spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/delete_test_role.yml
814
- - spec/integration/lib/auth0/api/api_authentication_spec.rb
815
- - spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
816
- - spec/integration/lib/auth0/api/v2/api_client_grants_spec.rb
817
- - spec/integration/lib/auth0/api/v2/api_clients_spec.rb
818
- - spec/integration/lib/auth0/api/v2/api_connections_spec.rb
819
- - spec/integration/lib/auth0/api/v2/api_email_spec.rb
820
- - spec/integration/lib/auth0/api/v2/api_jobs_spec.rb
821
- - spec/integration/lib/auth0/api/v2/api_logs_spec.rb
822
- - spec/integration/lib/auth0/api/v2/api_resource_servers_spec.rb
823
- - spec/integration/lib/auth0/api/v2/api_roles_spec.rb
824
- - spec/integration/lib/auth0/api/v2/api_rules_spec.rb
825
- - spec/integration/lib/auth0/api/v2/api_stats_spec.rb
826
- - spec/integration/lib/auth0/api/v2/api_tenants_spec.rb
827
- - spec/integration/lib/auth0/api/v2/api_tickets_spec.rb
828
- - spec/integration/lib/auth0/api/v2/api_user_blocks_spec.rb
829
- - spec/integration/lib/auth0/api/v2/api_users_spec.rb
830
- - spec/integration/lib/auth0/auth0_client_spec.rb
831
- - spec/lib/auth0/api/v2/actions_spec.rb
832
- - spec/lib/auth0/api/v2/anomaly_spec.rb
833
- - spec/lib/auth0/api/v2/attack_protection_spec.rb
834
- - spec/lib/auth0/api/v2/blacklists_spec.rb
835
- - spec/lib/auth0/api/v2/branding_spec.rb
836
- - spec/lib/auth0/api/v2/client_grants_spec.rb
837
- - spec/lib/auth0/api/v2/clients_spec.rb
838
- - spec/lib/auth0/api/v2/connections_spec.rb
839
- - spec/lib/auth0/api/v2/device_credentials_spec.rb
840
- - spec/lib/auth0/api/v2/emails_spec.rb
841
- - spec/lib/auth0/api/v2/grants_spec.rb
842
- - spec/lib/auth0/api/v2/guardian_spec.rb
843
- - spec/lib/auth0/api/v2/jobs_spec.rb
844
- - spec/lib/auth0/api/v2/log_streams_spec.rb
845
- - spec/lib/auth0/api/v2/logs_spec.rb
846
- - spec/lib/auth0/api/v2/organizations_spec.rb
847
- - spec/lib/auth0/api/v2/prompts_spec.rb
848
- - spec/lib/auth0/api/v2/resource_servers_spec.rb
849
- - spec/lib/auth0/api/v2/roles_spec.rb
850
- - spec/lib/auth0/api/v2/rules_spec.rb
851
- - spec/lib/auth0/api/v2/stats_spec.rb
852
- - spec/lib/auth0/api/v2/tenants_spec.rb
853
- - spec/lib/auth0/api/v2/tickets_spec.rb
854
- - spec/lib/auth0/api/v2/user_blocks_spec.rb
855
- - spec/lib/auth0/api/v2/users_by_email_spec.rb
856
- - spec/lib/auth0/api/v2/users_spec.rb
857
- - spec/lib/auth0/client_spec.rb
858
- - spec/lib/auth0/mixins/httpproxy_spec.rb
859
- - spec/lib/auth0/mixins/initializer_spec.rb
860
- - spec/lib/auth0/mixins/token_management_spec.rb
861
- - spec/lib/auth0/mixins/validation_spec.rb
862
- - spec/spec_helper.rb
863
- - spec/support/credentials.rb
864
- - spec/support/dummy_class.rb
865
- - spec/support/dummy_class_for_proxy.rb
866
- - spec/support/dummy_class_for_restclient.rb
867
- - spec/support/dummy_class_for_tokens.rb
868
- - spec/support/import_users.json
869
- - spec/support/stub_response.rb
641
+ test_files: []