auth0 4.1.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +38 -0
  3. data/DEPLOYMENT.md +10 -1
  4. data/Dockerfile +5 -0
  5. data/README.md +14 -17
  6. data/RUBYGEM.md +9 -0
  7. data/auth0.gemspec +2 -2
  8. data/examples/ruby-api/.env.example +2 -0
  9. data/examples/ruby-on-rails-api/.env.example +2 -0
  10. data/examples/ruby-on-rails-api/Gemfile +7 -7
  11. data/examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb +2 -2
  12. data/examples/ruby-on-rails-api/app/models/User.rb +5 -0
  13. data/examples/ruby-on-rails-api/config/initializers/knock.rb +2 -20
  14. data/lib/auth0/api/authentication_endpoints.rb +10 -9
  15. data/lib/auth0/api/v2.rb +2 -0
  16. data/lib/auth0/api/v2/users.rb +1 -0
  17. data/lib/auth0/api/v2/users_by_email.rb +35 -0
  18. data/lib/auth0/exception.rb +2 -0
  19. data/lib/auth0/mixins/httpproxy.rb +6 -1
  20. data/lib/auth0/version.rb +1 -1
  21. data/publish_rubygem.sh +10 -0
  22. data/spec/integration/lib/auth0/api/api_authentication_spec.rb +3 -43
  23. data/spec/integration/lib/auth0/api/v2/api_client_grants_spec.rb +26 -17
  24. data/spec/integration/lib/auth0/api/v2/api_clients_spec.rb +45 -9
  25. data/spec/integration/lib/auth0/api/v2/api_connections_spec.rb +58 -13
  26. data/spec/integration/lib/auth0/api/v2/api_device_credentials_spec.rb +22 -4
  27. data/spec/integration/lib/auth0/api/v2/api_email_spec.rb +66 -22
  28. data/spec/integration/lib/auth0/api/v2/api_logs_spec.rb +38 -24
  29. data/spec/integration/lib/auth0/api/v2/api_resource_servers_spec.rb +15 -2
  30. data/spec/integration/lib/auth0/api/v2/api_rules_spec.rb +52 -16
  31. data/spec/integration/lib/auth0/api/v2/api_stats_spec.rb +12 -3
  32. data/spec/integration/lib/auth0/api/v2/api_tenants_spec.rb +21 -5
  33. data/spec/integration/lib/auth0/api/v2/api_tickets_spec.rb +15 -3
  34. data/spec/integration/lib/auth0/api/v2/api_users_spec.rb +58 -37
  35. data/spec/integration/lib/auth0/auth0_client_spec.rb +1 -1
  36. data/spec/lib/auth0/api/authentication_endpoints_spec.rb +5 -3
  37. data/spec/lib/auth0/api/v2/users_by_email_spec.rb +21 -0
  38. data/spec/lib/auth0/client_spec.rb +0 -61
  39. data/spec/spec_helper.rb +23 -0
  40. data/spec/spec_helper_full.rb +8 -19
  41. data/spec/spec_helper_unit.rb +0 -9
  42. data/spec/support/credentials.rb +2 -0
  43. data/spec/support/dummy_class.rb +1 -1
  44. metadata +55 -107
  45. data/spec/integration/lib/auth0/api/v1/api_clients_spec.rb +0 -12
  46. data/spec/integration/lib/auth0/api/v1/api_users_spec.rb +0 -52
  47. data/spec/lib/auth0/api/v1/clients_spec.rb +0 -61
  48. data/spec/lib/auth0/api/v1/connections_spec.rb +0 -66
  49. data/spec/lib/auth0/api/v1/logs_spec.rb +0 -46
  50. data/spec/lib/auth0/api/v1/rules_spec.rb +0 -42
  51. data/spec/lib/auth0/api/v1/users_spec.rb +0 -248
@@ -43,7 +43,7 @@ describe Auth0::Client do
43
43
  it { expect { Auth0Client.new(credentials) }.to_not raise_error }
44
44
  end
45
45
 
46
- it_should_behave_like 'valid credentials' do
46
+ it_should_behave_like 'invalid credentials' do
47
47
  let(:credentials) { valid_v1_credentials }
48
48
  end
49
49
  it_should_behave_like 'valid credentials' do
@@ -57,10 +57,12 @@ describe Auth0::Api::AuthenticationEndpoints do
57
57
 
58
58
  context '.login' do
59
59
  it { expect(@instance).to respond_to(:login) }
60
- it 'is expected to make post to /oauth/ro' do
60
+ it 'is expected to make post to /oauth/token' do
61
61
  expect(@instance).to receive(:post).with(
62
- '/oauth/ro',
63
- client_id: @instance.client_id, username: 'test@test.com',
62
+ '/oauth/token',
63
+ client_id: @instance.client_id,
64
+ username: 'test@test.com',
65
+ client_secret: @instance.client_secret,
64
66
  password: 'password', scope: 'openid', connection: 'Username-Password-Authentication',
65
67
  grant_type: 'password', id_token: nil, device: nil
66
68
  )
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+ describe Auth0::Api::V2::UsersByEmail do
3
+ before :all do
4
+ dummy_instance = DummyClass.new
5
+ dummy_instance.extend(Auth0::Api::V2::UsersByEmail)
6
+ @instance = dummy_instance
7
+ end
8
+
9
+ context '.users_by_email' do
10
+ it { expect(@instance).to respond_to(:users_by_email) }
11
+ it 'is expected to call /api/v2/users-by-email' do
12
+ expect(@instance).to receive(:get).with(
13
+ '/api/v2/users-by-email',
14
+ fields: nil,
15
+ include_fields: nil,
16
+ email: 'email'
17
+ )
18
+ expect { @instance.users_by_email('email') }.not_to raise_error
19
+ end
20
+ end
21
+ end
@@ -1,21 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Auth0::Client do
4
- shared_examples_for 'v1 API client' do
5
- it { should be_a Auth0::Api::V1 }
6
- it { should be_a Auth0::Api::V1::Users }
7
- it { should be_a Auth0::Api::V1::Connections }
8
- it { should be_a Auth0::Api::V1::Clients }
9
- it { should be_a Auth0::Api::V1::Rules }
10
- it { should be_a Auth0::Api::V1::Logs }
11
- it { should_not be_a Auth0::Api::V2 }
12
- it { should_not be_a Auth0::Api::V2::Clients }
13
- it { should_not be_a Auth0::Api::V2::Users }
14
- it { should_not be_a Auth0::Api::V2::Jobs }
15
- it { should_not be_a Auth0::Api::V2::Stats }
16
- it { should_not be_a Auth0::Api::V2::Blacklists }
17
- end
18
-
19
4
  shared_examples_for 'v2 API client' do
20
5
  it { should be_a Auth0::Api::V2 }
21
6
  it { should be_a Auth0::Api::V2::Clients }
@@ -23,12 +8,6 @@ describe Auth0::Client do
23
8
  it { should be_a Auth0::Api::V2::Stats }
24
9
  it { should be_a Auth0::Api::V2::Jobs }
25
10
  it { should be_a Auth0::Api::V2::Blacklists }
26
- it { should_not be_a Auth0::Api::V1 }
27
- it { should_not be_a Auth0::Api::V1::Users }
28
- it { should_not be_a Auth0::Api::V1::Connections }
29
- it { should_not be_a Auth0::Api::V1::Clients }
30
- it { should_not be_a Auth0::Api::V1::Rules }
31
- it { should_not be_a Auth0::Api::V1::Logs }
32
11
  end
33
12
 
34
13
  shared_examples_for 'authentication API client' do
@@ -38,48 +17,8 @@ describe Auth0::Client do
38
17
  let(:domain) { 'samples.auth0.com' }
39
18
  let(:client_id) { 'client_id' }
40
19
  let(:client_secret) { 'client_secret' }
41
- let(:jwt) { 'Header.Payload.Signature' }
42
20
  let(:access_token) { 'token' }
43
21
 
44
- describe 'V1 client' do
45
- before :each do
46
- allow_any_instance_of(Auth0::Api::AuthenticationEndpoints).to receive(:obtain_access_token).and_return 'token'
47
- end
48
-
49
- context 'with namespace' do
50
- let(:subject) do
51
- Auth0::Client.new(protocols: 'v1', client_id: 'client_id', client_secret: 'client_secret',
52
- namespace: 'samples.auth0.com')
53
- end
54
-
55
- it_should_behave_like 'v1 API client'
56
- it_should_behave_like 'authentication API client'
57
- end
58
-
59
- context 'with domain' do
60
- let(:subject) do
61
- Auth0::Client.new(protocols: 'v1', client_id: 'client_id', client_secret: 'client_secret',
62
- domain: 'samples.auth0.com')
63
- end
64
-
65
- it_should_behave_like 'v1 API client'
66
- it_should_behave_like 'authentication API client'
67
- end
68
-
69
- context 'with version' do
70
- let(:subject) do
71
- Auth0::Client.new(
72
- client_id: 'client_id',
73
- client_secret: 'client_secret',
74
- domain: 'samples.auth0.com',
75
- api_version: 1
76
- )
77
- end
78
- it_should_behave_like 'v1 API client'
79
- it_should_behave_like 'authentication API client'
80
- end
81
- end
82
-
83
22
  describe 'V2 client' do
84
23
  before :each do
85
24
  expect_any_instance_of(Auth0::Api::AuthenticationEndpoints).not_to receive(:obtain_access_token)
@@ -1,2 +1,25 @@
1
+ require 'dotenv'
2
+
3
+ Dotenv.load
4
+
1
5
  mode = ENV['MODE'] || 'unit'
6
+
7
+ $LOAD_PATH.unshift File.expand_path('..', __FILE__)
8
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
9
+
10
+ require 'rspec'
11
+ require 'rack/test'
12
+ require 'faker'
13
+ require 'auth0'
14
+
15
+ Dir['./lib/**/*.rb'].each { |f| require f }
16
+ Dir['./spec/support/**/*.rb'].each { |f| require f }
17
+ Dir['./spec/support/*.rb'].each { |f| require f }
18
+
19
+ def entity_suffix
20
+ (ENV['TRAVIS_JOB_ID'] || 'local').delete('_')
21
+ end
22
+
23
+ puts "Entity suffix is #{entity_suffix}"
24
+
2
25
  require_relative "spec_helper_#{mode}"
@@ -1,6 +1,3 @@
1
- $LOAD_PATH.unshift File.expand_path('..', __FILE__)
2
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
3
-
4
1
  require 'coveralls'
5
2
  Coveralls.wear!
6
3
 
@@ -10,25 +7,11 @@ SimpleCov.start do
10
7
  add_filter '/spec/integration'
11
8
  end
12
9
 
13
- require 'rspec'
14
- require 'rack/test'
15
- require 'faker'
16
- require 'auth0'
17
10
  require 'pry'
18
11
 
19
- Dir['./lib/**/*.rb'].each { |f| require f }
20
- Dir['./spec/support/**/*.rb'].each { |f| require f }
21
-
22
- def entity_suffix
23
- (ENV['TRAVIS_JOB_ID'] || 'local').delete('_')
24
- end
25
-
26
- puts "Entity suffix is #{entity_suffix}"
27
-
28
12
  RSpec.configure do |config|
29
13
  config.filter_run focus: true
30
14
  config.run_all_when_everything_filtered = true
31
- config.include Rack::Test::Methods
32
15
  config.include Credentials
33
16
  config.after(:suite) do
34
17
  puts "Cleaning up for #{entity_suffix}"
@@ -38,11 +21,17 @@ RSpec.configure do |config|
38
21
  v2_client
39
22
  .clients
40
23
  .select { |client| client['name'] != 'DefaultApp' && !client['global'] && client['name'].include?(entity_suffix) }
41
- .each { |client| v2_client.delete_client(client['client_id']) }
24
+ .each { |client|
25
+ sleep 1
26
+ v2_client.delete_client(client['client_id'])
27
+ }
42
28
  v2_client
43
29
  .users
44
30
  .select { |user| user['email'].split('@').first.include? entity_suffix }
45
- .each { |user| v2_client.delete_user(user['user_id']) }
31
+ .each { |user|
32
+ sleep 1
33
+ v2_client.delete_user(user['user_id'])
34
+ }
46
35
  puts "Finished cleaning up for #{entity_suffix}"
47
36
  end
48
37
  end
@@ -1,12 +1,3 @@
1
- $LOAD_PATH.unshift File.expand_path('..', __FILE__)
2
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
3
- require 'rspec'
4
- require 'rack/test'
5
- require 'faker'
6
- require 'auth0'
7
- Dir['./lib/**/*.rb'].each { |f| require f }
8
- Dir['./spec/support/**/*.rb'].each { |f| require f }
9
1
  RSpec.configure do |config|
10
- config.include Rack::Test::Methods
11
2
  config.fail_fast = true
12
3
  end
@@ -1,4 +1,6 @@
1
1
  module Credentials
2
+ module_function
3
+
2
4
  def v1_creds
3
5
  { client_id: ENV['CLIENT_ID'],
4
6
  client_secret: ENV['CLIENT_SECRET'],
@@ -1,5 +1,5 @@
1
1
  class DummyClass
2
- attr_reader :domain, :client_id
2
+ attr_reader :domain, :client_id, :client_secret
3
3
 
4
4
  def initialize
5
5
  @domain = 'test.auth0.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
@@ -11,208 +11,208 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-07-25 00:00:00.000000000 Z
14
+ date: 2018-02-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ~>
20
+ - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: 1.8.0
22
+ version: '2.0'
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: 1.8.0
29
+ version: '2.0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rake
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ~>
34
+ - - "~>"
35
35
  - !ruby/object:Gem::Version
36
36
  version: '10.4'
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ~>
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '10.4'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: fuubar
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ~>
48
+ - - "~>"
49
49
  - !ruby/object:Gem::Version
50
50
  version: '2.0'
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ~>
55
+ - - "~>"
56
56
  - !ruby/object:Gem::Version
57
57
  version: '2.0'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: guard-rspec
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - ~>
62
+ - - "~>"
63
63
  - !ruby/object:Gem::Version
64
64
  version: '4.5'
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ~>
69
+ - - "~>"
70
70
  - !ruby/object:Gem::Version
71
71
  version: '4.5'
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: dotenv-rails
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - ~>
76
+ - - "~>"
77
77
  - !ruby/object:Gem::Version
78
78
  version: '2.0'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - ~>
83
+ - - "~>"
84
84
  - !ruby/object:Gem::Version
85
85
  version: '2.0'
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: pry
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - ~>
90
+ - - "~>"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0.10'
93
93
  type: :development
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ~>
97
+ - - "~>"
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0.10'
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: pry-nav
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - ~>
104
+ - - "~>"
105
105
  - !ruby/object:Gem::Version
106
106
  version: 0.2.4
107
107
  type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ~>
111
+ - - "~>"
112
112
  - !ruby/object:Gem::Version
113
113
  version: 0.2.4
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: rspec
116
116
  requirement: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - ~>
118
+ - - "~>"
119
119
  - !ruby/object:Gem::Version
120
120
  version: '3.1'
121
- - - '>='
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: 3.1.0
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - ~>
128
+ - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: '3.1'
131
- - - '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: 3.1.0
134
134
  - !ruby/object:Gem::Dependency
135
135
  name: rack-test
136
136
  requirement: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ~>
138
+ - - "~>"
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0.6'
141
141
  type: :development
142
142
  prerelease: false
143
143
  version_requirements: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ~>
145
+ - - "~>"
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0.6'
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: rack
150
150
  requirement: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ~>
152
+ - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: 1.6.4
155
155
  type: :development
156
156
  prerelease: false
157
157
  version_requirements: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - ~>
159
+ - - "~>"
160
160
  - !ruby/object:Gem::Version
161
161
  version: 1.6.4
162
162
  - !ruby/object:Gem::Dependency
163
163
  name: simplecov
164
164
  requirement: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - ~>
166
+ - - "~>"
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0.9'
169
169
  type: :development
170
170
  prerelease: false
171
171
  version_requirements: !ruby/object:Gem::Requirement
172
172
  requirements:
173
- - - ~>
173
+ - - "~>"
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0.9'
176
176
  - !ruby/object:Gem::Dependency
177
177
  name: faker
178
178
  requirement: !ruby/object:Gem::Requirement
179
179
  requirements:
180
- - - ~>
180
+ - - "~>"
181
181
  - !ruby/object:Gem::Version
182
182
  version: '1.4'
183
183
  type: :development
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
186
186
  requirements:
187
- - - ~>
187
+ - - "~>"
188
188
  - !ruby/object:Gem::Version
189
189
  version: '1.4'
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: yard
192
192
  requirement: !ruby/object:Gem::Requirement
193
193
  requirements:
194
- - - ~>
194
+ - - "~>"
195
195
  - !ruby/object:Gem::Version
196
- version: '0.8'
196
+ version: 0.9.12
197
197
  type: :development
198
198
  prerelease: false
199
199
  version_requirements: !ruby/object:Gem::Requirement
200
200
  requirements:
201
- - - ~>
201
+ - - "~>"
202
202
  - !ruby/object:Gem::Version
203
- version: '0.8'
203
+ version: 0.9.12
204
204
  - !ruby/object:Gem::Dependency
205
205
  name: gem-release
206
206
  requirement: !ruby/object:Gem::Requirement
207
207
  requirements:
208
- - - ~>
208
+ - - "~>"
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0.7'
211
211
  type: :development
212
212
  prerelease: false
213
213
  version_requirements: !ruby/object:Gem::Requirement
214
214
  requirements:
215
- - - ~>
215
+ - - "~>"
216
216
  - !ruby/object:Gem::Version
217
217
  version: '0.7'
218
218
  description: Ruby toolkit for Auth0 API https://auth0.com.
@@ -222,19 +222,21 @@ executables: []
222
222
  extensions: []
223
223
  extra_rdoc_files: []
224
224
  files:
225
- - .bundle/config
226
- - .gemrelease
227
- - .gitignore
228
- - .rspec
229
- - .rubocop.yml
230
- - .rubocop_todo.yml
231
- - .travis.yml
225
+ - ".bundle/config"
226
+ - ".gemrelease"
227
+ - ".gitignore"
228
+ - ".rspec"
229
+ - ".rubocop.yml"
230
+ - ".rubocop_todo.yml"
231
+ - ".travis.yml"
232
232
  - CHANGELOG.md
233
233
  - DEPLOYMENT.md
234
+ - Dockerfile
234
235
  - Gemfile
235
236
  - Guardfile
236
237
  - LICENSE
237
238
  - README.md
239
+ - RUBYGEM.md
238
240
  - Rakefile
239
241
  - auth0.gemspec
240
242
  - build_travis.sh
@@ -245,11 +247,13 @@ files:
245
247
  - doc_config/templates/default/layout/html/footer.erb
246
248
  - doc_config/templates/default/layout/html/headers.erb
247
249
  - doc_config/templates/default/layout/html/layout.erb
250
+ - examples/ruby-api/.env.example
248
251
  - examples/ruby-api/.gitignore
249
252
  - examples/ruby-api/Gemfile
250
253
  - examples/ruby-api/README.md
251
254
  - examples/ruby-api/config.ru
252
255
  - examples/ruby-api/main.rb
256
+ - examples/ruby-on-rails-api/.env.example
253
257
  - examples/ruby-on-rails-api/.gitignore
254
258
  - examples/ruby-on-rails-api/Gemfile
255
259
  - examples/ruby-on-rails-api/README.md
@@ -264,6 +268,7 @@ files:
264
268
  - examples/ruby-on-rails-api/app/helpers/application_helper.rb
265
269
  - examples/ruby-on-rails-api/app/mailers/.keep
266
270
  - examples/ruby-on-rails-api/app/models/.keep
271
+ - examples/ruby-on-rails-api/app/models/User.rb
267
272
  - examples/ruby-on-rails-api/app/models/concerns/.keep
268
273
  - examples/ruby-on-rails-api/app/views/layouts/application.html.erb
269
274
  - examples/ruby-on-rails-api/bin/bundle
@@ -333,6 +338,7 @@ files:
333
338
  - lib/auth0/api/v2/tickets.rb
334
339
  - lib/auth0/api/v2/user_blocks.rb
335
340
  - lib/auth0/api/v2/users.rb
341
+ - lib/auth0/api/v2/users_by_email.rb
336
342
  - lib/auth0/client.rb
337
343
  - lib/auth0/exception.rb
338
344
  - lib/auth0/mixins.rb
@@ -340,9 +346,8 @@ files:
340
346
  - lib/auth0/mixins/initializer.rb
341
347
  - lib/auth0/version.rb
342
348
  - lib/auth0_client.rb
349
+ - publish_rubygem.sh
343
350
  - spec/integration/lib/auth0/api/api_authentication_spec.rb
344
- - spec/integration/lib/auth0/api/v1/api_clients_spec.rb
345
- - spec/integration/lib/auth0/api/v1/api_users_spec.rb
346
351
  - spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
347
352
  - spec/integration/lib/auth0/api/v2/api_client_grants_spec.rb
348
353
  - spec/integration/lib/auth0/api/v2/api_clients_spec.rb
@@ -360,11 +365,6 @@ files:
360
365
  - spec/integration/lib/auth0/api/v2/api_users_spec.rb
361
366
  - spec/integration/lib/auth0/auth0_client_spec.rb
362
367
  - spec/lib/auth0/api/authentication_endpoints_spec.rb
363
- - spec/lib/auth0/api/v1/clients_spec.rb
364
- - spec/lib/auth0/api/v1/connections_spec.rb
365
- - spec/lib/auth0/api/v1/logs_spec.rb
366
- - spec/lib/auth0/api/v1/rules_spec.rb
367
- - spec/lib/auth0/api/v1/users_spec.rb
368
368
  - spec/lib/auth0/api/v2/blacklists_spec.rb
369
369
  - spec/lib/auth0/api/v2/client_grants_spec.rb
370
370
  - spec/lib/auth0/api/v2/clients_spec.rb
@@ -379,6 +379,7 @@ files:
379
379
  - spec/lib/auth0/api/v2/tenants_spec.rb
380
380
  - spec/lib/auth0/api/v2/tickets_spec.rb
381
381
  - spec/lib/auth0/api/v2/user_blocks_spec.rb
382
+ - spec/lib/auth0/api/v2/users_by_email_spec.rb
382
383
  - spec/lib/auth0/api/v2/users_spec.rb
383
384
  - spec/lib/auth0/client_spec.rb
384
385
  - spec/lib/auth0/mixins/httpproxy_spec.rb
@@ -402,71 +403,18 @@ require_paths:
402
403
  - lib
403
404
  required_ruby_version: !ruby/object:Gem::Requirement
404
405
  requirements:
405
- - - '>='
406
+ - - ">="
406
407
  - !ruby/object:Gem::Version
407
408
  version: '0'
408
409
  required_rubygems_version: !ruby/object:Gem::Requirement
409
410
  requirements:
410
- - - '>='
411
+ - - ">="
411
412
  - !ruby/object:Gem::Version
412
413
  version: '0'
413
414
  requirements: []
414
415
  rubyforge_project: auth0
415
- rubygems_version: 2.4.6
416
+ rubygems_version: 2.7.5
416
417
  signing_key:
417
418
  specification_version: 4
418
419
  summary: Auth0 API Client
419
- test_files:
420
- - spec/integration/lib/auth0/api/api_authentication_spec.rb
421
- - spec/integration/lib/auth0/api/v1/api_clients_spec.rb
422
- - spec/integration/lib/auth0/api/v1/api_users_spec.rb
423
- - spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
424
- - spec/integration/lib/auth0/api/v2/api_client_grants_spec.rb
425
- - spec/integration/lib/auth0/api/v2/api_clients_spec.rb
426
- - spec/integration/lib/auth0/api/v2/api_connections_spec.rb
427
- - spec/integration/lib/auth0/api/v2/api_device_credentials_spec.rb
428
- - spec/integration/lib/auth0/api/v2/api_email_spec.rb
429
- - spec/integration/lib/auth0/api/v2/api_jobs_spec.rb
430
- - spec/integration/lib/auth0/api/v2/api_logs_spec.rb
431
- - spec/integration/lib/auth0/api/v2/api_resource_servers_spec.rb
432
- - spec/integration/lib/auth0/api/v2/api_rules_spec.rb
433
- - spec/integration/lib/auth0/api/v2/api_stats_spec.rb
434
- - spec/integration/lib/auth0/api/v2/api_tenants_spec.rb
435
- - spec/integration/lib/auth0/api/v2/api_tickets_spec.rb
436
- - spec/integration/lib/auth0/api/v2/api_user_blocks_spec.rb
437
- - spec/integration/lib/auth0/api/v2/api_users_spec.rb
438
- - spec/integration/lib/auth0/auth0_client_spec.rb
439
- - spec/lib/auth0/api/authentication_endpoints_spec.rb
440
- - spec/lib/auth0/api/v1/clients_spec.rb
441
- - spec/lib/auth0/api/v1/connections_spec.rb
442
- - spec/lib/auth0/api/v1/logs_spec.rb
443
- - spec/lib/auth0/api/v1/rules_spec.rb
444
- - spec/lib/auth0/api/v1/users_spec.rb
445
- - spec/lib/auth0/api/v2/blacklists_spec.rb
446
- - spec/lib/auth0/api/v2/client_grants_spec.rb
447
- - spec/lib/auth0/api/v2/clients_spec.rb
448
- - spec/lib/auth0/api/v2/connections_spec.rb
449
- - spec/lib/auth0/api/v2/device_credentials_spec.rb
450
- - spec/lib/auth0/api/v2/emails_spec.rb
451
- - spec/lib/auth0/api/v2/jobs_spec.rb
452
- - spec/lib/auth0/api/v2/logs_spec.rb
453
- - spec/lib/auth0/api/v2/resource_servers_spec.rb
454
- - spec/lib/auth0/api/v2/rules_spec.rb
455
- - spec/lib/auth0/api/v2/stats_spec.rb
456
- - spec/lib/auth0/api/v2/tenants_spec.rb
457
- - spec/lib/auth0/api/v2/tickets_spec.rb
458
- - spec/lib/auth0/api/v2/user_blocks_spec.rb
459
- - spec/lib/auth0/api/v2/users_spec.rb
460
- - spec/lib/auth0/client_spec.rb
461
- - spec/lib/auth0/mixins/httpproxy_spec.rb
462
- - spec/lib/auth0/mixins/initializer_spec.rb
463
- - spec/spec_helper.rb
464
- - spec/spec_helper_full.rb
465
- - spec/spec_helper_unit.rb
466
- - spec/support/credentials.rb
467
- - spec/support/dummy_class.rb
468
- - spec/support/dummy_class_for_proxy.rb
469
- - spec/support/dummy_class_for_restclient.rb
470
- - spec/support/import_users.json
471
- - spec/support/stub_response.rb
472
- has_rdoc:
420
+ test_files: []