auth0 5.14.2 → 5.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +54 -35
- data/lib/auth0/api/v2/organizations.rb +7 -1
- data/lib/auth0/version.rb +1 -1
- data/spec/lib/auth0/api/v2/organizations_spec.rb +26 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceba936338486855137ba5c59358f8656aaba565e624865a6d0b5e4092e937e7
|
4
|
+
data.tar.gz: 5d2521a3c29afe50813d3b53b7f56d260f075c88116bcb04f14f8b93e0eeaebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b14982084c5e6a3439a5261b4b2afa8712e0bba674ce0cc8c48f408fef5a16320de484f550b80102fb4f2bb21e6af751214e5682489ea2eeb1b9bc77ebfd0bf9
|
7
|
+
data.tar.gz: 2702811340ebdd8748449bcec4f01e2366b02bd2f00aec66168a9f088af8755259a11f76268a22e7cfbb347ca5c02ebd4d6eb251070ee42fe19545dd6b73bc89
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v5.15.0](https://github.com/auth0/ruby-auth0/tree/v5.15.0) (2023-10-30)
|
4
|
+
[Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.14.2...v5.15.0)
|
5
|
+
|
6
|
+
**Added**
|
7
|
+
- [SDK-4659] Add fields to get_organizations_members [\#532](https://github.com/auth0/ruby-auth0/pull/532) ([adamjmcgrath](https://github.com/adamjmcgrath))
|
8
|
+
|
3
9
|
## [v5.14.2](https://github.com/auth0/ruby-auth0/tree/v5.14.2) (2023-10-03)
|
4
10
|
|
5
11
|
[Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.14.1...v5.14.2)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
auth0 (5.
|
4
|
+
auth0 (5.15.0)
|
5
5
|
addressable (~> 2.8)
|
6
6
|
jwt (~> 2.7)
|
7
7
|
rest-client (~> 2.1)
|
@@ -11,31 +11,40 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
actionpack (7.
|
15
|
-
actionview (= 7.
|
16
|
-
activesupport (= 7.
|
17
|
-
|
14
|
+
actionpack (7.1.1)
|
15
|
+
actionview (= 7.1.1)
|
16
|
+
activesupport (= 7.1.1)
|
17
|
+
nokogiri (>= 1.8.5)
|
18
|
+
rack (>= 2.2.4)
|
19
|
+
rack-session (>= 1.0.1)
|
18
20
|
rack-test (>= 0.6.3)
|
19
|
-
rails-dom-testing (~> 2.
|
20
|
-
rails-html-sanitizer (~> 1.
|
21
|
-
actionview (7.
|
22
|
-
activesupport (= 7.
|
21
|
+
rails-dom-testing (~> 2.2)
|
22
|
+
rails-html-sanitizer (~> 1.6)
|
23
|
+
actionview (7.1.1)
|
24
|
+
activesupport (= 7.1.1)
|
23
25
|
builder (~> 3.1)
|
24
|
-
erubi (~> 1.
|
25
|
-
rails-dom-testing (~> 2.
|
26
|
-
rails-html-sanitizer (~> 1.
|
27
|
-
activesupport (7.
|
26
|
+
erubi (~> 1.11)
|
27
|
+
rails-dom-testing (~> 2.2)
|
28
|
+
rails-html-sanitizer (~> 1.6)
|
29
|
+
activesupport (7.1.1)
|
30
|
+
base64
|
31
|
+
bigdecimal
|
28
32
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
33
|
+
connection_pool (>= 2.2.5)
|
34
|
+
drb
|
29
35
|
i18n (>= 1.6, < 2)
|
30
36
|
minitest (>= 5.1)
|
37
|
+
mutex_m
|
31
38
|
tzinfo (~> 2.0)
|
32
39
|
addressable (2.8.5)
|
33
40
|
public_suffix (>= 2.0.2, < 6.0)
|
34
41
|
ast (2.4.2)
|
35
42
|
base64 (0.1.1)
|
43
|
+
bigdecimal (3.1.4)
|
36
44
|
builder (3.2.4)
|
37
45
|
coderay (1.1.3)
|
38
46
|
concurrent-ruby (1.2.2)
|
47
|
+
connection_pool (2.4.1)
|
39
48
|
coveralls (0.7.1)
|
40
49
|
multi_json (~> 1.3)
|
41
50
|
rest-client
|
@@ -53,10 +62,12 @@ GEM
|
|
53
62
|
dotenv-rails (2.8.1)
|
54
63
|
dotenv (= 2.8.1)
|
55
64
|
railties (>= 3.2)
|
65
|
+
drb (2.1.1)
|
66
|
+
ruby2_keywords
|
56
67
|
erubi (1.12.0)
|
57
68
|
faker (2.23.0)
|
58
69
|
i18n (>= 1.8.11, < 2)
|
59
|
-
ffi (1.16.
|
70
|
+
ffi (1.16.3)
|
60
71
|
formatador (1.1.0)
|
61
72
|
fuubar (2.5.1)
|
62
73
|
rspec-core (~> 3.0)
|
@@ -82,7 +93,7 @@ GEM
|
|
82
93
|
i18n (1.14.1)
|
83
94
|
concurrent-ruby (~> 1.0)
|
84
95
|
io-console (0.6.0)
|
85
|
-
irb (1.8.
|
96
|
+
irb (1.8.3)
|
86
97
|
rdoc
|
87
98
|
reline (>= 0.3.8)
|
88
99
|
json (2.6.3)
|
@@ -91,16 +102,17 @@ GEM
|
|
91
102
|
listen (3.8.0)
|
92
103
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
93
104
|
rb-inotify (~> 0.9, >= 0.9.10)
|
94
|
-
loofah (2.21.
|
105
|
+
loofah (2.21.4)
|
95
106
|
crass (~> 1.0.2)
|
96
107
|
nokogiri (>= 1.12.0)
|
97
108
|
lumberjack (1.2.9)
|
98
109
|
method_source (1.0.0)
|
99
110
|
mime-types (3.5.1)
|
100
111
|
mime-types-data (~> 3.2015)
|
101
|
-
mime-types-data (3.2023.
|
112
|
+
mime-types-data (3.2023.1003)
|
102
113
|
minitest (5.20.0)
|
103
114
|
multi_json (1.15.0)
|
115
|
+
mutex_m (0.1.2)
|
104
116
|
nenv (0.3.0)
|
105
117
|
netrc (0.11.0)
|
106
118
|
nokogiri (1.15.4-aarch64-linux)
|
@@ -115,7 +127,7 @@ GEM
|
|
115
127
|
nenv (~> 0.1)
|
116
128
|
shellany (~> 0.0)
|
117
129
|
parallel (1.23.0)
|
118
|
-
parser (3.2.2.
|
130
|
+
parser (3.2.2.4)
|
119
131
|
ast (~> 2.4.1)
|
120
132
|
racc
|
121
133
|
pp (0.4.0)
|
@@ -124,13 +136,18 @@ GEM
|
|
124
136
|
pry (0.14.2)
|
125
137
|
coderay (~> 1.1)
|
126
138
|
method_source (~> 1.0)
|
127
|
-
psych (5.1.
|
139
|
+
psych (5.1.1.1)
|
128
140
|
stringio
|
129
141
|
public_suffix (5.0.3)
|
130
142
|
racc (1.7.1)
|
131
|
-
rack (
|
143
|
+
rack (3.0.8)
|
144
|
+
rack-session (2.0.0)
|
145
|
+
rack (>= 3.0.0)
|
132
146
|
rack-test (2.1.0)
|
133
147
|
rack (>= 1.3)
|
148
|
+
rackup (2.1.0)
|
149
|
+
rack (>= 3)
|
150
|
+
webrick (~> 1.8)
|
134
151
|
rails-dom-testing (2.2.0)
|
135
152
|
activesupport (>= 5.0.0)
|
136
153
|
minitest
|
@@ -138,22 +155,23 @@ GEM
|
|
138
155
|
rails-html-sanitizer (1.6.0)
|
139
156
|
loofah (~> 2.21)
|
140
157
|
nokogiri (~> 1.14)
|
141
|
-
railties (7.
|
142
|
-
actionpack (= 7.
|
143
|
-
activesupport (= 7.
|
144
|
-
|
158
|
+
railties (7.1.1)
|
159
|
+
actionpack (= 7.1.1)
|
160
|
+
activesupport (= 7.1.1)
|
161
|
+
irb
|
162
|
+
rackup (>= 1.0.0)
|
145
163
|
rake (>= 12.2)
|
146
|
-
thor (~> 1.0)
|
147
|
-
zeitwerk (~> 2.
|
164
|
+
thor (~> 1.0, >= 1.2.2)
|
165
|
+
zeitwerk (~> 2.6)
|
148
166
|
rainbow (3.1.1)
|
149
|
-
rake (13.0
|
167
|
+
rake (13.1.0)
|
150
168
|
rb-fsevent (0.11.2)
|
151
169
|
rb-inotify (0.10.1)
|
152
170
|
ffi (~> 1.0)
|
153
171
|
rdoc (6.5.0)
|
154
172
|
psych (>= 4.0.0)
|
155
|
-
regexp_parser (2.8.
|
156
|
-
reline (0.3.
|
173
|
+
regexp_parser (2.8.2)
|
174
|
+
reline (0.3.9)
|
157
175
|
io-console (~> 0.5)
|
158
176
|
rest-client (2.1.0)
|
159
177
|
http-accept (>= 1.7.0, < 2.0)
|
@@ -175,25 +193,25 @@ GEM
|
|
175
193
|
diff-lcs (>= 1.2.0, < 2.0)
|
176
194
|
rspec-support (~> 3.12.0)
|
177
195
|
rspec-support (3.12.1)
|
178
|
-
rubocop (1.
|
179
|
-
base64 (~> 0.1.1)
|
196
|
+
rubocop (1.57.2)
|
180
197
|
json (~> 2.3)
|
181
198
|
language_server-protocol (>= 3.17.0)
|
182
199
|
parallel (~> 1.10)
|
183
|
-
parser (>= 3.2.2.
|
200
|
+
parser (>= 3.2.2.4)
|
184
201
|
rainbow (>= 2.2.2, < 4.0)
|
185
202
|
regexp_parser (>= 1.8, < 3.0)
|
186
203
|
rexml (>= 3.2.5, < 4.0)
|
187
204
|
rubocop-ast (>= 1.28.1, < 2.0)
|
188
205
|
ruby-progressbar (~> 1.7)
|
189
206
|
unicode-display_width (>= 2.4.0, < 3.0)
|
190
|
-
rubocop-ast (1.
|
207
|
+
rubocop-ast (1.30.0)
|
191
208
|
parser (>= 3.2.1.0)
|
192
|
-
rubocop-rails (2.
|
209
|
+
rubocop-rails (2.22.1)
|
193
210
|
activesupport (>= 4.2.0)
|
194
211
|
rack (>= 1.1)
|
195
212
|
rubocop (>= 1.33.0, < 2.0)
|
196
213
|
ruby-progressbar (1.13.0)
|
214
|
+
ruby2_keywords (0.0.5)
|
197
215
|
shellany (0.0.1)
|
198
216
|
simplecov (0.22.0)
|
199
217
|
docile (~> 1.1)
|
@@ -209,7 +227,7 @@ GEM
|
|
209
227
|
term-ansicolor (1.7.1)
|
210
228
|
tins (~> 1.0)
|
211
229
|
terminal-notifier-guard (1.7.0)
|
212
|
-
thor (1.
|
230
|
+
thor (1.3.0)
|
213
231
|
timecop (0.9.8)
|
214
232
|
tins (1.32.1)
|
215
233
|
sync
|
@@ -224,6 +242,7 @@ GEM
|
|
224
242
|
addressable (>= 2.8.0)
|
225
243
|
crack (>= 0.3.2)
|
226
244
|
hashdiff (>= 0.4.0, < 2.0.0)
|
245
|
+
webrick (1.8.1)
|
227
246
|
zache (0.13.1)
|
228
247
|
zeitwerk (2.6.12)
|
229
248
|
|
@@ -214,6 +214,8 @@ module Auth0
|
|
214
214
|
### Organization Member
|
215
215
|
|
216
216
|
# Get Members in a Organization
|
217
|
+
# Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member.
|
218
|
+
# To use this parameter, you must include the `read:organization_member_roles scope` in the token.
|
217
219
|
# @see https://auth0.com/docs/api/management/v2/#!/Organizations/get_members
|
218
220
|
# @param organization_id [string] The Organization ID
|
219
221
|
# @param options [hash] The Hash options used to define the paging of rersults
|
@@ -222,6 +224,8 @@ module Auth0
|
|
222
224
|
# * :from [string] For checkpoint pagination, the ID from which to start selection from.
|
223
225
|
# * :take [integer] For checkpoint pagination, the number of entries to retrieve. Default is 50.
|
224
226
|
# * :include_totals [boolean] True to include query summary in the result, false or nil otherwise.
|
227
|
+
# * :fields [string] A comma separated list of fields to include or exclude from the result. If fields is left blank, all fields (except roles) are returned.
|
228
|
+
# * :include_fields [boolean] True if the fields specified are to be included in the result, false otherwise.
|
225
229
|
#
|
226
230
|
# @return [json] Returns the members for the given organization
|
227
231
|
def get_organizations_members(organization_id, options = {})
|
@@ -231,7 +235,9 @@ module Auth0
|
|
231
235
|
page: options.fetch(:page, nil),
|
232
236
|
from: options.fetch(:from, nil),
|
233
237
|
take: options.fetch(:take, nil),
|
234
|
-
include_totals: options.fetch(:include_totals, nil)
|
238
|
+
include_totals: options.fetch(:include_totals, nil),
|
239
|
+
fields: options.fetch(:fields, nil),
|
240
|
+
include_fields: options.fetch(:include_fields, nil)
|
235
241
|
}
|
236
242
|
path = "#{organizations_members_path(organization_id)}"
|
237
243
|
get(path, request_params)
|
data/lib/auth0/version.rb
CHANGED
@@ -451,7 +451,9 @@ describe Auth0::Api::V2::Organizations do
|
|
451
451
|
page: nil,
|
452
452
|
from: nil,
|
453
453
|
take: nil,
|
454
|
-
include_totals: nil
|
454
|
+
include_totals: nil,
|
455
|
+
fields: nil,
|
456
|
+
include_fields: nil
|
455
457
|
})
|
456
458
|
expect do
|
457
459
|
@instance.get_organizations_members('org_id')
|
@@ -465,7 +467,9 @@ describe Auth0::Api::V2::Organizations do
|
|
465
467
|
page: 1,
|
466
468
|
from: 'org_id',
|
467
469
|
take: 50,
|
468
|
-
include_totals: true
|
470
|
+
include_totals: true,
|
471
|
+
fields: nil,
|
472
|
+
include_fields: nil
|
469
473
|
})
|
470
474
|
expect do
|
471
475
|
@instance.get_organizations_members(
|
@@ -478,6 +482,26 @@ describe Auth0::Api::V2::Organizations do
|
|
478
482
|
)
|
479
483
|
end.not_to raise_error
|
480
484
|
end
|
485
|
+
|
486
|
+
it 'is expected to get /api/v2/organizations with custom fields' do
|
487
|
+
expect(@instance).to receive(:get).with(
|
488
|
+
'/api/v2/organizations/org_id/members', {
|
489
|
+
per_page: nil,
|
490
|
+
page: nil,
|
491
|
+
from: nil,
|
492
|
+
take: nil,
|
493
|
+
include_totals: nil,
|
494
|
+
fields: 'foo,bar',
|
495
|
+
include_fields: false
|
496
|
+
})
|
497
|
+
expect do
|
498
|
+
@instance.get_organizations_members(
|
499
|
+
'org_id',
|
500
|
+
fields: 'foo,bar',
|
501
|
+
include_fields: false
|
502
|
+
)
|
503
|
+
end.not_to raise_error
|
504
|
+
end
|
481
505
|
end
|
482
506
|
|
483
507
|
context '.create_organizations_members' do
|
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: 5.
|
4
|
+
version: 5.15.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: 2023-10-
|
14
|
+
date: 2023-10-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rest-client
|