workos 5.3.0 → 6.1.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/.github/CODEOWNERS +1 -1
- data/.github/workflows/ci.yml +2 -4
- data/.github/workflows/lint-pr-title.yml +20 -0
- data/.github/workflows/release-please.yml +25 -0
- data/.github/workflows/release.yml +22 -25
- data/.gitignore +1 -0
- data/.release-please-manifest.json +3 -0
- data/.rubocop.yml +11 -8
- data/.rubocop_todo.yml +94 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +32 -18
- data/Rakefile +8 -0
- data/context7.json +4 -0
- data/lib/workos/authentication_response.rb +32 -4
- data/lib/workos/cache.rb +94 -0
- data/lib/workos/client.rb +9 -1
- data/lib/workos/directory_sync.rb +1 -1
- data/lib/workos/directory_user.rb +31 -3
- data/lib/workos/encryptors/aes_gcm.rb +49 -0
- data/lib/workos/encryptors.rb +9 -0
- data/lib/workos/errors.rb +4 -0
- data/lib/workos/feature_flag.rb +34 -0
- data/lib/workos/mfa.rb +0 -1
- data/lib/workos/oauth_tokens.rb +29 -0
- data/lib/workos/organization.rb +14 -1
- data/lib/workos/organization_membership.rb +5 -1
- data/lib/workos/organizations.rb +87 -3
- data/lib/workos/profile.rb +10 -2
- data/lib/workos/refresh_authentication_response.rb +29 -2
- data/lib/workos/role.rb +38 -0
- data/lib/workos/session.rb +187 -0
- data/lib/workos/sso.rb +3 -24
- data/lib/workos/types/intent.rb +3 -1
- data/lib/workos/types/provider.rb +1 -1
- data/lib/workos/types/widget_scope.rb +15 -0
- data/lib/workos/types.rb +1 -0
- data/lib/workos/user.rb +7 -1
- data/lib/workos/user_management/session.rb +57 -0
- data/lib/workos/user_management.rb +213 -45
- data/lib/workos/version.rb +1 -1
- data/lib/workos/widgets.rb +46 -0
- data/lib/workos.rb +8 -0
- data/release-please-config.json +12 -0
- data/spec/lib/workos/cache_spec.rb +94 -0
- data/spec/lib/workos/directory_user_spec.rb +13 -3
- data/spec/lib/workos/encryptors/aes_gcm_spec.rb +41 -0
- data/spec/lib/workos/organizations_spec.rb +258 -1
- data/spec/lib/workos/portal_spec.rb +30 -0
- data/spec/lib/workos/role_spec.rb +142 -0
- data/spec/lib/workos/session_spec.rb +475 -0
- data/spec/lib/workos/sso_spec.rb +106 -5
- data/spec/lib/workos/user_management_spec.rb +496 -1
- data/spec/lib/workos/widgets_spec.rb +73 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/organization/create_with_external_id.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/organization/list_organization_feature_flags.yml +78 -0
- data/spec/support/fixtures/vcr_cassettes/organization/list_organization_roles.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/organization/update_with_external_id.yml +78 -0
- data/spec/support/fixtures/vcr_cassettes/organization/update_with_external_id_null.yml +78 -0
- data/spec/support/fixtures/vcr_cassettes/organization/update_with_stripe_customer_id.yml +78 -0
- data/spec/support/fixtures/vcr_cassettes/organization/update_without_name.yml +85 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_certificate_renewal.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_domain_verification.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/sso/profile.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid_with_oauth_tokens.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/unverified.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_token/valid.yml +79 -78
- data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid_multiple_roles.yml +76 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/create_user_with_external_id.yml +77 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/get_user.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/list_sessions/valid.yml +38 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/accepted.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/expired.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/invalid.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/revoked.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/valid.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid_multiple_roles.yml +76 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/update_user/email.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/update_user/locale.yml +76 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml +2 -2
- data/spec/support/fixtures/vcr_cassettes/user_management/update_user_external_id_null.yml +77 -0
- data/spec/support/fixtures/vcr_cassettes/widgets/get_token.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/widgets/get_token_invalid_organization_id.yml +74 -0
- data/spec/support/fixtures/vcr_cassettes/widgets/get_token_invalid_user_id.yml +74 -0
- data/spec/support/profile.txt +1 -1
- data/workos.gemspec +7 -3
- metadata +132 -10
metadata
CHANGED
|
@@ -1,15 +1,43 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workos
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WorkOS
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: encryptor
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: jwt
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '3.1'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '3.1'
|
|
13
41
|
- !ruby/object:Gem::Dependency
|
|
14
42
|
name: bundler
|
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -24,6 +52,20 @@ dependencies:
|
|
|
24
52
|
- - ">="
|
|
25
53
|
- !ruby/object:Gem::Version
|
|
26
54
|
version: 2.0.1
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rake
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
27
69
|
- !ruby/object:Gem::Dependency
|
|
28
70
|
name: rspec
|
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -44,28 +86,28 @@ dependencies:
|
|
|
44
86
|
requirements:
|
|
45
87
|
- - "~>"
|
|
46
88
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
89
|
+
version: '1.71'
|
|
48
90
|
type: :development
|
|
49
91
|
prerelease: false
|
|
50
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
93
|
requirements:
|
|
52
94
|
- - "~>"
|
|
53
95
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
96
|
+
version: '1.71'
|
|
55
97
|
- !ruby/object:Gem::Dependency
|
|
56
98
|
name: vcr
|
|
57
99
|
requirement: !ruby/object:Gem::Requirement
|
|
58
100
|
requirements:
|
|
59
101
|
- - "~>"
|
|
60
102
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
103
|
+
version: '6.0'
|
|
62
104
|
type: :development
|
|
63
105
|
prerelease: false
|
|
64
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
107
|
requirements:
|
|
66
108
|
- - "~>"
|
|
67
109
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
110
|
+
version: '6.0'
|
|
69
111
|
- !ruby/object:Gem::Dependency
|
|
70
112
|
name: webmock
|
|
71
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -91,23 +133,31 @@ files:
|
|
|
91
133
|
- ".github/pull_request_template.md"
|
|
92
134
|
- ".github/renovate.json"
|
|
93
135
|
- ".github/workflows/ci.yml"
|
|
136
|
+
- ".github/workflows/lint-pr-title.yml"
|
|
137
|
+
- ".github/workflows/release-please.yml"
|
|
94
138
|
- ".github/workflows/release.yml"
|
|
95
139
|
- ".gitignore"
|
|
140
|
+
- ".release-please-manifest.json"
|
|
96
141
|
- ".rspec"
|
|
97
142
|
- ".rubocop.yml"
|
|
143
|
+
- ".rubocop_todo.yml"
|
|
98
144
|
- ".ruby-version"
|
|
145
|
+
- CHANGELOG.md
|
|
99
146
|
- Gemfile
|
|
100
147
|
- Gemfile.lock
|
|
101
148
|
- LICENSE
|
|
102
149
|
- README.md
|
|
150
|
+
- Rakefile
|
|
103
151
|
- bin/build
|
|
104
152
|
- bin/console
|
|
105
153
|
- bin/publish
|
|
154
|
+
- context7.json
|
|
106
155
|
- lib/workos.rb
|
|
107
156
|
- lib/workos/audit_log_export.rb
|
|
108
157
|
- lib/workos/audit_logs.rb
|
|
109
158
|
- lib/workos/authentication_factor_and_challenge.rb
|
|
110
159
|
- lib/workos/authentication_response.rb
|
|
160
|
+
- lib/workos/cache.rb
|
|
111
161
|
- lib/workos/challenge.rb
|
|
112
162
|
- lib/workos/client.rb
|
|
113
163
|
- lib/workos/configuration.rb
|
|
@@ -119,15 +169,19 @@ files:
|
|
|
119
169
|
- lib/workos/directory_sync.rb
|
|
120
170
|
- lib/workos/directory_user.rb
|
|
121
171
|
- lib/workos/email_verification.rb
|
|
172
|
+
- lib/workos/encryptors.rb
|
|
173
|
+
- lib/workos/encryptors/aes_gcm.rb
|
|
122
174
|
- lib/workos/errors.rb
|
|
123
175
|
- lib/workos/event.rb
|
|
124
176
|
- lib/workos/events.rb
|
|
125
177
|
- lib/workos/factor.rb
|
|
178
|
+
- lib/workos/feature_flag.rb
|
|
126
179
|
- lib/workos/hash_provider.rb
|
|
127
180
|
- lib/workos/impersonator.rb
|
|
128
181
|
- lib/workos/invitation.rb
|
|
129
182
|
- lib/workos/magic_auth.rb
|
|
130
183
|
- lib/workos/mfa.rb
|
|
184
|
+
- lib/workos/oauth_tokens.rb
|
|
131
185
|
- lib/workos/organization.rb
|
|
132
186
|
- lib/workos/organization_membership.rb
|
|
133
187
|
- lib/workos/organizations.rb
|
|
@@ -137,33 +191,44 @@ files:
|
|
|
137
191
|
- lib/workos/profile.rb
|
|
138
192
|
- lib/workos/profile_and_token.rb
|
|
139
193
|
- lib/workos/refresh_authentication_response.rb
|
|
194
|
+
- lib/workos/role.rb
|
|
195
|
+
- lib/workos/session.rb
|
|
140
196
|
- lib/workos/sso.rb
|
|
141
197
|
- lib/workos/types.rb
|
|
142
198
|
- lib/workos/types/intent.rb
|
|
143
199
|
- lib/workos/types/list_struct.rb
|
|
144
200
|
- lib/workos/types/passwordless_session_struct.rb
|
|
145
201
|
- lib/workos/types/provider.rb
|
|
202
|
+
- lib/workos/types/widget_scope.rb
|
|
146
203
|
- lib/workos/user.rb
|
|
147
204
|
- lib/workos/user_and_token.rb
|
|
148
205
|
- lib/workos/user_management.rb
|
|
206
|
+
- lib/workos/user_management/session.rb
|
|
149
207
|
- lib/workos/user_response.rb
|
|
150
208
|
- lib/workos/verify_challenge.rb
|
|
151
209
|
- lib/workos/version.rb
|
|
152
210
|
- lib/workos/webhook.rb
|
|
153
211
|
- lib/workos/webhooks.rb
|
|
212
|
+
- lib/workos/widgets.rb
|
|
213
|
+
- release-please-config.json
|
|
154
214
|
- spec/lib/workos/audit_logs_spec.rb
|
|
215
|
+
- spec/lib/workos/cache_spec.rb
|
|
155
216
|
- spec/lib/workos/client.rb
|
|
156
217
|
- spec/lib/workos/configuration_spec.rb
|
|
157
218
|
- spec/lib/workos/directory_sync_spec.rb
|
|
158
219
|
- spec/lib/workos/directory_user_spec.rb
|
|
220
|
+
- spec/lib/workos/encryptors/aes_gcm_spec.rb
|
|
159
221
|
- spec/lib/workos/event_spec.rb
|
|
160
222
|
- spec/lib/workos/mfa_spec.rb
|
|
161
223
|
- spec/lib/workos/organizations_spec.rb
|
|
162
224
|
- spec/lib/workos/passwordless_spec.rb
|
|
163
225
|
- spec/lib/workos/portal_spec.rb
|
|
226
|
+
- spec/lib/workos/role_spec.rb
|
|
227
|
+
- spec/lib/workos/session_spec.rb
|
|
164
228
|
- spec/lib/workos/sso_spec.rb
|
|
165
229
|
- spec/lib/workos/user_management_spec.rb
|
|
166
230
|
- spec/lib/workos/webhooks_spec.rb
|
|
231
|
+
- spec/lib/workos/widgets_spec.rb
|
|
167
232
|
- spec/spec_helper.rb
|
|
168
233
|
- spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml
|
|
169
234
|
- spec/support/fixtures/vcr_cassettes/audit_logs/create_event_custom_idempotency_key.yml
|
|
@@ -227,6 +292,7 @@ files:
|
|
|
227
292
|
- spec/support/fixtures/vcr_cassettes/organization/create_with_domains.yml
|
|
228
293
|
- spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_different_payload.yml
|
|
229
294
|
- spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_payload.yml
|
|
295
|
+
- spec/support/fixtures/vcr_cassettes/organization/create_with_external_id.yml
|
|
230
296
|
- spec/support/fixtures/vcr_cassettes/organization/create_with_idempotency_key.yml
|
|
231
297
|
- spec/support/fixtures/vcr_cassettes/organization/create_without_domains.yml
|
|
232
298
|
- spec/support/fixtures/vcr_cassettes/organization/delete.yml
|
|
@@ -234,12 +300,20 @@ files:
|
|
|
234
300
|
- spec/support/fixtures/vcr_cassettes/organization/get.yml
|
|
235
301
|
- spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml
|
|
236
302
|
- spec/support/fixtures/vcr_cassettes/organization/list.yml
|
|
303
|
+
- spec/support/fixtures/vcr_cassettes/organization/list_organization_feature_flags.yml
|
|
304
|
+
- spec/support/fixtures/vcr_cassettes/organization/list_organization_roles.yml
|
|
237
305
|
- spec/support/fixtures/vcr_cassettes/organization/update.yml
|
|
306
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_with_external_id.yml
|
|
307
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_with_external_id_null.yml
|
|
308
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_with_stripe_customer_id.yml
|
|
309
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_without_name.yml
|
|
238
310
|
- spec/support/fixtures/vcr_cassettes/passwordless/create_session.yml
|
|
239
311
|
- spec/support/fixtures/vcr_cassettes/passwordless/create_session_invalid.yml
|
|
240
312
|
- spec/support/fixtures/vcr_cassettes/passwordless/send_session.yml
|
|
241
313
|
- spec/support/fixtures/vcr_cassettes/passwordless/send_session_invalid.yml
|
|
242
314
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_audit_logs.yml
|
|
315
|
+
- spec/support/fixtures/vcr_cassettes/portal/generate_link_certificate_renewal.yml
|
|
316
|
+
- spec/support/fixtures/vcr_cassettes/portal/generate_link_domain_verification.yml
|
|
243
317
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml
|
|
244
318
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_invalid.yml
|
|
245
319
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_sso.yml
|
|
@@ -258,6 +332,7 @@ files:
|
|
|
258
332
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml
|
|
259
333
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml
|
|
260
334
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid_with_impersonator.yml
|
|
335
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid_with_oauth_tokens.yml
|
|
261
336
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml
|
|
262
337
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml
|
|
263
338
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml
|
|
@@ -265,6 +340,7 @@ files:
|
|
|
265
340
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml
|
|
266
341
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml
|
|
267
342
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml
|
|
343
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/unverified.yml
|
|
268
344
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml
|
|
269
345
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_code/invalid.yml
|
|
270
346
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_token/valid.yml
|
|
@@ -275,9 +351,11 @@ files:
|
|
|
275
351
|
- spec/support/fixtures/vcr_cassettes/user_management/create_magic_auth/valid.yml
|
|
276
352
|
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml
|
|
277
353
|
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
|
|
354
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid_multiple_roles.yml
|
|
278
355
|
- spec/support/fixtures/vcr_cassettes/user_management/create_password_reset/valid.yml
|
|
279
356
|
- spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml
|
|
280
357
|
- spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml
|
|
358
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_user_with_external_id.yml
|
|
281
359
|
- spec/support/fixtures/vcr_cassettes/user_management/deactivate_organization_membership.yml
|
|
282
360
|
- spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml
|
|
283
361
|
- spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml
|
|
@@ -307,9 +385,15 @@ files:
|
|
|
307
385
|
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml
|
|
308
386
|
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml
|
|
309
387
|
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_statuses_option.yml
|
|
388
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_sessions/valid.yml
|
|
310
389
|
- spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml
|
|
311
390
|
- spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml
|
|
312
391
|
- spec/support/fixtures/vcr_cassettes/user_management/reactivate_organization_membership.yml
|
|
392
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/accepted.yml
|
|
393
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/expired.yml
|
|
394
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/invalid.yml
|
|
395
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/revoked.yml
|
|
396
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/valid.yml
|
|
313
397
|
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml
|
|
314
398
|
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml
|
|
315
399
|
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml
|
|
@@ -325,13 +409,20 @@ files:
|
|
|
325
409
|
- spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml
|
|
326
410
|
- spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/invalid.yml
|
|
327
411
|
- spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid.yml
|
|
412
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid_multiple_roles.yml
|
|
413
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user/email.yml
|
|
328
414
|
- spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml
|
|
415
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user/locale.yml
|
|
329
416
|
- spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml
|
|
417
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user_external_id_null.yml
|
|
330
418
|
- spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml
|
|
331
419
|
- spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml
|
|
332
420
|
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml
|
|
333
421
|
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml
|
|
334
422
|
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml
|
|
423
|
+
- spec/support/fixtures/vcr_cassettes/widgets/get_token.yml
|
|
424
|
+
- spec/support/fixtures/vcr_cassettes/widgets/get_token_invalid_organization_id.yml
|
|
425
|
+
- spec/support/fixtures/vcr_cassettes/widgets/get_token_invalid_user_id.yml
|
|
335
426
|
- spec/support/profile.txt
|
|
336
427
|
- spec/support/shared_examples/client.rb
|
|
337
428
|
- spec/support/webhook_payload.txt
|
|
@@ -341,7 +432,7 @@ licenses:
|
|
|
341
432
|
- MIT
|
|
342
433
|
metadata:
|
|
343
434
|
documentation_uri: https://docs.workos.com/sdk/ruby
|
|
344
|
-
post_install_message:
|
|
435
|
+
post_install_message:
|
|
345
436
|
rdoc_options: []
|
|
346
437
|
require_paths:
|
|
347
438
|
- lib
|
|
@@ -349,7 +440,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
349
440
|
requirements:
|
|
350
441
|
- - ">="
|
|
351
442
|
- !ruby/object:Gem::Version
|
|
352
|
-
version: '
|
|
443
|
+
version: '3.1'
|
|
353
444
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
445
|
requirements:
|
|
355
446
|
- - ">="
|
|
@@ -357,23 +448,28 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
357
448
|
version: '0'
|
|
358
449
|
requirements: []
|
|
359
450
|
rubygems_version: 3.4.19
|
|
360
|
-
signing_key:
|
|
451
|
+
signing_key:
|
|
361
452
|
specification_version: 4
|
|
362
453
|
summary: API client for WorkOS
|
|
363
454
|
test_files:
|
|
364
455
|
- spec/lib/workos/audit_logs_spec.rb
|
|
456
|
+
- spec/lib/workos/cache_spec.rb
|
|
365
457
|
- spec/lib/workos/client.rb
|
|
366
458
|
- spec/lib/workos/configuration_spec.rb
|
|
367
459
|
- spec/lib/workos/directory_sync_spec.rb
|
|
368
460
|
- spec/lib/workos/directory_user_spec.rb
|
|
461
|
+
- spec/lib/workos/encryptors/aes_gcm_spec.rb
|
|
369
462
|
- spec/lib/workos/event_spec.rb
|
|
370
463
|
- spec/lib/workos/mfa_spec.rb
|
|
371
464
|
- spec/lib/workos/organizations_spec.rb
|
|
372
465
|
- spec/lib/workos/passwordless_spec.rb
|
|
373
466
|
- spec/lib/workos/portal_spec.rb
|
|
467
|
+
- spec/lib/workos/role_spec.rb
|
|
468
|
+
- spec/lib/workos/session_spec.rb
|
|
374
469
|
- spec/lib/workos/sso_spec.rb
|
|
375
470
|
- spec/lib/workos/user_management_spec.rb
|
|
376
471
|
- spec/lib/workos/webhooks_spec.rb
|
|
472
|
+
- spec/lib/workos/widgets_spec.rb
|
|
377
473
|
- spec/spec_helper.rb
|
|
378
474
|
- spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml
|
|
379
475
|
- spec/support/fixtures/vcr_cassettes/audit_logs/create_event_custom_idempotency_key.yml
|
|
@@ -437,6 +533,7 @@ test_files:
|
|
|
437
533
|
- spec/support/fixtures/vcr_cassettes/organization/create_with_domains.yml
|
|
438
534
|
- spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_different_payload.yml
|
|
439
535
|
- spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_payload.yml
|
|
536
|
+
- spec/support/fixtures/vcr_cassettes/organization/create_with_external_id.yml
|
|
440
537
|
- spec/support/fixtures/vcr_cassettes/organization/create_with_idempotency_key.yml
|
|
441
538
|
- spec/support/fixtures/vcr_cassettes/organization/create_without_domains.yml
|
|
442
539
|
- spec/support/fixtures/vcr_cassettes/organization/delete.yml
|
|
@@ -444,12 +541,20 @@ test_files:
|
|
|
444
541
|
- spec/support/fixtures/vcr_cassettes/organization/get.yml
|
|
445
542
|
- spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml
|
|
446
543
|
- spec/support/fixtures/vcr_cassettes/organization/list.yml
|
|
544
|
+
- spec/support/fixtures/vcr_cassettes/organization/list_organization_feature_flags.yml
|
|
545
|
+
- spec/support/fixtures/vcr_cassettes/organization/list_organization_roles.yml
|
|
447
546
|
- spec/support/fixtures/vcr_cassettes/organization/update.yml
|
|
547
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_with_external_id.yml
|
|
548
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_with_external_id_null.yml
|
|
549
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_with_stripe_customer_id.yml
|
|
550
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_without_name.yml
|
|
448
551
|
- spec/support/fixtures/vcr_cassettes/passwordless/create_session.yml
|
|
449
552
|
- spec/support/fixtures/vcr_cassettes/passwordless/create_session_invalid.yml
|
|
450
553
|
- spec/support/fixtures/vcr_cassettes/passwordless/send_session.yml
|
|
451
554
|
- spec/support/fixtures/vcr_cassettes/passwordless/send_session_invalid.yml
|
|
452
555
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_audit_logs.yml
|
|
556
|
+
- spec/support/fixtures/vcr_cassettes/portal/generate_link_certificate_renewal.yml
|
|
557
|
+
- spec/support/fixtures/vcr_cassettes/portal/generate_link_domain_verification.yml
|
|
453
558
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml
|
|
454
559
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_invalid.yml
|
|
455
560
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_sso.yml
|
|
@@ -468,6 +573,7 @@ test_files:
|
|
|
468
573
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml
|
|
469
574
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml
|
|
470
575
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid_with_impersonator.yml
|
|
576
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid_with_oauth_tokens.yml
|
|
471
577
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml
|
|
472
578
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml
|
|
473
579
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml
|
|
@@ -475,6 +581,7 @@ test_files:
|
|
|
475
581
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml
|
|
476
582
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml
|
|
477
583
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml
|
|
584
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/unverified.yml
|
|
478
585
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml
|
|
479
586
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_code/invalid.yml
|
|
480
587
|
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_token/valid.yml
|
|
@@ -485,9 +592,11 @@ test_files:
|
|
|
485
592
|
- spec/support/fixtures/vcr_cassettes/user_management/create_magic_auth/valid.yml
|
|
486
593
|
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml
|
|
487
594
|
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
|
|
595
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid_multiple_roles.yml
|
|
488
596
|
- spec/support/fixtures/vcr_cassettes/user_management/create_password_reset/valid.yml
|
|
489
597
|
- spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml
|
|
490
598
|
- spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml
|
|
599
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_user_with_external_id.yml
|
|
491
600
|
- spec/support/fixtures/vcr_cassettes/user_management/deactivate_organization_membership.yml
|
|
492
601
|
- spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml
|
|
493
602
|
- spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml
|
|
@@ -517,9 +626,15 @@ test_files:
|
|
|
517
626
|
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml
|
|
518
627
|
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml
|
|
519
628
|
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_statuses_option.yml
|
|
629
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_sessions/valid.yml
|
|
520
630
|
- spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml
|
|
521
631
|
- spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml
|
|
522
632
|
- spec/support/fixtures/vcr_cassettes/user_management/reactivate_organization_membership.yml
|
|
633
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/accepted.yml
|
|
634
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/expired.yml
|
|
635
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/invalid.yml
|
|
636
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/revoked.yml
|
|
637
|
+
- spec/support/fixtures/vcr_cassettes/user_management/resend_invitation/valid.yml
|
|
523
638
|
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml
|
|
524
639
|
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml
|
|
525
640
|
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml
|
|
@@ -535,13 +650,20 @@ test_files:
|
|
|
535
650
|
- spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml
|
|
536
651
|
- spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/invalid.yml
|
|
537
652
|
- spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid.yml
|
|
653
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid_multiple_roles.yml
|
|
654
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user/email.yml
|
|
538
655
|
- spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml
|
|
656
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user/locale.yml
|
|
539
657
|
- spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml
|
|
658
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user_external_id_null.yml
|
|
540
659
|
- spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml
|
|
541
660
|
- spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml
|
|
542
661
|
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml
|
|
543
662
|
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml
|
|
544
663
|
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml
|
|
664
|
+
- spec/support/fixtures/vcr_cassettes/widgets/get_token.yml
|
|
665
|
+
- spec/support/fixtures/vcr_cassettes/widgets/get_token_invalid_organization_id.yml
|
|
666
|
+
- spec/support/fixtures/vcr_cassettes/widgets/get_token_invalid_user_id.yml
|
|
545
667
|
- spec/support/profile.txt
|
|
546
668
|
- spec/support/shared_examples/client.rb
|
|
547
669
|
- spec/support/webhook_payload.txt
|