workos 0.10.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.ruby-version +1 -1
- data/.semaphore/semaphore.yml +10 -4
- data/Gemfile.lock +49 -36
- data/LICENSE +1 -1
- data/README.md +13 -230
- data/lib/workos.rb +5 -0
- data/lib/workos/client.rb +24 -6
- data/lib/workos/connection.rb +12 -1
- data/lib/workos/directory.rb +53 -0
- data/lib/workos/directory_group.rb +44 -0
- data/lib/workos/directory_sync.rb +63 -7
- data/lib/workos/directory_user.rb +63 -0
- data/lib/workos/organizations.rb +150 -0
- data/lib/workos/passwordless.rb +4 -0
- data/lib/workos/portal.rb +0 -80
- data/lib/workos/profile.rb +9 -12
- data/lib/workos/profile_and_token.rb +28 -0
- data/lib/workos/sso.rb +35 -102
- data/lib/workos/types.rb +3 -0
- data/lib/workos/types/connection_struct.rb +3 -0
- data/lib/workos/types/directory_group_struct.rb +13 -0
- data/lib/workos/types/directory_struct.rb +16 -0
- data/lib/workos/types/directory_user_struct.rb +19 -0
- data/lib/workos/version.rb +1 -1
- data/sorbet/rbi/gems/addressable.rbi +199 -0
- data/sorbet/rbi/gems/ast.rbi +49 -0
- data/sorbet/rbi/gems/codecov.rbi +37 -0
- data/sorbet/rbi/gems/crack.rbi +62 -0
- data/sorbet/rbi/gems/docile.rbi +36 -0
- data/sorbet/rbi/gems/hashdiff.rbi +66 -0
- data/sorbet/rbi/gems/parallel.rbi +83 -0
- data/sorbet/rbi/gems/parser.rbi +1429 -0
- data/sorbet/rbi/gems/public_suffix.rbi +104 -0
- data/sorbet/rbi/gems/rainbow.rbi +118 -0
- data/sorbet/rbi/gems/rake.rbi +644 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +926 -0
- data/sorbet/rbi/gems/rexml.rbi +628 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1898 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1127 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/rubocop-ast.rbi +1355 -0
- data/sorbet/rbi/gems/rubocop.rbi +7253 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
- data/sorbet/rbi/gems/simplecov.rbi +406 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
- data/sorbet/rbi/gems/vcr.rbi +572 -0
- data/sorbet/rbi/gems/webmock.rbi +556 -0
- data/sorbet/rbi/gems/yard.rbi +1165 -0
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +1891 -0
- data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +2072 -0
- data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +1214 -0
- data/sorbet/rbi/todo.rbi +1 -3
- data/spec/lib/workos/directory_sync_spec.rb +347 -32
- data/spec/lib/workos/organizations_spec.rb +164 -0
- data/spec/lib/workos/portal_spec.rb +0 -113
- data/spec/lib/workos/sso_spec.rb +137 -142
- data/spec/spec_helper.rb +1 -1
- data/spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/{sso/list_connections.yml → directory_sync/list_directories/with_after.yml} +7 -7
- data/spec/support/fixtures/vcr_cassettes/{sso/list_connections_with_limit_param.yml → directory_sync/list_directories/with_before.yml} +8 -8
- data/spec/support/fixtures/vcr_cassettes/{sso/list_connections_with_connection_type_param.yml → directory_sync/list_directories/with_domain.yml} +11 -10
- data/spec/support/fixtures/vcr_cassettes/{sso/list_connections_with_after_param.yml → directory_sync/list_directories/with_limit.yml} +12 -10
- data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_directories.yml → list_directories/with_no_options.yml} +1 -1
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml +76 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml +74 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml +78 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml +74 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_groups.yml → list_groups/with_no_options.yml} +16 -6
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml +75 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml +93 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml +76 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml +75 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_users.yml → list_users/with_no_options.yml} +16 -6
- data/spec/support/fixtures/vcr_cassettes/organization/get.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/update.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/organization/update_invalid.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/sso/{list_connections_with_domain_param.yml → list_connections/with_domain.yml} +6 -6
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml +74 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/sso/{list_connections_with_organization_id_param.yml → list_connections/with_organization_id.yml} +6 -6
- data/spec/support/fixtures/vcr_cassettes/sso/profile.yml +74 -0
- data/workos.gemspec +2 -0
- metadata +110 -43
- data/sorbet/rbi/hidden-definitions/errors.txt +0 -24896
- data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -38411
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8684
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +0 -4222
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories_with_domain_param.yml +0 -63
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups_with_directory_param.yml +0 -62
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users_with_directory_param.yml +0 -62
- data/spec/support/fixtures/vcr_cassettes/sso/create_connection_with_invalid_source.yml +0 -58
- data/spec/support/fixtures/vcr_cassettes/sso/create_connection_with_valid_source.yml +0 -63
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections_with_before_param.yml +0 -73
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.workos.com/connections
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
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/2.7.1; x86_64-darwin19; v0.10.3
|
18
|
+
Authorization:
|
19
|
+
- Bearer <API_KEY>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- Cowboy
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Vary:
|
30
|
+
- Origin, Accept-Encoding
|
31
|
+
Access-Control-Allow-Credentials:
|
32
|
+
- 'true'
|
33
|
+
Content-Security-Policy:
|
34
|
+
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
|
35
|
+
https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
|
36
|
+
''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
|
37
|
+
X-Dns-Prefetch-Control:
|
38
|
+
- 'off'
|
39
|
+
Expect-Ct:
|
40
|
+
- max-age=0
|
41
|
+
X-Frame-Options:
|
42
|
+
- SAMEORIGIN
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=15552000; includeSubDomains
|
45
|
+
X-Download-Options:
|
46
|
+
- noopen
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Permitted-Cross-Domain-Policies:
|
50
|
+
- none
|
51
|
+
Referrer-Policy:
|
52
|
+
- no-referrer
|
53
|
+
X-Xss-Protection:
|
54
|
+
- '0'
|
55
|
+
X-Request-Id:
|
56
|
+
- bbcbfd7d-1236-4569-b210-533526aabc5c
|
57
|
+
Content-Type:
|
58
|
+
- application/json; charset=utf-8
|
59
|
+
Etag:
|
60
|
+
- W/"4663-woqacdTBQyrC5yRu6JmZzTcKGHg"
|
61
|
+
Date:
|
62
|
+
- Thu, 22 Apr 2021 22:27:16 GMT
|
63
|
+
Transfer-Encoding:
|
64
|
+
- chunked
|
65
|
+
Via:
|
66
|
+
- 1.1 vegur
|
67
|
+
body:
|
68
|
+
encoding: ASCII-8BIT
|
69
|
+
string: '{"data":[{"object":"connection","id":"conn_01EXSJNNJYDMAPMW4RGJFPSS8S","status":"linked","state":"active","name":"Gyres","connection_type":"AzureSAML","oidc_client_id":null,"oidc_client_secret":null,"oidc_discovery_endpoint":null,"oidc_redirect_uri":null,"saml_entity_id":"https://auth.workos.com/UkfpBFm8KYo80cWmAa8GsCMSQ","saml_idp_url":"https://login.microsoftonline.com/f2416a9f-8064-45fe-99b6-d68b320c33f5/saml2","saml_relying_party_private_key":null,"saml_relying_party_public_key":null,"saml_x509_certs":null,"organization_id":"org_01EXSJN9K761YW588FHMADPPFD","oauth_uid":null,"oauth_secret":null,"oauth_redirect_uri":null,"domains":[{"object":"connection_domain","id":"org_domain_01EXSJNNJNVVHRW1HSAMJ12J31","domain":"gyres.com"}]},{"object":"connection","id":"conn_01EXJ9WRWG2526AQNQQ55J6ZFX","status":"linked","state":"active","name":"Unique
|
70
|
+
Domain","connection_type":"AzureSAML","oidc_client_id":null,"oidc_client_secret":null,"oidc_discovery_endpoint":null,"oidc_redirect_uri":null,"saml_entity_id":"https://auth.workos.com/AM9h0jCQPmM4iWUCMqKIuEMEI","saml_idp_url":"https://login.microsoftonline.com/f2416a9f-8064-45fe-99b6-d68b320c33f5/saml2","saml_relying_party_private_key":null,"saml_relying_party_public_key":null,"saml_x509_certs":null,"organization_id":"org_01EXJ9W92SBSMZNZE05XFVTTHK","oauth_uid":null,"oauth_secret":null,"oauth_redirect_uri":null,"domains":[{"object":"connection_domain","id":"org_domain_01EXJ9WRWANA8WV370QJGE2PTW","domain":"uniquedomain.com"},{"object":"connection_domain","id":"org_domain_01EXPTAPN9NB4V2ZHNQ0ZFBCEA","domain":"newdomainn.com"}]},{"object":"connection","id":"conn_01EWDSQJNXM1M33MTVSQ2ZR5M5","status":"unlinked","state":"draft","name":"IBM","connection_type":"OktaSAML","oidc_client_id":null,"oidc_client_secret":null,"oidc_discovery_endpoint":null,"oidc_redirect_uri":null,"saml_entity_id":null,"saml_idp_url":null,"saml_relying_party_private_key":null,"saml_relying_party_public_key":null,"saml_x509_certs":null,"organization_id":"org_01EWDSPEYNG87X1KMBNA7315F7","oauth_uid":null,"oauth_secret":null,"oauth_redirect_uri":null,"domains":[{"object":"connection_domain","id":"org_domain_01EWDSQJNPD7J8RPJ3KQ98PPTJ","domain":"ibm.com"},{"object":"connection_domain","id":"org_domain_01EWDSQJNQXAFPVH7C8E0MM2C0","domain":"ibm.jp"}]}],"listMetadata":{"before":"before_id","after":null}}'
|
71
|
+
http_version:
|
72
|
+
recorded_at: Thu, 22 Apr 2021 22:27:16 GMT
|
73
|
+
recorded_with: VCR 5.0.0
|
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept:
|
15
15
|
- "*/*"
|
16
16
|
User-Agent:
|
17
|
-
- WorkOS; ruby/2.7.1; x86_64-darwin19; v0.10.
|
17
|
+
- WorkOS; ruby/2.7.1; x86_64-darwin19; v0.10.3
|
18
18
|
Authorization:
|
19
19
|
- Bearer <API_KEY>
|
20
20
|
response:
|
@@ -53,20 +53,20 @@ http_interactions:
|
|
53
53
|
X-Xss-Protection:
|
54
54
|
- '0'
|
55
55
|
X-Request-Id:
|
56
|
-
-
|
56
|
+
- b54525cb-f608-4736-9a91-51a60fa20768
|
57
57
|
Content-Type:
|
58
58
|
- application/json; charset=utf-8
|
59
59
|
Etag:
|
60
|
-
- W/"
|
60
|
+
- W/"858-uzKJUA8m8TqEzP1BIYcD7v5jWXc"
|
61
61
|
Date:
|
62
|
-
-
|
62
|
+
- Thu, 22 Apr 2021 22:27:18 GMT
|
63
63
|
Transfer-Encoding:
|
64
64
|
- chunked
|
65
65
|
Via:
|
66
66
|
- 1.1 vegur
|
67
67
|
body:
|
68
68
|
encoding: ASCII-8BIT
|
69
|
-
string: '{"data":[{"object":"connection","id":"conn_01EGS6E1K7YK1G380ADPHTDC4K","status":"linked","state":"active","name":"foochrop","connection_type":"GoogleSAML","oidc_client_id":null,"oidc_client_secret":null,"oidc_discovery_endpoint":null,"oidc_redirect_uri":null,"saml_entity_id":"
|
69
|
+
string: '{"data":[{"object":"connection","id":"conn_01EGS6E1K7YK1G380ADPHTDC4K","status":"linked","state":"active","name":"foochrop","connection_type":"GoogleSAML","oidc_client_id":null,"oidc_client_secret":null,"oidc_discovery_endpoint":null,"oidc_redirect_uri":null,"saml_entity_id":"http://www.okta.com/exk2nna6ce7sryESs4x7","saml_idp_url":"https://foo-corp.okta.com/app/foo-corp_workossandboxworkostestapp_1/exk2nna6ce7sryESs4x7/sso/saml","saml_relying_party_private_key":null,"saml_relying_party_public_key":null,"saml_x509_certs":null,"organization_id":"org_01EGS4P7QR31EZ4YWD1Z1XA176","oauth_uid":null,"oauth_secret":null,"oauth_redirect_uri":null,"domains":[{"object":"connection_domain","id":"org_domain_01EGS4P7RNQPFQAQ7SKCC40KNE","domain":"foo-corp.com"}]}],"listMetadata":{"before":null,"after":null}}'
|
70
70
|
http_version:
|
71
|
-
recorded_at:
|
71
|
+
recorded_at: Thu, 22 Apr 2021 22:27:19 GMT
|
72
72
|
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.workos.com/sso/profile
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
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.1; arm64-darwin20; v1.0.0
|
18
|
+
Authorization:
|
19
|
+
- Bearer access_token
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- Cowboy
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Vary:
|
30
|
+
- Origin, Accept-Encoding
|
31
|
+
Access-Control-Allow-Credentials:
|
32
|
+
- "true"
|
33
|
+
Content-Security-Policy:
|
34
|
+
- "default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self'
|
35
|
+
https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src
|
36
|
+
'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"
|
37
|
+
X-Dns-Prefetch-Control:
|
38
|
+
- "off"
|
39
|
+
Expect-Ct:
|
40
|
+
- max-age=0
|
41
|
+
X-Frame-Options:
|
42
|
+
- SAMEORIGIN
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=15552000; includeSubDomains
|
45
|
+
X-Download-Options:
|
46
|
+
- noopen
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Permitted-Cross-Domain-Policies:
|
50
|
+
- none
|
51
|
+
Referrer-Policy:
|
52
|
+
- no-referrer
|
53
|
+
X-Xss-Protection:
|
54
|
+
- "0"
|
55
|
+
X-Request-Id:
|
56
|
+
- 45f253d6-51bb-4171-879a-d532f0275044
|
57
|
+
Content-Type:
|
58
|
+
- application/json; charset=utf-8
|
59
|
+
Content-Length:
|
60
|
+
- "545"
|
61
|
+
Etag:
|
62
|
+
- W/"221-LoXMZbv3vrn7lnJvNn6G/pqr7+c"
|
63
|
+
Date:
|
64
|
+
- Tue, 18 May 2021 22:55:21 GMT
|
65
|
+
Via:
|
66
|
+
- 1.1 vegur
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string:
|
70
|
+
'{"object":"profile","id":"prof_01EEJTY9SZ1R350RB7B73SNBKF","connection_id":"conn_01E83FVYZHY7DM4S9503JHV0R5","connection_type":"GoogleOAuth","idp_id":"116485463307139932699","email":"bob.loblaw@workos.com","first_name":"Bob","last_name":"Loblaw","raw_attributes":{"hd":"workos.com","id":"116485463307139932699","name":"Bob
|
71
|
+
Loblaw","email":"bob.loblaw@workos.com","locale":"en","picture":"https://lh3.googleusercontent.com/a-/AOh14GyO2hLlgZvteDQ3Ldi3_-RteZLya0hWH7247Cam=s96-c","given_name":"Bob","family_name":"Loblaw","verified_email":true}}'
|
72
|
+
http_version:
|
73
|
+
recorded_at: Tue, 18 May 2021 22:55:21 GMT
|
74
|
+
recorded_with: VCR 5.0.0
|
data/workos.gemspec
CHANGED
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: 1.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: 2021-
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
@@ -211,15 +211,23 @@ files:
|
|
211
211
|
- lib/workos/base.rb
|
212
212
|
- lib/workos/client.rb
|
213
213
|
- lib/workos/connection.rb
|
214
|
+
- lib/workos/directory.rb
|
215
|
+
- lib/workos/directory_group.rb
|
214
216
|
- lib/workos/directory_sync.rb
|
217
|
+
- lib/workos/directory_user.rb
|
215
218
|
- lib/workos/errors.rb
|
216
219
|
- lib/workos/organization.rb
|
220
|
+
- lib/workos/organizations.rb
|
217
221
|
- lib/workos/passwordless.rb
|
218
222
|
- lib/workos/portal.rb
|
219
223
|
- lib/workos/profile.rb
|
224
|
+
- lib/workos/profile_and_token.rb
|
220
225
|
- lib/workos/sso.rb
|
221
226
|
- lib/workos/types.rb
|
222
227
|
- lib/workos/types/connection_struct.rb
|
228
|
+
- lib/workos/types/directory_group_struct.rb
|
229
|
+
- lib/workos/types/directory_struct.rb
|
230
|
+
- lib/workos/types/directory_user_struct.rb
|
223
231
|
- lib/workos/types/intent_enum.rb
|
224
232
|
- lib/workos/types/list_struct.rb
|
225
233
|
- lib/workos/types/organization_struct.rb
|
@@ -228,17 +236,43 @@ files:
|
|
228
236
|
- lib/workos/types/provider_enum.rb
|
229
237
|
- lib/workos/version.rb
|
230
238
|
- sorbet/config
|
231
|
-
- sorbet/rbi/
|
232
|
-
- sorbet/rbi/
|
233
|
-
- sorbet/rbi/
|
239
|
+
- sorbet/rbi/gems/addressable.rbi
|
240
|
+
- sorbet/rbi/gems/ast.rbi
|
241
|
+
- sorbet/rbi/gems/codecov.rbi
|
242
|
+
- sorbet/rbi/gems/crack.rbi
|
243
|
+
- sorbet/rbi/gems/docile.rbi
|
244
|
+
- sorbet/rbi/gems/hashdiff.rbi
|
245
|
+
- sorbet/rbi/gems/parallel.rbi
|
246
|
+
- sorbet/rbi/gems/parser.rbi
|
247
|
+
- sorbet/rbi/gems/public_suffix.rbi
|
248
|
+
- sorbet/rbi/gems/rainbow.rbi
|
249
|
+
- sorbet/rbi/gems/rake.rbi
|
250
|
+
- sorbet/rbi/gems/regexp_parser.rbi
|
251
|
+
- sorbet/rbi/gems/rexml.rbi
|
252
|
+
- sorbet/rbi/gems/rspec-core.rbi
|
253
|
+
- sorbet/rbi/gems/rspec-expectations.rbi
|
254
|
+
- sorbet/rbi/gems/rspec-mocks.rbi
|
255
|
+
- sorbet/rbi/gems/rspec-support.rbi
|
256
|
+
- sorbet/rbi/gems/rspec.rbi
|
257
|
+
- sorbet/rbi/gems/rubocop-ast.rbi
|
258
|
+
- sorbet/rbi/gems/rubocop.rbi
|
259
|
+
- sorbet/rbi/gems/ruby-progressbar.rbi
|
260
|
+
- sorbet/rbi/gems/simplecov-html.rbi
|
261
|
+
- sorbet/rbi/gems/simplecov.rbi
|
262
|
+
- sorbet/rbi/gems/unicode-display_width.rbi
|
263
|
+
- sorbet/rbi/gems/vcr.rbi
|
264
|
+
- sorbet/rbi/gems/webmock.rbi
|
265
|
+
- sorbet/rbi/gems/yard.rbi
|
234
266
|
- sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi
|
235
|
-
- sorbet/rbi/sorbet-typed/lib/
|
236
|
-
- sorbet/rbi/sorbet-typed/lib/
|
237
|
-
- sorbet/rbi/sorbet-typed/lib/
|
267
|
+
- sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi
|
268
|
+
- sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi
|
269
|
+
- sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi
|
270
|
+
- sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi
|
238
271
|
- sorbet/rbi/todo.rbi
|
239
272
|
- spec/lib/workos/audit_trail_spec.rb
|
240
273
|
- spec/lib/workos/base_spec.rb
|
241
274
|
- spec/lib/workos/directory_sync_spec.rb
|
275
|
+
- spec/lib/workos/organizations_spec.rb
|
242
276
|
- spec/lib/workos/passwordless_spec.rb
|
243
277
|
- spec/lib/workos/portal_spec.rb
|
244
278
|
- spec/lib/workos/sso_spec.rb
|
@@ -250,19 +284,36 @@ files:
|
|
250
284
|
- spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_different_payload.yml
|
251
285
|
- spec/support/fixtures/vcr_cassettes/audit_trail/get_events.yml
|
252
286
|
- spec/support/fixtures/vcr_cassettes/base/execute_request_unauthenticated.yml
|
287
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml
|
253
288
|
- spec/support/fixtures/vcr_cassettes/directory_sync/get_group.yml
|
254
289
|
- spec/support/fixtures/vcr_cassettes/directory_sync/get_group_with_invalid_id.yml
|
255
290
|
- spec/support/fixtures/vcr_cassettes/directory_sync/get_user.yml
|
256
291
|
- spec/support/fixtures/vcr_cassettes/directory_sync/get_user_with_invalid_id.yml
|
257
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories.yml
|
258
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
259
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
260
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
261
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
262
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
292
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_after.yml
|
293
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_before.yml
|
294
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_domain.yml
|
295
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml
|
296
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml
|
297
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml
|
298
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml
|
299
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml
|
300
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml
|
301
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml
|
302
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_no_options.yml
|
303
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml
|
304
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml
|
305
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml
|
306
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml
|
307
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml
|
308
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml
|
309
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_no_options.yml
|
263
310
|
- spec/support/fixtures/vcr_cassettes/organization/create.yml
|
264
311
|
- spec/support/fixtures/vcr_cassettes/organization/create_invalid.yml
|
312
|
+
- spec/support/fixtures/vcr_cassettes/organization/get.yml
|
313
|
+
- spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml
|
265
314
|
- spec/support/fixtures/vcr_cassettes/organization/list.yml
|
315
|
+
- spec/support/fixtures/vcr_cassettes/organization/update.yml
|
316
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_invalid.yml
|
266
317
|
- spec/support/fixtures/vcr_cassettes/passwordless/create_session.yml
|
267
318
|
- spec/support/fixtures/vcr_cassettes/passwordless/create_session_invalid.yml
|
268
319
|
- spec/support/fixtures/vcr_cassettes/passwordless/send_session.yml
|
@@ -270,19 +321,18 @@ files:
|
|
270
321
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml
|
271
322
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_invalid.yml
|
272
323
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_sso.yml
|
273
|
-
- spec/support/fixtures/vcr_cassettes/sso/create_connection_with_invalid_source.yml
|
274
|
-
- spec/support/fixtures/vcr_cassettes/sso/create_connection_with_valid_source.yml
|
275
324
|
- spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_invalid_id.yml
|
276
325
|
- spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_valid_id.yml
|
277
326
|
- spec/support/fixtures/vcr_cassettes/sso/get_connection_with_invalid_id.yml
|
278
327
|
- spec/support/fixtures/vcr_cassettes/sso/get_connection_with_valid_id.yml
|
279
|
-
- spec/support/fixtures/vcr_cassettes/sso/list_connections.yml
|
280
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
281
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
282
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
283
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
284
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
285
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
328
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml
|
329
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml
|
330
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml
|
331
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_domain.yml
|
332
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml
|
333
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml
|
334
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml
|
335
|
+
- spec/support/fixtures/vcr_cassettes/sso/profile.yml
|
286
336
|
- spec/support/profile.txt
|
287
337
|
- workos.gemspec
|
288
338
|
homepage: https://github.com/workos-inc/workos-ruby
|
@@ -290,7 +340,7 @@ licenses:
|
|
290
340
|
- MIT
|
291
341
|
metadata:
|
292
342
|
documentation_uri: https://docs.workos.com/sdk/ruby
|
293
|
-
post_install_message:
|
343
|
+
post_install_message:
|
294
344
|
rdoc_options: []
|
295
345
|
require_paths:
|
296
346
|
- lib
|
@@ -298,21 +348,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
298
348
|
requirements:
|
299
349
|
- - ">="
|
300
350
|
- !ruby/object:Gem::Version
|
301
|
-
version: '
|
351
|
+
version: '2.5'
|
302
352
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
303
353
|
requirements:
|
304
354
|
- - ">="
|
305
355
|
- !ruby/object:Gem::Version
|
306
356
|
version: '0'
|
307
357
|
requirements: []
|
308
|
-
rubygems_version: 3.2.
|
309
|
-
signing_key:
|
358
|
+
rubygems_version: 3.2.17
|
359
|
+
signing_key:
|
310
360
|
specification_version: 4
|
311
361
|
summary: API client for WorkOS
|
312
362
|
test_files:
|
313
363
|
- spec/lib/workos/audit_trail_spec.rb
|
314
364
|
- spec/lib/workos/base_spec.rb
|
315
365
|
- spec/lib/workos/directory_sync_spec.rb
|
366
|
+
- spec/lib/workos/organizations_spec.rb
|
316
367
|
- spec/lib/workos/passwordless_spec.rb
|
317
368
|
- spec/lib/workos/portal_spec.rb
|
318
369
|
- spec/lib/workos/sso_spec.rb
|
@@ -324,19 +375,36 @@ test_files:
|
|
324
375
|
- spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_different_payload.yml
|
325
376
|
- spec/support/fixtures/vcr_cassettes/audit_trail/get_events.yml
|
326
377
|
- spec/support/fixtures/vcr_cassettes/base/execute_request_unauthenticated.yml
|
378
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml
|
327
379
|
- spec/support/fixtures/vcr_cassettes/directory_sync/get_group.yml
|
328
380
|
- spec/support/fixtures/vcr_cassettes/directory_sync/get_group_with_invalid_id.yml
|
329
381
|
- spec/support/fixtures/vcr_cassettes/directory_sync/get_user.yml
|
330
382
|
- spec/support/fixtures/vcr_cassettes/directory_sync/get_user_with_invalid_id.yml
|
331
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories.yml
|
332
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
333
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
334
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
335
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
336
|
-
- spec/support/fixtures/vcr_cassettes/directory_sync/
|
383
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_after.yml
|
384
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_before.yml
|
385
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_domain.yml
|
386
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml
|
387
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml
|
388
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml
|
389
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml
|
390
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml
|
391
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml
|
392
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml
|
393
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_no_options.yml
|
394
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml
|
395
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml
|
396
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml
|
397
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml
|
398
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml
|
399
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml
|
400
|
+
- spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_no_options.yml
|
337
401
|
- spec/support/fixtures/vcr_cassettes/organization/create.yml
|
338
402
|
- spec/support/fixtures/vcr_cassettes/organization/create_invalid.yml
|
403
|
+
- spec/support/fixtures/vcr_cassettes/organization/get.yml
|
404
|
+
- spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml
|
339
405
|
- spec/support/fixtures/vcr_cassettes/organization/list.yml
|
406
|
+
- spec/support/fixtures/vcr_cassettes/organization/update.yml
|
407
|
+
- spec/support/fixtures/vcr_cassettes/organization/update_invalid.yml
|
340
408
|
- spec/support/fixtures/vcr_cassettes/passwordless/create_session.yml
|
341
409
|
- spec/support/fixtures/vcr_cassettes/passwordless/create_session_invalid.yml
|
342
410
|
- spec/support/fixtures/vcr_cassettes/passwordless/send_session.yml
|
@@ -344,17 +412,16 @@ test_files:
|
|
344
412
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml
|
345
413
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_invalid.yml
|
346
414
|
- spec/support/fixtures/vcr_cassettes/portal/generate_link_sso.yml
|
347
|
-
- spec/support/fixtures/vcr_cassettes/sso/create_connection_with_invalid_source.yml
|
348
|
-
- spec/support/fixtures/vcr_cassettes/sso/create_connection_with_valid_source.yml
|
349
415
|
- spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_invalid_id.yml
|
350
416
|
- spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_valid_id.yml
|
351
417
|
- spec/support/fixtures/vcr_cassettes/sso/get_connection_with_invalid_id.yml
|
352
418
|
- spec/support/fixtures/vcr_cassettes/sso/get_connection_with_valid_id.yml
|
353
|
-
- spec/support/fixtures/vcr_cassettes/sso/list_connections.yml
|
354
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
355
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
356
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
357
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
358
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
359
|
-
- spec/support/fixtures/vcr_cassettes/sso/
|
419
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml
|
420
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml
|
421
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml
|
422
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_domain.yml
|
423
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml
|
424
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml
|
425
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml
|
426
|
+
- spec/support/fixtures/vcr_cassettes/sso/profile.yml
|
360
427
|
- spec/support/profile.txt
|