auth0 4.9.0 → 4.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -30
- data/.github/CODEOWNERS +1 -1
- data/.github/stale.yml +20 -0
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +106 -55
- data/auth0.gemspec +2 -2
- data/lib/auth0/api/v2/client_grants.rb +5 -1
- data/lib/auth0/api/v2/roles.rb +3 -1
- data/lib/auth0/version.rb +1 -1
- data/spec/lib/auth0/api/v2/client_grants_spec.rb +17 -0
- data/spec/lib/auth0/api/v2/roles_spec.rb +5 -3
- metadata +14 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '088787530ff625f8af83a64dec5b298a0802be569a23161d1619e08d1db1a24b'
|
4
|
+
data.tar.gz: 3631754f52de1a123dac236e82ccab2faf71477b5ee99cb90f5b31b72ce83ca6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c71ce2a7048f106a8719e6103b66164b54dff4becb3803c6b415f4754c61f4c48e6d77dffd02a790735315ae24f6c589d94a4aab1cd54c8928ff27db7c5c0224
|
7
|
+
data.tar.gz: d48e1b2f8302a758eeef107388fe8670bbcfeca432b9c326ae56bd5b5558340d303963c23f26f76218c948a1454ed51a167da1a59aea9f987915ad960aaa7c5f
|
data/.circleci/config.yml
CHANGED
@@ -2,7 +2,7 @@ version: 2.1
|
|
2
2
|
jobs:
|
3
3
|
run-tests:
|
4
4
|
docker:
|
5
|
-
- image: circleci/ruby:2.
|
5
|
+
- image: circleci/ruby:2.5.7-buster
|
6
6
|
steps:
|
7
7
|
- checkout
|
8
8
|
- restore_cache:
|
@@ -10,42 +10,14 @@ jobs:
|
|
10
10
|
- gems-v2-{{ checksum "Gemfile.lock" }}
|
11
11
|
- gems-v2-
|
12
12
|
- run: bundle check || bundle install
|
13
|
-
- persist_to_workspace:
|
14
|
-
root: .
|
15
|
-
paths:
|
16
|
-
- Gemfile
|
17
|
-
- Gemfile.lock
|
18
|
-
- .snyk
|
19
13
|
- save_cache:
|
20
14
|
key: gems-v2--{{ checksum "Gemfile.lock" }}
|
21
15
|
paths:
|
22
16
|
- vendor/bundle
|
23
17
|
# Must define DOMAIN, CLIENT_ID, CLIENT_SECRET and MASTER_JWT env
|
24
18
|
- run: bundle exec rake test
|
25
|
-
snyk:
|
26
|
-
docker:
|
27
|
-
- image: snyk/snyk-cli:rubygems
|
28
|
-
steps:
|
29
|
-
- attach_workspace:
|
30
|
-
at: .
|
31
|
-
- run: snyk test
|
32
|
-
- run:
|
33
|
-
command: |
|
34
|
-
if [[ "${CIRCLE_BRANCH}" == "master" ]]
|
35
|
-
then
|
36
|
-
snyk monitor --org=auth0-sdks
|
37
|
-
fi
|
38
|
-
when: always
|
39
19
|
|
40
20
|
workflows:
|
41
21
|
tests:
|
42
22
|
jobs:
|
43
|
-
- run-tests
|
44
|
-
snyk:
|
45
|
-
jobs:
|
46
|
-
- run-tests
|
47
|
-
- snyk:
|
48
|
-
# Must define SNYK_TOKEN env
|
49
|
-
context: snyk-env
|
50
|
-
requires:
|
51
|
-
- run-tests
|
23
|
+
- run-tests
|
data/.github/CODEOWNERS
CHANGED
@@ -1 +1 @@
|
|
1
|
-
* @auth0/
|
1
|
+
* @auth0/dx-sdks-approver
|
data/.github/stale.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Configuration for probot-stale - https://github.com/probot/stale
|
2
|
+
|
3
|
+
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
4
|
+
daysUntilStale: 90
|
5
|
+
|
6
|
+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
|
7
|
+
daysUntilClose: 7
|
8
|
+
|
9
|
+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
|
10
|
+
exemptLabels: []
|
11
|
+
|
12
|
+
# Set to true to ignore issues with an assignee (defaults to false)
|
13
|
+
exemptAssignees: true
|
14
|
+
|
15
|
+
# Label to use when marking as stale
|
16
|
+
staleLabel: closed:stale
|
17
|
+
|
18
|
+
# Comment to post when marking as stale. Set to `false` to disable
|
19
|
+
markComment: >
|
20
|
+
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v4.10.0](https://github.com/auth0/ruby-auth0/tree/v4.10.0) (2020-04-23)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.9.0...v4.10.0)
|
6
|
+
|
7
|
+
**Added**
|
8
|
+
|
9
|
+
- Added support for name\_filter parameter \[SDK-1607\] [\#214](https://github.com/auth0/ruby-auth0/pull/214) ([Widcket](https://github.com/Widcket))
|
10
|
+
- Pass client\_id, audience at Auth0::Api::V2::ClientGrants\#client\_grants [\#209](https://github.com/auth0/ruby-auth0/pull/209) ([hkdnet](https://github.com/hkdnet))
|
11
|
+
- Add rubocop-rails [\#200](https://github.com/auth0/ruby-auth0/pull/200) ([tknzk](https://github.com/tknzk))
|
12
|
+
|
13
|
+
**Security**
|
14
|
+
|
15
|
+
- Update rack requirement from ~\> 1.6.4 to ~\> 2.1.2 [\#206](https://github.com/auth0/ruby-auth0/pull/206) ([dependabot[bot]](https://github.com/apps/dependabot))
|
16
|
+
- Update rake requirement from ~\> 10.4 to ~\> 13.0 [\#207](https://github.com/auth0/ruby-auth0/pull/207) ([dependabot[bot]](https://github.com/apps/dependabot))
|
17
|
+
- Update dependencies and CI script [\#210](https://github.com/auth0/ruby-auth0/pull/210) ([lbalmaceda](https://github.com/lbalmaceda))
|
18
|
+
|
3
19
|
## [v4.9.0](https://github.com/auth0/ruby-auth0/tree/v4.9.0) (2019-09-25)
|
4
20
|
[Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.8.0...v4.9.0)
|
5
21
|
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
auth0 (4.
|
4
|
+
auth0 (4.10.0)
|
5
5
|
rest-client (~> 2.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
+
actionpack (6.0.2.2)
|
11
|
+
actionview (= 6.0.2.2)
|
12
|
+
activesupport (= 6.0.2.2)
|
13
|
+
rack (~> 2.0, >= 2.0.8)
|
14
|
+
rack-test (>= 0.6.3)
|
15
|
+
rails-dom-testing (~> 2.0)
|
16
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
17
|
+
actionview (6.0.2.2)
|
18
|
+
activesupport (= 6.0.2.2)
|
19
|
+
builder (~> 3.1)
|
20
|
+
erubi (~> 1.4)
|
21
|
+
rails-dom-testing (~> 2.0)
|
22
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
23
|
+
activesupport (6.0.2.2)
|
24
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
|
+
i18n (>= 0.7, < 2)
|
26
|
+
minitest (~> 5.1)
|
27
|
+
tzinfo (~> 1.1)
|
28
|
+
zeitwerk (~> 2.2)
|
10
29
|
addressable (2.7.0)
|
11
30
|
public_suffix (>= 2.0.2, < 5.0)
|
12
31
|
ast (2.4.0)
|
13
|
-
|
32
|
+
builder (3.2.4)
|
33
|
+
codecov (0.1.16)
|
14
34
|
json
|
15
35
|
simplecov
|
16
36
|
url
|
17
37
|
coderay (1.1.2)
|
18
|
-
concurrent-ruby (1.1.
|
38
|
+
concurrent-ruby (1.1.6)
|
19
39
|
coveralls (0.7.1)
|
20
40
|
multi_json (~> 1.3)
|
21
41
|
rest-client
|
@@ -24,22 +44,25 @@ GEM
|
|
24
44
|
thor
|
25
45
|
crack (0.4.3)
|
26
46
|
safe_yaml (~> 1.0.0)
|
47
|
+
crass (1.0.6)
|
27
48
|
diff-lcs (1.3)
|
28
49
|
docile (1.3.2)
|
29
50
|
domain_name (0.5.20190701)
|
30
51
|
unf (>= 0.0.5, < 1.0.0)
|
31
|
-
dotenv (2.
|
32
|
-
dotenv-rails (2.
|
33
|
-
dotenv (= 2.
|
52
|
+
dotenv (2.7.5)
|
53
|
+
dotenv-rails (2.7.5)
|
54
|
+
dotenv (= 2.7.5)
|
55
|
+
railties (>= 3.2, < 6.1)
|
56
|
+
erubi (1.9.0)
|
34
57
|
faker (1.9.6)
|
35
58
|
i18n (>= 0.7)
|
36
|
-
ffi (1.
|
59
|
+
ffi (1.12.2)
|
37
60
|
formatador (0.2.5)
|
38
|
-
fuubar (2.
|
61
|
+
fuubar (2.5.0)
|
39
62
|
rspec-core (~> 3.0)
|
40
63
|
ruby-progressbar (~> 1.4)
|
41
64
|
gem-release (0.7.4)
|
42
|
-
guard (2.
|
65
|
+
guard (2.16.2)
|
43
66
|
formatador (>= 0.2.4)
|
44
67
|
listen (>= 2.7, < 4.0)
|
45
68
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -53,30 +76,36 @@ GEM
|
|
53
76
|
guard (~> 2.1)
|
54
77
|
guard-compat (~> 1.1)
|
55
78
|
rspec (>= 2.99.0, < 4.0)
|
56
|
-
hashdiff (1.0.
|
79
|
+
hashdiff (1.0.1)
|
57
80
|
http-cookie (1.0.3)
|
58
81
|
domain_name (~> 0.5)
|
59
|
-
i18n (1.
|
82
|
+
i18n (1.8.2)
|
60
83
|
concurrent-ruby (~> 1.0)
|
61
|
-
jaro_winkler (1.5.
|
62
|
-
json (2.
|
63
|
-
listen (3.1
|
64
|
-
rb-fsevent (~> 0.
|
65
|
-
rb-inotify (~> 0.9, >= 0.9.
|
66
|
-
|
67
|
-
|
84
|
+
jaro_winkler (1.5.4)
|
85
|
+
json (2.3.0)
|
86
|
+
listen (3.2.1)
|
87
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
88
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
89
|
+
loofah (2.5.0)
|
90
|
+
crass (~> 1.0.2)
|
91
|
+
nokogiri (>= 1.5.9)
|
92
|
+
lumberjack (1.2.4)
|
68
93
|
method_source (0.8.2)
|
69
|
-
mime-types (3.3)
|
94
|
+
mime-types (3.3.1)
|
70
95
|
mime-types-data (~> 3.2015)
|
71
|
-
mime-types-data (3.2019.
|
72
|
-
|
96
|
+
mime-types-data (3.2019.1009)
|
97
|
+
mini_portile2 (2.4.0)
|
98
|
+
minitest (5.14.0)
|
99
|
+
multi_json (1.14.1)
|
73
100
|
nenv (0.3.0)
|
74
101
|
netrc (0.11.0)
|
102
|
+
nokogiri (1.10.9)
|
103
|
+
mini_portile2 (~> 2.4.0)
|
75
104
|
notiffany (0.1.3)
|
76
105
|
nenv (~> 0.1)
|
77
106
|
shellany (~> 0.0)
|
78
|
-
parallel (1.
|
79
|
-
parser (2.
|
107
|
+
parallel (1.19.1)
|
108
|
+
parser (2.7.1.1)
|
80
109
|
ast (~> 2.4.0)
|
81
110
|
pry (0.10.4)
|
82
111
|
coderay (~> 1.1.0)
|
@@ -84,65 +113,86 @@ GEM
|
|
84
113
|
slop (~> 3.4)
|
85
114
|
pry-nav (0.2.4)
|
86
115
|
pry (>= 0.9.10, < 0.11.0)
|
87
|
-
public_suffix (4.0.
|
88
|
-
rack (1.
|
116
|
+
public_suffix (4.0.4)
|
117
|
+
rack (2.1.2)
|
89
118
|
rack-test (0.8.3)
|
90
119
|
rack (>= 1.0, < 3)
|
120
|
+
rails-dom-testing (2.0.3)
|
121
|
+
activesupport (>= 4.2.0)
|
122
|
+
nokogiri (>= 1.6)
|
123
|
+
rails-html-sanitizer (1.3.0)
|
124
|
+
loofah (~> 2.3)
|
125
|
+
railties (6.0.2.2)
|
126
|
+
actionpack (= 6.0.2.2)
|
127
|
+
activesupport (= 6.0.2.2)
|
128
|
+
method_source
|
129
|
+
rake (>= 0.8.7)
|
130
|
+
thor (>= 0.20.3, < 2.0)
|
91
131
|
rainbow (3.0.0)
|
92
|
-
rake (
|
132
|
+
rake (13.0.1)
|
93
133
|
rb-fsevent (0.10.3)
|
94
|
-
rb-inotify (0.10.
|
134
|
+
rb-inotify (0.10.1)
|
95
135
|
ffi (~> 1.0)
|
96
136
|
rest-client (2.0.2)
|
97
137
|
http-cookie (>= 1.0.2, < 2.0)
|
98
138
|
mime-types (>= 1.16, < 4.0)
|
99
139
|
netrc (~> 0.8)
|
100
|
-
|
101
|
-
|
102
|
-
rspec-
|
103
|
-
rspec-
|
104
|
-
|
105
|
-
|
106
|
-
|
140
|
+
rexml (3.2.4)
|
141
|
+
rspec (3.9.0)
|
142
|
+
rspec-core (~> 3.9.0)
|
143
|
+
rspec-expectations (~> 3.9.0)
|
144
|
+
rspec-mocks (~> 3.9.0)
|
145
|
+
rspec-core (3.9.1)
|
146
|
+
rspec-support (~> 3.9.1)
|
147
|
+
rspec-expectations (3.9.1)
|
107
148
|
diff-lcs (>= 1.2.0, < 2.0)
|
108
|
-
rspec-support (~> 3.
|
109
|
-
rspec-mocks (3.
|
149
|
+
rspec-support (~> 3.9.0)
|
150
|
+
rspec-mocks (3.9.1)
|
110
151
|
diff-lcs (>= 1.2.0, < 2.0)
|
111
|
-
rspec-support (~> 3.
|
112
|
-
rspec-support (3.
|
113
|
-
rubocop (0.
|
152
|
+
rspec-support (~> 3.9.0)
|
153
|
+
rspec-support (3.9.2)
|
154
|
+
rubocop (0.82.0)
|
114
155
|
jaro_winkler (~> 1.5.1)
|
115
156
|
parallel (~> 1.10)
|
116
|
-
parser (>= 2.
|
157
|
+
parser (>= 2.7.0.1)
|
117
158
|
rainbow (>= 2.2.2, < 4.0)
|
159
|
+
rexml
|
118
160
|
ruby-progressbar (~> 1.7)
|
119
|
-
unicode-display_width (>= 1.4.0, <
|
161
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
162
|
+
rubocop-rails (2.5.2)
|
163
|
+
activesupport
|
164
|
+
rack (>= 1.1)
|
165
|
+
rubocop (>= 0.72.0)
|
120
166
|
ruby-progressbar (1.10.1)
|
121
|
-
ruby_dep (1.5.0)
|
122
167
|
safe_yaml (1.0.5)
|
123
168
|
shellany (0.0.1)
|
124
|
-
simplecov (0.
|
169
|
+
simplecov (0.18.5)
|
125
170
|
docile (~> 1.1)
|
126
|
-
|
127
|
-
|
128
|
-
simplecov-html (0.10.2)
|
171
|
+
simplecov-html (~> 0.11)
|
172
|
+
simplecov-html (0.12.2)
|
129
173
|
slop (3.6.0)
|
174
|
+
sync (0.5.0)
|
130
175
|
term-ansicolor (1.7.1)
|
131
176
|
tins (~> 1.0)
|
132
177
|
terminal-notifier-guard (1.7.0)
|
133
|
-
thor (0.
|
134
|
-
|
178
|
+
thor (1.0.1)
|
179
|
+
thread_safe (0.3.6)
|
180
|
+
tins (1.24.1)
|
181
|
+
sync
|
182
|
+
tzinfo (1.2.7)
|
183
|
+
thread_safe (~> 0.1)
|
135
184
|
unf (0.1.4)
|
136
185
|
unf_ext
|
137
|
-
unf_ext (0.0.7.
|
138
|
-
unicode-display_width (1.
|
186
|
+
unf_ext (0.0.7.7)
|
187
|
+
unicode-display_width (1.7.0)
|
139
188
|
url (0.3.2)
|
140
|
-
vcr (5.
|
141
|
-
webmock (3.
|
189
|
+
vcr (5.1.0)
|
190
|
+
webmock (3.8.3)
|
142
191
|
addressable (>= 2.3.6)
|
143
192
|
crack (>= 0.3.2)
|
144
193
|
hashdiff (>= 0.4.0, < 2.0.0)
|
145
|
-
yard (0.9.
|
194
|
+
yard (0.9.24)
|
195
|
+
zeitwerk (2.3.0)
|
146
196
|
|
147
197
|
PLATFORMS
|
148
198
|
ruby
|
@@ -158,11 +208,12 @@ DEPENDENCIES
|
|
158
208
|
guard-rspec (~> 4.5)
|
159
209
|
pry (~> 0.10)
|
160
210
|
pry-nav (~> 0.2.4)
|
161
|
-
rack (~> 1.
|
211
|
+
rack (~> 2.1.2)
|
162
212
|
rack-test (~> 0.6)
|
163
|
-
rake (~>
|
213
|
+
rake (~> 13.0)
|
164
214
|
rspec (~> 3.1, >= 3.1.0)
|
165
215
|
rubocop
|
216
|
+
rubocop-rails
|
166
217
|
simplecov
|
167
218
|
terminal-notifier-guard
|
168
219
|
vcr
|
data/auth0.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.add_runtime_dependency 'rest-client', '~> 2.0.0'
|
20
20
|
|
21
|
-
s.add_development_dependency 'rake', '~>
|
21
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
22
22
|
s.add_development_dependency 'fuubar', '~> 2.0'
|
23
23
|
s.add_development_dependency 'guard-rspec', '~> 4.5' unless ENV['CIRCLECI']
|
24
24
|
s.add_development_dependency 'dotenv-rails', '~> 2.0'
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_development_dependency 'pry-nav', '~> 0.2.4'
|
27
27
|
s.add_development_dependency 'rspec', '~> 3.1', '>= 3.1.0'
|
28
28
|
s.add_development_dependency 'rack-test', '~> 0.6'
|
29
|
-
s.add_development_dependency 'rack', '~> 1.
|
29
|
+
s.add_development_dependency 'rack', '~> 2.1.2'
|
30
30
|
s.add_development_dependency 'simplecov', '~> 0.9'
|
31
31
|
s.add_development_dependency 'faker', '~> 1.4'
|
32
32
|
s.add_development_dependency 'yard', '~> 0.9.12'
|
@@ -7,11 +7,15 @@ module Auth0
|
|
7
7
|
|
8
8
|
# Retrieves a list of all client grants.
|
9
9
|
# @see https://auth0.com/docs/api/management/v2#!/client_grants/get_client_grants
|
10
|
+
# @param client_id [string] The client_id of the client grant to retrieve.
|
11
|
+
# @param audience [string] The audience of the client grant to retrieve.
|
10
12
|
# @param page [int] Page number to get, 0-based.
|
11
13
|
# @param per_page [int] Results per page if also passing a page number.
|
12
14
|
# @return [json] Returns the client grants.
|
13
|
-
def client_grants (page: nil, per_page: nil)
|
15
|
+
def client_grants (client_id: nil, audience: nil, page: nil, per_page: nil)
|
14
16
|
request_params = {
|
17
|
+
client_id: client_id,
|
18
|
+
audience: audience,
|
15
19
|
page: page,
|
16
20
|
per_page: per_page
|
17
21
|
}
|
data/lib/auth0/api/v2/roles.rb
CHANGED
@@ -13,13 +13,15 @@ module Auth0
|
|
13
13
|
# - per_page: Number of Roles to return.
|
14
14
|
# - page: Page number to return, zero-based.
|
15
15
|
# - include_totals: True to include query summary in the result, false or nil otherwise.
|
16
|
+
# - name_filter: Optional filter on name (case-insensitive).
|
16
17
|
#
|
17
18
|
# @return [json] All Roles matching the query.
|
18
19
|
def get_roles(options = {})
|
19
20
|
request_params = {
|
20
21
|
per_page: options.fetch(:per_page, nil),
|
21
22
|
page: options.fetch(:page, nil),
|
22
|
-
include_totals: options.fetch(:include_totals, nil)
|
23
|
+
include_totals: options.fetch(:include_totals, nil),
|
24
|
+
name_filter: options.fetch(:name_filter, nil)
|
23
25
|
}
|
24
26
|
get roles_path, request_params
|
25
27
|
end
|
data/lib/auth0/version.rb
CHANGED
@@ -13,15 +13,32 @@ describe Auth0::Api::V2::ClientGrants do
|
|
13
13
|
it 'is expected to get /api/v2/client-grants/' do
|
14
14
|
expect(@instance).to receive(:get).with(
|
15
15
|
'/api/v2/client-grants',
|
16
|
+
client_id: nil,
|
17
|
+
audience: nil,
|
16
18
|
page: nil,
|
17
19
|
per_page: nil
|
18
20
|
)
|
19
21
|
expect { @instance.client_grants }.not_to raise_error
|
20
22
|
end
|
21
23
|
|
24
|
+
it 'is expected to send get /api/v2/client-grants/ with client_id and audience' do
|
25
|
+
audience = "https://samples.auth0.com/api/v2/"
|
26
|
+
|
27
|
+
expect(@instance).to receive(:get).with(
|
28
|
+
'/api/v2/client-grants',
|
29
|
+
client_id: '1',
|
30
|
+
audience: audience,
|
31
|
+
page: nil,
|
32
|
+
per_page: nil
|
33
|
+
)
|
34
|
+
expect { @instance.client_grants(client_id: '1', audience: audience) }.not_to raise_error
|
35
|
+
end
|
36
|
+
|
22
37
|
it 'is expected to send get /api/v2/client-grants/ with pagination' do
|
23
38
|
expect(@instance).to receive(:get).with(
|
24
39
|
'/api/v2/client-grants',
|
40
|
+
client_id: nil,
|
41
|
+
audience: nil,
|
25
42
|
page: 1,
|
26
43
|
per_page: 2
|
27
44
|
)
|
@@ -20,7 +20,8 @@ describe Auth0::Api::V2::Roles do
|
|
20
20
|
'/api/v2/roles',
|
21
21
|
per_page: nil,
|
22
22
|
page: nil,
|
23
|
-
include_totals: nil
|
23
|
+
include_totals: nil,
|
24
|
+
name_filter: nil
|
24
25
|
)
|
25
26
|
expect { @instance.get_roles }.not_to raise_error
|
26
27
|
end
|
@@ -30,10 +31,11 @@ describe Auth0::Api::V2::Roles do
|
|
30
31
|
'/api/v2/roles',
|
31
32
|
per_page: 10,
|
32
33
|
page: 3,
|
33
|
-
include_totals: true
|
34
|
+
include_totals: true,
|
35
|
+
name_filter: 'test'
|
34
36
|
)
|
35
37
|
expect do
|
36
|
-
@instance.get_roles(per_page: 10, page: 3, include_totals: true)
|
38
|
+
@instance.get_roles(per_page: 10, page: 3, include_totals: true, name_filter: 'test')
|
37
39
|
end.not_to raise_error
|
38
40
|
end
|
39
41
|
end
|
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.
|
4
|
+
version: 4.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Auth0
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2020-04-28 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: '
|
36
|
+
version: '13.0'
|
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
|
-
version: '
|
43
|
+
version: '13.0'
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: fuubar
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,22 +115,22 @@ dependencies:
|
|
115
115
|
name: rspec
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
|
-
- - ">="
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
version: 3.1.0
|
121
118
|
- - "~>"
|
122
119
|
- !ruby/object:Gem::Version
|
123
120
|
version: '3.1'
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
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
|
-
- - ">="
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: 3.1.0
|
131
128
|
- - "~>"
|
132
129
|
- !ruby/object:Gem::Version
|
133
130
|
version: '3.1'
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 3.1.0
|
134
134
|
- !ruby/object:Gem::Dependency
|
135
135
|
name: rack-test
|
136
136
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,14 +151,14 @@ dependencies:
|
|
151
151
|
requirements:
|
152
152
|
- - "~>"
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 1.
|
154
|
+
version: 2.1.2
|
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
|
-
version: 1.
|
161
|
+
version: 2.1.2
|
162
162
|
- !ruby/object:Gem::Dependency
|
163
163
|
name: simplecov
|
164
164
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- ".github/CODEOWNERS"
|
229
229
|
- ".github/ISSUE_TEMPLATE.md"
|
230
230
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
231
|
+
- ".github/stale.yml"
|
231
232
|
- ".gitignore"
|
232
233
|
- ".rspec"
|
233
234
|
- ".rubocop.yml"
|
@@ -596,7 +597,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
596
597
|
- !ruby/object:Gem::Version
|
597
598
|
version: '0'
|
598
599
|
requirements: []
|
599
|
-
rubygems_version: 3.
|
600
|
+
rubygems_version: 3.1.2
|
600
601
|
signing_key:
|
601
602
|
specification_version: 4
|
602
603
|
summary: Auth0 API Client
|