auth0 4.10.0 → 4.15.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.
- checksums.yaml +4 -4
- data/.env.example +2 -0
- data/CHANGELOG.md +55 -0
- data/DEPLOYMENT.md +14 -0
- data/Gemfile.lock +58 -53
- data/README.md +105 -25
- data/auth0.gemspec +2 -0
- data/lib/auth0.rb +1 -0
- data/lib/auth0/algorithm.rb +5 -0
- data/lib/auth0/api/authentication_endpoints.rb +38 -2
- data/lib/auth0/api/v1/clients.rb +12 -2
- data/lib/auth0/api/v1/connections.rb +15 -0
- data/lib/auth0/api/v1/logs.rb +9 -0
- data/lib/auth0/api/v1/rules.rb +12 -0
- data/lib/auth0/api/v1/users.rb +63 -0
- data/lib/auth0/api/v2.rb +4 -0
- data/lib/auth0/api/v2/log_streams.rb +78 -0
- data/lib/auth0/api/v2/prompts.rb +70 -0
- data/lib/auth0/exception.rb +2 -0
- data/lib/auth0/mixins/httpproxy.rb +1 -1
- data/lib/auth0/mixins/validation.rb +307 -0
- data/lib/auth0/version.rb +1 -1
- data/spec/lib/auth0/api/authentication_endpoints_spec.rb +37 -10
- data/spec/lib/auth0/api/v2/log_streams_spec.rb +84 -0
- data/spec/lib/auth0/api/v2/prompts_spec.rb +88 -0
- data/spec/lib/auth0/mixins/validation_spec.rb +466 -0
- data/spec/spec_helper.rb +4 -0
- metadata +43 -5
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'pry'
|
2
2
|
require 'rack/test'
|
3
3
|
require 'faker'
|
4
|
+
require 'json'
|
4
5
|
require 'auth0'
|
5
6
|
|
6
7
|
require 'simplecov'
|
@@ -27,6 +28,9 @@ VCR.configure do |config|
|
|
27
28
|
config.hook_into :webmock
|
28
29
|
config.filter_sensitive_data('CLIENT_SECRET') { ENV['CLIENT_SECRET'] }
|
29
30
|
config.filter_sensitive_data('API_TOKEN') { ENV['MASTER_JWT'] }
|
31
|
+
|
32
|
+
ENV['DOMAIN'] = 'auth0-sdk-tests.auth0.com'
|
33
|
+
ENV['CLIENT_ID'] = '2cnWuug6zaFX1j0ge1P99jAUn0F4XSuI'
|
30
34
|
end
|
31
35
|
|
32
36
|
$LOAD_PATH.unshift File.expand_path('..', __FILE__)
|
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: 4.
|
4
|
+
version: 4.15.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: 2020-
|
14
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rest-client
|
@@ -27,6 +27,34 @@ dependencies:
|
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 2.0.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: jwt
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - "~>"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2.2.0
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.2.0
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: zache
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.12.0
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 0.12.0
|
30
58
|
- !ruby/object:Gem::Dependency
|
31
59
|
name: rake
|
32
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,6 +252,7 @@ extra_rdoc_files: []
|
|
224
252
|
files:
|
225
253
|
- ".bundle/config"
|
226
254
|
- ".circleci/config.yml"
|
255
|
+
- ".env.example"
|
227
256
|
- ".gemrelease"
|
228
257
|
- ".github/CODEOWNERS"
|
229
258
|
- ".github/ISSUE_TEMPLATE.md"
|
@@ -321,6 +350,7 @@ files:
|
|
321
350
|
- examples/ruby-on-rails-api/test/secured_ping_controller_test.rb
|
322
351
|
- examples/ruby-on-rails-api/test/test_helper.rb
|
323
352
|
- lib/auth0.rb
|
353
|
+
- lib/auth0/algorithm.rb
|
324
354
|
- lib/auth0/api/authentication_endpoints.rb
|
325
355
|
- lib/auth0/api/v1.rb
|
326
356
|
- lib/auth0/api/v1/clients.rb
|
@@ -338,7 +368,9 @@ files:
|
|
338
368
|
- lib/auth0/api/v2/emails.rb
|
339
369
|
- lib/auth0/api/v2/guardian.rb
|
340
370
|
- lib/auth0/api/v2/jobs.rb
|
371
|
+
- lib/auth0/api/v2/log_streams.rb
|
341
372
|
- lib/auth0/api/v2/logs.rb
|
373
|
+
- lib/auth0/api/v2/prompts.rb
|
342
374
|
- lib/auth0/api/v2/resource_servers.rb
|
343
375
|
- lib/auth0/api/v2/roles.rb
|
344
376
|
- lib/auth0/api/v2/rules.rb
|
@@ -558,7 +590,9 @@ files:
|
|
558
590
|
- spec/lib/auth0/api/v2/emails_spec.rb
|
559
591
|
- spec/lib/auth0/api/v2/guardian_spec.rb
|
560
592
|
- spec/lib/auth0/api/v2/jobs_spec.rb
|
593
|
+
- spec/lib/auth0/api/v2/log_streams_spec.rb
|
561
594
|
- spec/lib/auth0/api/v2/logs_spec.rb
|
595
|
+
- spec/lib/auth0/api/v2/prompts_spec.rb
|
562
596
|
- spec/lib/auth0/api/v2/resource_servers_spec.rb
|
563
597
|
- spec/lib/auth0/api/v2/roles_spec.rb
|
564
598
|
- spec/lib/auth0/api/v2/rules_spec.rb
|
@@ -571,6 +605,7 @@ files:
|
|
571
605
|
- spec/lib/auth0/client_spec.rb
|
572
606
|
- spec/lib/auth0/mixins/httpproxy_spec.rb
|
573
607
|
- spec/lib/auth0/mixins/initializer_spec.rb
|
608
|
+
- spec/lib/auth0/mixins/validation_spec.rb
|
574
609
|
- spec/spec_helper.rb
|
575
610
|
- spec/support/credentials.rb
|
576
611
|
- spec/support/dummy_class.rb
|
@@ -582,7 +617,7 @@ homepage: https://github.com/auth0/ruby-auth0
|
|
582
617
|
licenses:
|
583
618
|
- MIT
|
584
619
|
metadata: {}
|
585
|
-
post_install_message:
|
620
|
+
post_install_message:
|
586
621
|
rdoc_options: []
|
587
622
|
require_paths:
|
588
623
|
- lib
|
@@ -598,7 +633,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
598
633
|
version: '0'
|
599
634
|
requirements: []
|
600
635
|
rubygems_version: 3.1.2
|
601
|
-
signing_key:
|
636
|
+
signing_key:
|
602
637
|
specification_version: 4
|
603
638
|
summary: Auth0 API Client
|
604
639
|
test_files:
|
@@ -799,7 +834,9 @@ test_files:
|
|
799
834
|
- spec/lib/auth0/api/v2/emails_spec.rb
|
800
835
|
- spec/lib/auth0/api/v2/guardian_spec.rb
|
801
836
|
- spec/lib/auth0/api/v2/jobs_spec.rb
|
837
|
+
- spec/lib/auth0/api/v2/log_streams_spec.rb
|
802
838
|
- spec/lib/auth0/api/v2/logs_spec.rb
|
839
|
+
- spec/lib/auth0/api/v2/prompts_spec.rb
|
803
840
|
- spec/lib/auth0/api/v2/resource_servers_spec.rb
|
804
841
|
- spec/lib/auth0/api/v2/roles_spec.rb
|
805
842
|
- spec/lib/auth0/api/v2/rules_spec.rb
|
@@ -812,6 +849,7 @@ test_files:
|
|
812
849
|
- spec/lib/auth0/client_spec.rb
|
813
850
|
- spec/lib/auth0/mixins/httpproxy_spec.rb
|
814
851
|
- spec/lib/auth0/mixins/initializer_spec.rb
|
852
|
+
- spec/lib/auth0/mixins/validation_spec.rb
|
815
853
|
- spec/spec_helper.rb
|
816
854
|
- spec/support/credentials.rb
|
817
855
|
- spec/support/dummy_class.rb
|