workos 2.16.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +5 -14
- data/lib/workos/authentication_factor_and_challenge.rb +31 -0
- data/lib/workos/authentication_response.rb +27 -0
- data/lib/workos/client.rb +1 -1
- data/lib/workos/configuration.rb +1 -1
- data/lib/workos/invitation.rb +68 -0
- data/lib/workos/organization_membership.rb +50 -0
- data/lib/workos/sso.rb +1 -1
- data/lib/workos/types/invitation_struct.rb +20 -0
- data/lib/workos/types/magic_auth_challenge_struct.rb +12 -0
- data/lib/workos/types/organization_membership_struct.rb +15 -0
- data/lib/workos/types/provider_enum.rb +1 -0
- data/lib/workos/types/user_struct.rb +17 -0
- data/lib/workos/types.rb +9 -5
- data/lib/workos/user.rb +57 -0
- data/lib/workos/user_and_token.rb +29 -0
- data/lib/workos/user_management.rb +1008 -0
- data/lib/workos/user_response.rb +25 -0
- data/lib/workos/version.rb +1 -1
- data/lib/workos.rb +35 -28
- data/spec/lib/workos/sso_spec.rb +8 -8
- data/spec/lib/workos/user_management_spec.rb +1092 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml +81 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml +81 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/invalid.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml +81 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml +78 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/delete_user/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/delete_user/valid.yml +78 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/get_user.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/invalid.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml +82 -0
- data/workos.gemspec +0 -2
- metadata +132 -55
- data/bin/docs +0 -5
- data/docs/WorkOS/APIError.html +0 -160
- data/docs/WorkOS/AuditLog.html +0 -235
- data/docs/WorkOS/AuditTrail.html +0 -235
- data/docs/WorkOS/AuthenticationError.html +0 -160
- data/docs/WorkOS/Base.html +0 -287
- data/docs/WorkOS/Client.html +0 -504
- data/docs/WorkOS/InvalidRequestError.html +0 -160
- data/docs/WorkOS/Profile.html +0 -788
- data/docs/WorkOS/RequestError.html +0 -135
- data/docs/WorkOS/SSO.html +0 -691
- data/docs/WorkOS/Types/ProfileStruct.html +0 -135
- data/docs/WorkOS/Types/Provider.html +0 -135
- data/docs/WorkOS/Types.html +0 -128
- data/docs/WorkOS/WorkOSError.html +0 -447
- data/docs/WorkOS.html +0 -324
- data/docs/class_list.html +0 -51
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -496
- data/docs/file.README.html +0 -252
- data/docs/file_list.html +0 -56
- data/docs/frames.html +0 -17
- data/docs/index.html +0 -250
- data/docs/js/app.js +0 -314
- data/docs/js/full_list.js +0 -216
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -267
- data/docs/top-level-namespace.html +0 -110
- data/lib/workos/audit_trail.rb +0 -111
- data/spec/lib/workos/audit_trail_spec.rb +0 -146
@@ -0,0 +1,82 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.workos.com/user_management/users/user_01H968BR1R84DSPYS9QR5PM6RZ/email_verification/confirm
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"code":"333495"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- WorkOS; ruby/3.0.2; arm64-darwin21; v2.16.0
|
18
|
+
Authorization:
|
19
|
+
- Bearer <API_KEY>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Thu, 31 Aug 2023 16:57:30 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- "375"
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Cf-Ray:
|
34
|
+
- 7ff6d01c4853c71d-SEA
|
35
|
+
Cf-Cache-Status:
|
36
|
+
- DYNAMIC
|
37
|
+
Etag:
|
38
|
+
- W/"177-YBu4ZtIor9/cOTTWMVDcStQWgKw"
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=15552000; includeSubDomains
|
41
|
+
Vary:
|
42
|
+
- Origin, Accept-Encoding
|
43
|
+
Via:
|
44
|
+
- 1.1 spaces-router (devel)
|
45
|
+
Access-Control-Allow-Credentials:
|
46
|
+
- "true"
|
47
|
+
Content-Security-Policy:
|
48
|
+
- "default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self'
|
49
|
+
https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src
|
50
|
+
'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"
|
51
|
+
Expect-Ct:
|
52
|
+
- max-age=0
|
53
|
+
Referrer-Policy:
|
54
|
+
- no-referrer
|
55
|
+
X-Content-Type-Options:
|
56
|
+
- nosniff
|
57
|
+
X-Dns-Prefetch-Control:
|
58
|
+
- "off"
|
59
|
+
X-Download-Options:
|
60
|
+
- noopen
|
61
|
+
X-Frame-Options:
|
62
|
+
- SAMEORIGIN
|
63
|
+
X-Permitted-Cross-Domain-Policies:
|
64
|
+
- none
|
65
|
+
X-Request-Id:
|
66
|
+
- 04bda556-68f2-4d4a-bf9a-4c062ef6a74c
|
67
|
+
X-Xss-Protection:
|
68
|
+
- "0"
|
69
|
+
Set-Cookie:
|
70
|
+
- __cf_bm=qyedAgoptBqJ5xN5lPHoIU9qwCUCQvbE3HD8c76nhUk-1693501050-0-AcNrMwoG1S+cyYFaLGGofemD2IQZEpdx4y1XWCEMFHec7s4VMppzx23C+RjWZW2swKRgz9N172Txwwh4bPatEvQ=;
|
71
|
+
path=/; expires=Thu, 31-Aug-23 17:27:30 GMT; domain=.workos.com; HttpOnly;
|
72
|
+
Secure; SameSite=None
|
73
|
+
- __cfruid=682f9a6af8fd91f62014876911781063f77faebe-1693501050; path=/; domain=.workos.com;
|
74
|
+
HttpOnly; Secure; SameSite=None
|
75
|
+
Server:
|
76
|
+
- cloudflare
|
77
|
+
body:
|
78
|
+
encoding: UTF-8
|
79
|
+
string: '{"user":{"object":"user","id":"user_01H968BR1R84DSPYS9QR5PM6RZ","email":"test@workos.com","email_verified":true,"first_name":"Adam","last_name":"Test","created_at":"2023-08-31T16:55:56.619Z","updated_at":"2023-08-31T16:57:30.574Z","user_type":"unmanaged","email_verified_at":"2023-08-31T16:57:30.628Z","google_oauth_profile_id":null,"microsoft_oauth_profile_id":null}}'
|
80
|
+
http_version:
|
81
|
+
recorded_at: Thu, 31 Aug 2023 16:57:30 GMT
|
82
|
+
recorded_with: VCR 5.0.0
|
data/workos.gemspec
CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
}
|
19
19
|
|
20
20
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
21
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
23
22
|
spec.require_paths = ['lib']
|
24
23
|
|
@@ -32,7 +31,6 @@ Gem::Specification.new do |spec|
|
|
32
31
|
spec.add_development_dependency 'tapioca'
|
33
32
|
spec.add_development_dependency 'vcr', '~> 5.0.0'
|
34
33
|
spec.add_development_dependency 'webmock'
|
35
|
-
spec.add_development_dependency 'yard'
|
36
34
|
|
37
35
|
spec.required_ruby_version = '>= 2.5'
|
38
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WorkOS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
@@ -136,29 +136,10 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: yard
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
139
|
description: API client for WorkOS
|
154
140
|
email:
|
155
141
|
- support@workos.com
|
156
|
-
executables:
|
157
|
-
- build
|
158
|
-
- console
|
159
|
-
- docs
|
160
|
-
- publish
|
161
|
-
- tapioca
|
142
|
+
executables: []
|
162
143
|
extensions: []
|
163
144
|
extra_rdoc_files: []
|
164
145
|
files:
|
@@ -177,44 +158,16 @@ files:
|
|
177
158
|
- README.md
|
178
159
|
- bin/build
|
179
160
|
- bin/console
|
180
|
-
- bin/docs
|
181
161
|
- bin/publish
|
182
162
|
- bin/tapioca
|
183
163
|
- codecov.yml
|
184
164
|
- devbox.json
|
185
165
|
- devbox.lock
|
186
|
-
- docs/WorkOS.html
|
187
|
-
- docs/WorkOS/APIError.html
|
188
|
-
- docs/WorkOS/AuditLog.html
|
189
|
-
- docs/WorkOS/AuditTrail.html
|
190
|
-
- docs/WorkOS/AuthenticationError.html
|
191
|
-
- docs/WorkOS/Base.html
|
192
|
-
- docs/WorkOS/Client.html
|
193
|
-
- docs/WorkOS/InvalidRequestError.html
|
194
|
-
- docs/WorkOS/Profile.html
|
195
|
-
- docs/WorkOS/RequestError.html
|
196
|
-
- docs/WorkOS/SSO.html
|
197
|
-
- docs/WorkOS/Types.html
|
198
|
-
- docs/WorkOS/Types/ProfileStruct.html
|
199
|
-
- docs/WorkOS/Types/Provider.html
|
200
|
-
- docs/WorkOS/WorkOSError.html
|
201
|
-
- docs/class_list.html
|
202
|
-
- docs/css/common.css
|
203
|
-
- docs/css/full_list.css
|
204
|
-
- docs/css/style.css
|
205
|
-
- docs/file.README.html
|
206
|
-
- docs/file_list.html
|
207
|
-
- docs/frames.html
|
208
|
-
- docs/index.html
|
209
|
-
- docs/js/app.js
|
210
|
-
- docs/js/full_list.js
|
211
|
-
- docs/js/jquery.js
|
212
|
-
- docs/method_list.html
|
213
|
-
- docs/top-level-namespace.html
|
214
166
|
- lib/workos.rb
|
215
167
|
- lib/workos/audit_log_export.rb
|
216
168
|
- lib/workos/audit_logs.rb
|
217
|
-
- lib/workos/
|
169
|
+
- lib/workos/authentication_factor_and_challenge.rb
|
170
|
+
- lib/workos/authentication_response.rb
|
218
171
|
- lib/workos/challenge.rb
|
219
172
|
- lib/workos/client.rb
|
220
173
|
- lib/workos/configuration.rb
|
@@ -229,8 +182,10 @@ files:
|
|
229
182
|
- lib/workos/events.rb
|
230
183
|
- lib/workos/factor.rb
|
231
184
|
- lib/workos/hash_provider.rb
|
185
|
+
- lib/workos/invitation.rb
|
232
186
|
- lib/workos/mfa.rb
|
233
187
|
- lib/workos/organization.rb
|
188
|
+
- lib/workos/organization_membership.rb
|
234
189
|
- lib/workos/organizations.rb
|
235
190
|
- lib/workos/passwordless.rb
|
236
191
|
- lib/workos/portal.rb
|
@@ -247,13 +202,21 @@ files:
|
|
247
202
|
- lib/workos/types/event_struct.rb
|
248
203
|
- lib/workos/types/factor_struct.rb
|
249
204
|
- lib/workos/types/intent_enum.rb
|
205
|
+
- lib/workos/types/invitation_struct.rb
|
250
206
|
- lib/workos/types/list_struct.rb
|
207
|
+
- lib/workos/types/magic_auth_challenge_struct.rb
|
208
|
+
- lib/workos/types/organization_membership_struct.rb
|
251
209
|
- lib/workos/types/organization_struct.rb
|
252
210
|
- lib/workos/types/passwordless_session_struct.rb
|
253
211
|
- lib/workos/types/profile_struct.rb
|
254
212
|
- lib/workos/types/provider_enum.rb
|
213
|
+
- lib/workos/types/user_struct.rb
|
255
214
|
- lib/workos/types/verify_challenge_struct.rb
|
256
215
|
- lib/workos/types/webhook_struct.rb
|
216
|
+
- lib/workos/user.rb
|
217
|
+
- lib/workos/user_and_token.rb
|
218
|
+
- lib/workos/user_management.rb
|
219
|
+
- lib/workos/user_response.rb
|
257
220
|
- lib/workos/verify_challenge.rb
|
258
221
|
- lib/workos/version.rb
|
259
222
|
- lib/workos/webhook.rb
|
@@ -301,7 +264,6 @@ files:
|
|
301
264
|
- sorbet/tapioca/config.yml
|
302
265
|
- sorbet/tapioca/require.rb
|
303
266
|
- spec/lib/workos/audit_logs_spec.rb
|
304
|
-
- spec/lib/workos/audit_trail_spec.rb
|
305
267
|
- spec/lib/workos/configuration_spec.rb
|
306
268
|
- spec/lib/workos/directory_sync_spec.rb
|
307
269
|
- spec/lib/workos/directory_user_spec.rb
|
@@ -311,6 +273,7 @@ files:
|
|
311
273
|
- spec/lib/workos/passwordless_spec.rb
|
312
274
|
- spec/lib/workos/portal_spec.rb
|
313
275
|
- spec/lib/workos/sso_spec.rb
|
276
|
+
- spec/lib/workos/user_management_spec.rb
|
314
277
|
- spec/lib/workos/webhooks_spec.rb
|
315
278
|
- spec/spec_helper.rb
|
316
279
|
- spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml
|
@@ -399,6 +362,63 @@ files:
|
|
399
362
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml
|
400
363
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml
|
401
364
|
- spec/support/fixtures/vcr_cassettes/sso/profile.yml
|
365
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml
|
366
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml
|
367
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml
|
368
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml
|
369
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml
|
370
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml
|
371
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml
|
372
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml
|
373
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml
|
374
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml
|
375
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/invalid.yml
|
376
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml
|
377
|
+
- spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml
|
378
|
+
- spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml
|
379
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml
|
380
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
|
381
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml
|
382
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml
|
383
|
+
- spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml
|
384
|
+
- spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml
|
385
|
+
- spec/support/fixtures/vcr_cassettes/user_management/delete_user/invalid.yml
|
386
|
+
- spec/support/fixtures/vcr_cassettes/user_management/delete_user/valid.yml
|
387
|
+
- spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/invalid.yml
|
388
|
+
- spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml
|
389
|
+
- spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml
|
390
|
+
- spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml
|
391
|
+
- spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml
|
392
|
+
- spec/support/fixtures/vcr_cassettes/user_management/get_user.yml
|
393
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml
|
394
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/valid.yml
|
395
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml
|
396
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml
|
397
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml
|
398
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml
|
399
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml
|
400
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml
|
401
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml
|
402
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml
|
403
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml
|
404
|
+
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml
|
405
|
+
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml
|
406
|
+
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml
|
407
|
+
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml
|
408
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml
|
409
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml
|
410
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml
|
411
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/invalid.yml
|
412
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/valid.yml
|
413
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/invalid.yml
|
414
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml
|
415
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml
|
416
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml
|
417
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml
|
418
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml
|
419
|
+
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml
|
420
|
+
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml
|
421
|
+
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml
|
402
422
|
- spec/support/profile.txt
|
403
423
|
- spec/support/shared_examples/client_spec.rb
|
404
424
|
- spec/support/webhook_payload.txt
|
@@ -423,13 +443,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
423
443
|
- !ruby/object:Gem::Version
|
424
444
|
version: '0'
|
425
445
|
requirements: []
|
426
|
-
rubygems_version: 3.
|
446
|
+
rubygems_version: 3.5.3
|
427
447
|
signing_key:
|
428
448
|
specification_version: 4
|
429
449
|
summary: API client for WorkOS
|
430
450
|
test_files:
|
431
451
|
- spec/lib/workos/audit_logs_spec.rb
|
432
|
-
- spec/lib/workos/audit_trail_spec.rb
|
433
452
|
- spec/lib/workos/configuration_spec.rb
|
434
453
|
- spec/lib/workos/directory_sync_spec.rb
|
435
454
|
- spec/lib/workos/directory_user_spec.rb
|
@@ -439,6 +458,7 @@ test_files:
|
|
439
458
|
- spec/lib/workos/passwordless_spec.rb
|
440
459
|
- spec/lib/workos/portal_spec.rb
|
441
460
|
- spec/lib/workos/sso_spec.rb
|
461
|
+
- spec/lib/workos/user_management_spec.rb
|
442
462
|
- spec/lib/workos/webhooks_spec.rb
|
443
463
|
- spec/spec_helper.rb
|
444
464
|
- spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml
|
@@ -527,6 +547,63 @@ test_files:
|
|
527
547
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml
|
528
548
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml
|
529
549
|
- spec/support/fixtures/vcr_cassettes/sso/profile.yml
|
550
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml
|
551
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml
|
552
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml
|
553
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml
|
554
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml
|
555
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml
|
556
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml
|
557
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml
|
558
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml
|
559
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml
|
560
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/invalid.yml
|
561
|
+
- spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml
|
562
|
+
- spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml
|
563
|
+
- spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml
|
564
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml
|
565
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
|
566
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml
|
567
|
+
- spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml
|
568
|
+
- spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml
|
569
|
+
- spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml
|
570
|
+
- spec/support/fixtures/vcr_cassettes/user_management/delete_user/invalid.yml
|
571
|
+
- spec/support/fixtures/vcr_cassettes/user_management/delete_user/valid.yml
|
572
|
+
- spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/invalid.yml
|
573
|
+
- spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml
|
574
|
+
- spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml
|
575
|
+
- spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml
|
576
|
+
- spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml
|
577
|
+
- spec/support/fixtures/vcr_cassettes/user_management/get_user.yml
|
578
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml
|
579
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/valid.yml
|
580
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml
|
581
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml
|
582
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml
|
583
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml
|
584
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml
|
585
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml
|
586
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml
|
587
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml
|
588
|
+
- spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml
|
589
|
+
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml
|
590
|
+
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml
|
591
|
+
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml
|
592
|
+
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml
|
593
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml
|
594
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml
|
595
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml
|
596
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/invalid.yml
|
597
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/valid.yml
|
598
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/invalid.yml
|
599
|
+
- spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml
|
600
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml
|
601
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml
|
602
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml
|
603
|
+
- spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml
|
604
|
+
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml
|
605
|
+
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml
|
606
|
+
- spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml
|
530
607
|
- spec/support/profile.txt
|
531
608
|
- spec/support/shared_examples/client_spec.rb
|
532
609
|
- spec/support/webhook_payload.txt
|
data/bin/docs
DELETED
data/docs/WorkOS/APIError.html
DELETED
@@ -1,160 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Exception: WorkOS::APIError
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.22
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "WorkOS::APIError";
|
19
|
-
relpath = '../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../_index.html">Index (A)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../WorkOS.html" title="WorkOS (module)">WorkOS</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">APIError</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Exception: WorkOS::APIError
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName"><span class='object_link'><a href="WorkOSError.html" title="WorkOS::WorkOSError (class)">WorkOSError</a></span></span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">StandardError</li>
|
78
|
-
|
79
|
-
<li class="next"><span class='object_link'><a href="WorkOSError.html" title="WorkOS::WorkOSError (class)">WorkOSError</a></span></li>
|
80
|
-
|
81
|
-
<li class="next">WorkOS::APIError</li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
85
|
-
|
86
|
-
</dd>
|
87
|
-
</dl>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<dl>
|
100
|
-
<dt>Defined in:</dt>
|
101
|
-
<dd>lib/workos/errors.rb</dd>
|
102
|
-
</dl>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
<h2>Overview</h2><div class="docstring">
|
107
|
-
<div class="discussion">
|
108
|
-
|
109
|
-
<p>APIError is a generic error that may be raised in cases where none of the other named errors cover the problem. It could also be raised in the case that a new error has been introduced in the API, but this version of the Ruby SDK doesn't know how to handle it.</p>
|
110
|
-
|
111
|
-
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<div class="tags">
|
115
|
-
|
116
|
-
|
117
|
-
</div>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<h2>Instance Attribute Summary</h2>
|
124
|
-
|
125
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="WorkOSError.html" title="WorkOS::WorkOSError (class)">WorkOSError</a></span></h3>
|
126
|
-
<p class="inherited"><span class='object_link'><a href="WorkOSError.html#http_status-instance_method" title="WorkOS::WorkOSError#http_status (method)">#http_status</a></span>, <span class='object_link'><a href="WorkOSError.html#request_id-instance_method" title="WorkOS::WorkOSError#request_id (method)">#request_id</a></span></p>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
<h2>Method Summary</h2>
|
137
|
-
|
138
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="WorkOSError.html" title="WorkOS::WorkOSError (class)">WorkOSError</a></span></h3>
|
139
|
-
<p class="inherited"><span class='object_link'><a href="WorkOSError.html#initialize-instance_method" title="WorkOS::WorkOSError#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="WorkOSError.html#to_s-instance_method" title="WorkOS::WorkOSError#to_s (method)">#to_s</a></span></p>
|
140
|
-
|
141
|
-
|
142
|
-
<div id="constructor_details" class="method_details_list">
|
143
|
-
<h2>Constructor Details</h2>
|
144
|
-
|
145
|
-
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="WorkOSError.html#initialize-instance_method" title="WorkOS::WorkOSError#initialize (method)">WorkOS::WorkOSError</a></span></p>
|
146
|
-
|
147
|
-
</div>
|
148
|
-
|
149
|
-
|
150
|
-
</div>
|
151
|
-
|
152
|
-
<div id="footer">
|
153
|
-
Generated on Tue Apr 7 22:21:08 2020 by
|
154
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
155
|
-
0.9.22 (ruby-2.7.1).
|
156
|
-
</div>
|
157
|
-
|
158
|
-
</div>
|
159
|
-
</body>
|
160
|
-
</html>
|