workos 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.semaphore/semaphore.yml +2 -2
- data/Gemfile.lock +3 -3
- data/lib/workos/directory.rb +1 -1
- data/lib/workos/types/directory_struct.rb +1 -1
- data/lib/workos/version.rb +1 -1
- data/spec/lib/workos/directory_sync_spec.rb +11 -10
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_after.yml +34 -22
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_before.yml +36 -22
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_domain.yml +30 -19
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml +31 -20
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml +39 -21
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +32 -20
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18ce86de81ae6d0135098cff2358718a85e32216b668fa8812561518765d08c3
|
4
|
+
data.tar.gz: 8536d98714bbd426436f2b6ac0a24164da2837e6d4ec1f9162d4bcbb167fd344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4befc50b81553c325994aca87349d8c4badc3af319cd1924967542352dd5b9e0c36ad8375fa71f1605979dd9415e720d03bf55a9fe74bbba35d7fa2127d34ad
|
7
|
+
data.tar.gz: 25f9bf26defd800826522200a2328f1ce1c1e1ae169cad9c3a297a4f45d0f120a9fd25d0d60d1ff5050c56408b7ef25619827a6083307f17203f66a0ce72c72e
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
data/.semaphore/semaphore.yml
CHANGED
@@ -66,10 +66,10 @@ blocks:
|
|
66
66
|
- sem-version ruby 2.7.3
|
67
67
|
- bundle install
|
68
68
|
- bundle exec rspec
|
69
|
-
- name: Ruby 3.0.
|
69
|
+
- name: Ruby 3.0.2
|
70
70
|
commands:
|
71
71
|
- checkout
|
72
|
-
- sem-version ruby 3.0.
|
72
|
+
- sem-version ruby 3.0.2
|
73
73
|
- bundle install
|
74
74
|
- bundle exec rspec
|
75
75
|
promotions:
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
workos (1.6.
|
4
|
+
workos (1.6.1)
|
5
5
|
sorbet-runtime (~> 0.5)
|
6
6
|
|
7
7
|
GEM
|
@@ -60,7 +60,7 @@ GEM
|
|
60
60
|
simplecov_json_formatter (0.1.2)
|
61
61
|
sorbet (0.5.6388)
|
62
62
|
sorbet-static (= 0.5.6388)
|
63
|
-
sorbet-runtime (0.5.
|
63
|
+
sorbet-runtime (0.5.9300)
|
64
64
|
sorbet-static (0.5.6388-universal-darwin-14)
|
65
65
|
sorbet-static (0.5.6388-universal-darwin-15)
|
66
66
|
sorbet-static (0.5.6388-universal-darwin-16)
|
@@ -93,4 +93,4 @@ DEPENDENCIES
|
|
93
93
|
yard
|
94
94
|
|
95
95
|
BUNDLED WITH
|
96
|
-
2.2.
|
96
|
+
2.2.22
|
data/lib/workos/directory.rb
CHANGED
@@ -17,7 +17,7 @@ module WorkOS
|
|
17
17
|
|
18
18
|
@id = T.let(raw.id, String)
|
19
19
|
@name = T.let(raw.name, String)
|
20
|
-
@domain =
|
20
|
+
@domain = raw.domain
|
21
21
|
@type = T.let(raw.type, String)
|
22
22
|
@state = T.let(raw.state, String)
|
23
23
|
@organization_id = T.let(raw.organization_id, String)
|
data/lib/workos/version.rb
CHANGED
@@ -15,7 +15,7 @@ describe WorkOS::DirectorySync do
|
|
15
15
|
VCR.use_cassette 'directory_sync/list_directories/with_no_options' do
|
16
16
|
directories = described_class.list_directories
|
17
17
|
|
18
|
-
expect(directories.data.size).to eq(
|
18
|
+
expect(directories.data.size).to eq(10)
|
19
19
|
expect(directories.list_metadata).to eq(expected_metadata)
|
20
20
|
end
|
21
21
|
end
|
@@ -46,7 +46,7 @@ describe WorkOS::DirectorySync do
|
|
46
46
|
context 'with search option' do
|
47
47
|
it 'forms the proper request to the API' do
|
48
48
|
request_args = [
|
49
|
-
'/directories?search=
|
49
|
+
'/directories?search=Testing',
|
50
50
|
'Content-Type' => 'application/json'
|
51
51
|
]
|
52
52
|
|
@@ -57,10 +57,11 @@ describe WorkOS::DirectorySync do
|
|
57
57
|
|
58
58
|
VCR.use_cassette 'directory_sync/list_directories/with_search' do
|
59
59
|
directories = described_class.list_directories(
|
60
|
-
search: '
|
60
|
+
search: 'Testing',
|
61
61
|
)
|
62
62
|
|
63
|
-
expect(directories.data.size).to eq(
|
63
|
+
expect(directories.data.size).to eq(2)
|
64
|
+
expect(directories.data[0].name).to include('Testing')
|
64
65
|
end
|
65
66
|
end
|
66
67
|
end
|
@@ -68,7 +69,7 @@ describe WorkOS::DirectorySync do
|
|
68
69
|
context 'with the before option' do
|
69
70
|
it 'forms the proper request to the API' do
|
70
71
|
request_args = [
|
71
|
-
'/directories?before=
|
72
|
+
'/directories?before=directory_01FGCPNV312FHFRCX0BYWHVSE1',
|
72
73
|
'Content-Type' => 'application/json'
|
73
74
|
]
|
74
75
|
|
@@ -79,10 +80,10 @@ describe WorkOS::DirectorySync do
|
|
79
80
|
|
80
81
|
VCR.use_cassette 'directory_sync/list_directories/with_before' do
|
81
82
|
directories = described_class.list_directories(
|
82
|
-
before: '
|
83
|
+
before: 'directory_01FGCPNV312FHFRCX0BYWHVSE1',
|
83
84
|
)
|
84
85
|
|
85
|
-
expect(directories.data.size).to eq(
|
86
|
+
expect(directories.data.size).to eq(6)
|
86
87
|
end
|
87
88
|
end
|
88
89
|
end
|
@@ -90,7 +91,7 @@ describe WorkOS::DirectorySync do
|
|
90
91
|
context 'with the after option' do
|
91
92
|
it 'forms the proper request to the API' do
|
92
93
|
request_args = [
|
93
|
-
'/directories?after=
|
94
|
+
'/directories?after=directory_01FGCPNV312FHFRCX0BYWHVSE1',
|
94
95
|
'Content-Type' => 'application/json'
|
95
96
|
]
|
96
97
|
|
@@ -100,9 +101,9 @@ describe WorkOS::DirectorySync do
|
|
100
101
|
and_return(expected_request)
|
101
102
|
|
102
103
|
VCR.use_cassette 'directory_sync/list_directories/with_after' do
|
103
|
-
directories = described_class.list_directories(after: '
|
104
|
+
directories = described_class.list_directories(after: 'directory_01FGCPNV312FHFRCX0BYWHVSE1')
|
104
105
|
|
105
|
-
expect(directories.data.size).to eq(
|
106
|
+
expect(directories.data.size).to eq(4)
|
106
107
|
end
|
107
108
|
end
|
108
109
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.workos.com/directories?after=
|
5
|
+
uri: https://api.workos.com/directories?after=directory_01FGCPNV312FHFRCX0BYWHVSE1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept:
|
15
15
|
- "*/*"
|
16
16
|
User-Agent:
|
17
|
-
- WorkOS; ruby/3.0.
|
17
|
+
- WorkOS; ruby/3.0.2; x86_64-darwin19; v1.6.0
|
18
18
|
Authorization:
|
19
19
|
- Bearer <API_KEY>
|
20
20
|
response:
|
@@ -22,14 +22,14 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Date:
|
26
|
+
- Sun, 31 Oct 2021 23:16:20 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
27
31
|
Connection:
|
28
32
|
- keep-alive
|
29
|
-
Vary:
|
30
|
-
- Origin, Accept-Encoding
|
31
|
-
Access-Control-Allow-Credentials:
|
32
|
-
- 'true'
|
33
33
|
Content-Security-Policy:
|
34
34
|
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
|
35
35
|
https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
|
@@ -52,24 +52,36 @@ http_interactions:
|
|
52
52
|
- no-referrer
|
53
53
|
X-Xss-Protection:
|
54
54
|
- '0'
|
55
|
+
Vary:
|
56
|
+
- Origin, Accept-Encoding
|
57
|
+
Access-Control-Allow-Credentials:
|
58
|
+
- 'true'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
57
|
-
Content-Type:
|
58
|
-
- application/json; charset=utf-8
|
59
|
-
Content-Length:
|
60
|
-
- '784'
|
60
|
+
- 9b8b2fde-c533-499f-8255-ae5a38dec1c9
|
61
61
|
Etag:
|
62
|
-
- W/"
|
63
|
-
Date:
|
64
|
-
- Mon, 07 Jun 2021 17:55:30 GMT
|
62
|
+
- W/"57d-b8X7nQ95z8XcpGDAg30zxtq4cyU"
|
65
63
|
Via:
|
66
64
|
- 1.1 vegur
|
65
|
+
Cf-Cache-Status:
|
66
|
+
- DYNAMIC
|
67
|
+
Report-To:
|
68
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=bjisueAcX0y8T%2Bw7bzZ80xRsaJ5DYZJgfN2zGa5B24dZ%2BZPVtKMFVRMw4L9VpcpSuElvsrz9f503dDZJ46JT6sbHmUEE188lRzuHV1UC45wkzjRb%2B%2BMdPysI9473RJMX2ilURb2knzhC29H0YA%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
69
|
+
Nel:
|
70
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
71
|
+
Server:
|
72
|
+
- cloudflare
|
73
|
+
Cf-Ray:
|
74
|
+
- 6a7097287c0866e3-DFW
|
75
|
+
Alt-Svc:
|
76
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443";
|
77
|
+
ma=86400
|
67
78
|
body:
|
68
|
-
encoding:
|
69
|
-
string: '{"object":"list","
|
70
|
-
Test","external_key":"
|
71
|
-
|
72
|
-
|
79
|
+
encoding: ASCII-8BIT
|
80
|
+
string: '{"object":"list","data":[{"object":"directory","id":"directory_01FK3HFFGMC2WF32RR8SKWC8KA","organization_id":"org_01FHRF60X0CDBB8F6A0YGSJJ2B","name":"Azure
|
81
|
+
Set Up Test","external_key":"Ii2mw43BMAIqiKuA","type":"azure scim v2.0","state":"linked","created_at":"2021-10-28T13:29:54.451Z","updated_at":"2021-10-28T13:32:03.737Z"},{"object":"directory","id":"directory_01FK17DWRHH7APAFXT5B52PV0W","organization_id":"org_01F6Q6TFP7RD2PF6J03ANNWDKV","name":"Testing
|
82
|
+
Active Attribute","external_key":"QArgyQQkq4G0MquM","type":"azure scim v2.0","state":"linked","created_at":"2021-10-27T15:55:47.856Z","updated_at":"2021-10-27T16:03:43.990Z","domain":"example.me"},{"object":"directory","id":"directory_01FHZKS052FGZQQCZHAX0E4AC0","organization_id":"org_01FHRF60X0CDBB8F6A0YGSJJ2B","name":"Okta
|
83
|
+
SCIM Test","external_key":"z76YkVQ9vEK0AUyy","type":"okta scim v2.0","state":"linked","created_at":"2021-10-14T14:37:24.004Z","updated_at":"2021-10-27T15:50:21.248Z"},{"object":"directory","id":"directory_01FGCQE0KD0V01GB46NJ7871F7","organization_id":"org_01FGCPJPQ35DR0WGGGBEC2V1GN","name":"Azure
|
84
|
+
Test","external_key":"S16nSw4AaAyW06ia","type":"azure scim v2.0","state":"linked","created_at":"2021-09-24T20:20:02.285Z","updated_at":"2021-10-27T15:50:21.579Z"}],"list_metadata":{"before":"directory_01FGCQE0KD0V01GB46NJ7871F7","after":null},"listMetadata":{"before":"directory_01FGCQE0KD0V01GB46NJ7871F7","after":null}}'
|
73
85
|
http_version:
|
74
|
-
recorded_at:
|
86
|
+
recorded_at: Sun, 31 Oct 2021 23:16:20 GMT
|
75
87
|
recorded_with: VCR 5.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.workos.com/directories?before=
|
5
|
+
uri: https://api.workos.com/directories?before=directory_01FGCPNV312FHFRCX0BYWHVSE1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept:
|
15
15
|
- "*/*"
|
16
16
|
User-Agent:
|
17
|
-
- WorkOS; ruby/3.0.
|
17
|
+
- WorkOS; ruby/3.0.2; x86_64-darwin19; v1.6.0
|
18
18
|
Authorization:
|
19
19
|
- Bearer <API_KEY>
|
20
20
|
response:
|
@@ -22,14 +22,14 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Date:
|
26
|
+
- Sun, 31 Oct 2021 23:16:19 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
27
31
|
Connection:
|
28
32
|
- keep-alive
|
29
|
-
Vary:
|
30
|
-
- Origin, Accept-Encoding
|
31
|
-
Access-Control-Allow-Credentials:
|
32
|
-
- 'true'
|
33
33
|
Content-Security-Policy:
|
34
34
|
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
|
35
35
|
https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
|
@@ -52,24 +52,38 @@ http_interactions:
|
|
52
52
|
- no-referrer
|
53
53
|
X-Xss-Protection:
|
54
54
|
- '0'
|
55
|
+
Vary:
|
56
|
+
- Origin, Accept-Encoding
|
57
|
+
Access-Control-Allow-Credentials:
|
58
|
+
- 'true'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
57
|
-
Content-Type:
|
58
|
-
- application/json; charset=utf-8
|
59
|
-
Content-Length:
|
60
|
-
- '71'
|
60
|
+
- f6691c56-0bec-4224-b82c-ca59bab86bfc
|
61
61
|
Etag:
|
62
|
-
- W/"
|
63
|
-
Date:
|
64
|
-
- Mon, 07 Jun 2021 17:55:30 GMT
|
62
|
+
- W/"7fd-djK1P4BOpjA1geoLytAYBJmPVUE"
|
65
63
|
Via:
|
66
64
|
- 1.1 vegur
|
65
|
+
Cf-Cache-Status:
|
66
|
+
- DYNAMIC
|
67
|
+
Report-To:
|
68
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=QqBEPSIOhswfJhIT0bQZkAmYAUYn4aciBJ0IqnBShioQo9rrCjEqe7v0ZLpVdPgxr7acbaWOaHuUZZM3gdx1ad7S5TDNP5sMWZJCRhwBG9qxX2A678OHDThvHQQqHSFjUq7CKfKt%2F3h%2FAOKRZA%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
69
|
+
Nel:
|
70
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
71
|
+
Server:
|
72
|
+
- cloudflare
|
73
|
+
Cf-Ray:
|
74
|
+
- 6a709726ea2966dd-DFW
|
75
|
+
Alt-Svc:
|
76
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443";
|
77
|
+
ma=86400
|
67
78
|
body:
|
68
|
-
encoding:
|
69
|
-
string: '{"object":"list","
|
70
|
-
Test","external_key":"
|
71
|
-
|
72
|
-
|
79
|
+
encoding: ASCII-8BIT
|
80
|
+
string: '{"object":"list","data":[{"object":"directory","id":"directory_01FG7FERZ204FKVG0YJA2CKFNG","organization_id":"org_01FG52B571GYMYNX3JNY5X3QAK","name":"Azure
|
81
|
+
Test","external_key":"UtCjmfF8gmEiOU0O","type":"azure scim v2.0","state":"linked","created_at":"2021-09-22T19:24:26.462Z","updated_at":"2021-10-27T15:50:20.636Z","domain":"example.com"},{"object":"directory","id":"directory_01FG226GXGR369PTWYGFNDWR9D","organization_id":"org_01FCPEJXEZR4DSBA625YMGQT9N","name":"JumpCloud
|
82
|
+
Test","external_key":"NRgx1V0pe8m4ai6u","type":"generic scim v2.0","state":"linked","created_at":"2021-09-20T16:56:32.434Z","updated_at":"2021-10-27T15:50:20.888Z","domain":"example.io"},{"object":"directory","id":"directory_01FFR1120F90Z4YJC29JT37VK0","organization_id":"org_01F8873JSZWN1MJCDN537FEK1H","name":"Azure","external_key":"rAaT6GNCDuyyYkKq","type":"azure
|
83
|
+
scim v2.0","state":"linked","created_at":"2021-09-16T19:23:40.419Z","updated_at":"2021-10-27T15:50:19.998Z"},{"object":"directory","id":"directory_01FE1VTQYEQF7S3T2G0R2MFHN9","organization_id":"org_01FCPEJXEZR4DSBA625YMGQT9N","name":"Okta
|
84
|
+
SCIM test","external_key":"JCik62hLK6CA804q","type":"okta scim v2.0","state":"linked","created_at":"2021-08-26T18:33:51.309Z","updated_at":"2021-10-27T15:50:19.921Z","domain":"example.io"},{"object":"directory","id":"directory_01FCV1FRW3D93X8VBZBCAQWEVS","organization_id":"org_01F9293WD2PDEEV4Y625XPZVG7","name":"Testing","external_key":"p2TZ3heuEoyU2kWk","type":"azure
|
85
|
+
scim v2.0","state":"linked","created_at":"2021-08-11T16:42:20.416Z","updated_at":"2021-10-27T15:50:19.430Z","domain":"foo-corp.com"},{"object":"directory","id":"directory_01F9M7F68PZP8QXP8G7X5QRHS7","organization_id":"org_01F8873JSZWN1MJCDN537FEK1H","name":"Example
|
86
|
+
Directory","external_key":"houUTobogoaaI0A0","type":"okta scim v2.0","state":"linked","created_at":"2021-07-02T18:25:06.343Z","updated_at":"2021-10-27T15:50:14.624Z"}],"list_metadata":{"before":null,"after":"directory_01FG7FERZ204FKVG0YJA2CKFNG"},"listMetadata":{"before":null,"after":"directory_01FG7FERZ204FKVG0YJA2CKFNG"}}'
|
73
87
|
http_version:
|
74
|
-
recorded_at:
|
88
|
+
recorded_at: Sun, 31 Oct 2021 23:16:19 GMT
|
75
89
|
recorded_with: VCR 5.0.0
|
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept:
|
15
15
|
- "*/*"
|
16
16
|
User-Agent:
|
17
|
-
- WorkOS; ruby/3.0.
|
17
|
+
- WorkOS; ruby/3.0.2; x86_64-darwin19; v1.6.0
|
18
18
|
Authorization:
|
19
19
|
- Bearer <API_KEY>
|
20
20
|
response:
|
@@ -22,14 +22,14 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Date:
|
26
|
+
- Sun, 31 Oct 2021 23:03:01 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
27
31
|
Connection:
|
28
32
|
- keep-alive
|
29
|
-
Vary:
|
30
|
-
- Origin, Accept-Encoding
|
31
|
-
Access-Control-Allow-Credentials:
|
32
|
-
- 'true'
|
33
33
|
Content-Security-Policy:
|
34
34
|
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
|
35
35
|
https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
|
@@ -52,22 +52,33 @@ http_interactions:
|
|
52
52
|
- no-referrer
|
53
53
|
X-Xss-Protection:
|
54
54
|
- '0'
|
55
|
+
Vary:
|
56
|
+
- Origin, Accept-Encoding
|
57
|
+
Access-Control-Allow-Credentials:
|
58
|
+
- 'true'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
57
|
-
Content-Type:
|
58
|
-
- application/json; charset=utf-8
|
59
|
-
Content-Length:
|
60
|
-
- '539'
|
60
|
+
- 6d450b69-226e-43b9-85e2-a9af8acc3587
|
61
61
|
Etag:
|
62
|
-
- W/"
|
63
|
-
Date:
|
64
|
-
- Mon, 07 Jun 2021 17:55:29 GMT
|
62
|
+
- W/"1ae-fFF8nGLOuVotMa13kni7myHqhLI"
|
65
63
|
Via:
|
66
64
|
- 1.1 vegur
|
65
|
+
Cf-Cache-Status:
|
66
|
+
- DYNAMIC
|
67
|
+
Report-To:
|
68
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=8ezv4P5avuKkdxcUh1hzoLa%2B%2BqrY3KNgK6vvzH8%2F57%2B3ByY9kRBf%2By1wrM7Q84StvoG4mBzl9qAmmpOPIVCiMiZjpY2rB3WJwY5ZcJ7Mc0qAHhwH5oE88orepnesd5BIZUO0hViBpvfcyJ8lfA%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
69
|
+
Nel:
|
70
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
71
|
+
Server:
|
72
|
+
- cloudflare
|
73
|
+
Cf-Ray:
|
74
|
+
- 6a7083ab7fa8ecaf-DFW
|
75
|
+
Alt-Svc:
|
76
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443";
|
77
|
+
ma=86400
|
67
78
|
body:
|
68
|
-
encoding:
|
69
|
-
string: '{"object":"list","
|
70
|
-
|
79
|
+
encoding: ASCII-8BIT
|
80
|
+
string: '{"object":"list","data":[{"object":"directory","id":"directory_01FCV1FRW3D93X8VBZBCAQWEVS","organization_id":"org_01F9293WD2PDEEV4Y625XPZVG7","name":"Testing","external_key":"p2TZ3heuEoyU2kWk","type":"azure
|
81
|
+
scim v2.0","state":"linked","created_at":"2021-08-11T16:42:20.416Z","updated_at":"2021-10-27T15:50:19.430Z","domain":"foo-corp.com"}],"list_metadata":{"before":null,"after":null},"listMetadata":{"before":null,"after":null}}'
|
71
82
|
http_version:
|
72
|
-
recorded_at:
|
83
|
+
recorded_at: Sun, 31 Oct 2021 23:03:01 GMT
|
73
84
|
recorded_with: VCR 5.0.0
|
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept:
|
15
15
|
- "*/*"
|
16
16
|
User-Agent:
|
17
|
-
- WorkOS; ruby/3.0.
|
17
|
+
- WorkOS; ruby/3.0.2; x86_64-darwin19; v1.6.0
|
18
18
|
Authorization:
|
19
19
|
- Bearer <API_KEY>
|
20
20
|
response:
|
@@ -22,14 +22,14 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Date:
|
26
|
+
- Sun, 31 Oct 2021 23:03:02 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
27
31
|
Connection:
|
28
32
|
- keep-alive
|
29
|
-
Vary:
|
30
|
-
- Origin, Accept-Encoding
|
31
|
-
Access-Control-Allow-Credentials:
|
32
|
-
- 'true'
|
33
33
|
Content-Security-Policy:
|
34
34
|
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
|
35
35
|
https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
|
@@ -52,23 +52,34 @@ http_interactions:
|
|
52
52
|
- no-referrer
|
53
53
|
X-Xss-Protection:
|
54
54
|
- '0'
|
55
|
+
Vary:
|
56
|
+
- Origin, Accept-Encoding
|
57
|
+
Access-Control-Allow-Credentials:
|
58
|
+
- 'true'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
57
|
-
Content-Type:
|
58
|
-
- application/json; charset=utf-8
|
59
|
-
Content-Length:
|
60
|
-
- '573'
|
60
|
+
- 5ce37d38-1376-429a-9052-f8b3a20b7a1f
|
61
61
|
Etag:
|
62
|
-
- W/"
|
63
|
-
Date:
|
64
|
-
- Mon, 07 Jun 2021 17:55:31 GMT
|
62
|
+
- W/"32e-Omiowe6KK7MTqS3mgnIBMR53RMc"
|
65
63
|
Via:
|
66
64
|
- 1.1 vegur
|
65
|
+
Cf-Cache-Status:
|
66
|
+
- DYNAMIC
|
67
|
+
Report-To:
|
68
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=FokV%2F1WK8Sg4dLf6m6Id%2F8wfHWKcdGsLenHbJdpxkh6Pc8TLsRsSD68RDAeDY%2FwavJ%2Bf1TjFwDsuIF%2FV2bPMJFMAqZ6uinTANK2iNXp8FGA9pM98aa9v8bekYflxceYXqDzkW8VhWtv6Wiv%2BsQ%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
69
|
+
Nel:
|
70
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
71
|
+
Server:
|
72
|
+
- cloudflare
|
73
|
+
Cf-Ray:
|
74
|
+
- 6a7083b1f8086799-DFW
|
75
|
+
Alt-Svc:
|
76
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443";
|
77
|
+
ma=86400
|
67
78
|
body:
|
68
|
-
encoding:
|
69
|
-
string: '{"object":"list","
|
70
|
-
Test","external_key":"
|
71
|
-
|
79
|
+
encoding: ASCII-8BIT
|
80
|
+
string: '{"object":"list","data":[{"object":"directory","id":"directory_01FK3HFFGMC2WF32RR8SKWC8KA","organization_id":"org_01FHRF60X0CDBB8F6A0YGSJJ2B","name":"Azure
|
81
|
+
Set Up Test","external_key":"Ii2mw43BMAIqiKuA","type":"azure scim v2.0","state":"linked","created_at":"2021-10-28T13:29:54.451Z","updated_at":"2021-10-28T13:32:03.737Z"},{"object":"directory","id":"directory_01FK17DWRHH7APAFXT5B52PV0W","organization_id":"org_01F6Q6TFP7RD2PF6J03ANNWDKV","name":"Testing
|
82
|
+
Active Attribute","external_key":"QArgyQQkq4G0MquM","type":"azure scim v2.0","state":"linked","created_at":"2021-10-27T15:55:47.856Z","updated_at":"2021-10-27T16:03:43.990Z","domain":"example.me"}],"list_metadata":{"before":"directory_01FK17DWRHH7APAFXT5B52PV0W","after":null},"listMetadata":{"before":"directory_01FK17DWRHH7APAFXT5B52PV0W","after":null}}'
|
72
83
|
http_version:
|
73
|
-
recorded_at:
|
84
|
+
recorded_at: Sun, 31 Oct 2021 23:03:02 GMT
|
74
85
|
recorded_with: VCR 5.0.0
|
data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml
CHANGED
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept:
|
15
15
|
- "*/*"
|
16
16
|
User-Agent:
|
17
|
-
- WorkOS; ruby/3.0.
|
17
|
+
- WorkOS; ruby/3.0.2; x86_64-darwin19; v1.6.0
|
18
18
|
Authorization:
|
19
19
|
- Bearer <API_KEY>
|
20
20
|
response:
|
@@ -22,14 +22,14 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Date:
|
26
|
+
- Sun, 31 Oct 2021 23:03:01 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
27
31
|
Connection:
|
28
32
|
- keep-alive
|
29
|
-
Vary:
|
30
|
-
- Origin, Accept-Encoding
|
31
|
-
Access-Control-Allow-Credentials:
|
32
|
-
- 'true'
|
33
33
|
Content-Security-Policy:
|
34
34
|
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
|
35
35
|
https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
|
@@ -52,24 +52,42 @@ http_interactions:
|
|
52
52
|
- no-referrer
|
53
53
|
X-Xss-Protection:
|
54
54
|
- '0'
|
55
|
+
Vary:
|
56
|
+
- Origin, Accept-Encoding
|
57
|
+
Access-Control-Allow-Credentials:
|
58
|
+
- 'true'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
57
|
-
Content-Type:
|
58
|
-
- application/json; charset=utf-8
|
59
|
-
Content-Length:
|
60
|
-
- '784'
|
60
|
+
- 6009e44d-df2c-40f3-86ad-929ea9362079
|
61
61
|
Etag:
|
62
|
-
- W/"
|
63
|
-
Date:
|
64
|
-
- Mon, 07 Jun 2021 17:55:29 GMT
|
62
|
+
- W/"cc4-a76uP4WPcu7cTLA79G0DPZmGW9Q"
|
65
63
|
Via:
|
66
64
|
- 1.1 vegur
|
65
|
+
Cf-Cache-Status:
|
66
|
+
- DYNAMIC
|
67
|
+
Report-To:
|
68
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=O7wQC%2B7g1ppMHWz9lao8DR2my83z8XtBX68EnYTeP8X1d4tSho2n8jpWq%2FT4xaKExSPn%2BnvlIotIUwtrZ5pkoULZQQvn1vHxHBE3eRKYZi7W0TO86ct3jtxDne%2B3FLOzLjCmkwYVgEEjkeb5Jg%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
69
|
+
Nel:
|
70
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
71
|
+
Server:
|
72
|
+
- cloudflare
|
73
|
+
Cf-Ray:
|
74
|
+
- 6a7083a96c520bef-DFW
|
75
|
+
Alt-Svc:
|
76
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443";
|
77
|
+
ma=86400
|
67
78
|
body:
|
68
|
-
encoding:
|
69
|
-
string: '{"object":"list","
|
70
|
-
Test","external_key":"
|
71
|
-
|
72
|
-
|
79
|
+
encoding: ASCII-8BIT
|
80
|
+
string: '{"object":"list","data":[{"object":"directory","id":"directory_01FK3HFFGMC2WF32RR8SKWC8KA","organization_id":"org_01FHRF60X0CDBB8F6A0YGSJJ2B","name":"Azure
|
81
|
+
Set Up Test","external_key":"Ii2mw43BMAIqiKuA","type":"azure scim v2.0","state":"linked","created_at":"2021-10-28T13:29:54.451Z","updated_at":"2021-10-28T13:32:03.737Z"},{"object":"directory","id":"directory_01FK17DWRHH7APAFXT5B52PV0W","organization_id":"org_01F6Q6TFP7RD2PF6J03ANNWDKV","name":"Testing
|
82
|
+
Active Attribute","external_key":"QArgyQQkq4G0MquM","type":"azure scim v2.0","state":"linked","created_at":"2021-10-27T15:55:47.856Z","updated_at":"2021-10-27T16:03:43.990Z","domain":"example.me"},{"object":"directory","id":"directory_01FHZKS052FGZQQCZHAX0E4AC0","organization_id":"org_01FHRF60X0CDBB8F6A0YGSJJ2B","name":"Okta
|
83
|
+
SCIM Test","external_key":"z76YkVQ9vEK0AUyy","type":"okta scim v2.0","state":"linked","created_at":"2021-10-14T14:37:24.004Z","updated_at":"2021-10-27T15:50:21.248Z"},{"object":"directory","id":"directory_01FGCQE0KD0V01GB46NJ7871F7","organization_id":"org_01FGCPJPQ35DR0WGGGBEC2V1GN","name":"Azure
|
84
|
+
Test","external_key":"S16nSw4AaAyW06ia","type":"azure scim v2.0","state":"linked","created_at":"2021-09-24T20:20:02.285Z","updated_at":"2021-10-27T15:50:21.579Z"},{"object":"directory","id":"directory_01FGCPNV312FHFRCX0BYWHVSE1","organization_id":"org_01FGCPJPQ35DR0WGGGBEC2V1GN","name":"Jump
|
85
|
+
Cloud Test","external_key":"amuPHnduKW0WQWmc","type":"generic scim v2.0","state":"linked","created_at":"2021-09-24T20:06:50.208Z","updated_at":"2021-10-27T15:50:21.493Z"},{"object":"directory","id":"directory_01FG7FERZ204FKVG0YJA2CKFNG","organization_id":"org_01FG52B571GYMYNX3JNY5X3QAK","name":"Azure
|
86
|
+
Test","external_key":"UtCjmfF8gmEiOU0O","type":"azure scim v2.0","state":"linked","created_at":"2021-09-22T19:24:26.462Z","updated_at":"2021-10-27T15:50:20.636Z","domain":"example.com"},{"object":"directory","id":"directory_01FG226GXGR369PTWYGFNDWR9D","organization_id":"org_01FCPEJXEZR4DSBA625YMGQT9N","name":"JumpCloud
|
87
|
+
Test","external_key":"NRgx1V0pe8m4ai6u","type":"generic scim v2.0","state":"linked","created_at":"2021-09-20T16:56:32.434Z","updated_at":"2021-10-27T15:50:20.888Z","domain":"example.io"},{"object":"directory","id":"directory_01FFR1120F90Z4YJC29JT37VK0","organization_id":"org_01F8873JSZWN1MJCDN537FEK1H","name":"Azure","external_key":"rAaT6GNCDuyyYkKq","type":"azure
|
88
|
+
scim v2.0","state":"linked","created_at":"2021-09-16T19:23:40.419Z","updated_at":"2021-10-27T15:50:19.998Z"},{"object":"directory","id":"directory_01FE1VTQYEQF7S3T2G0R2MFHN9","organization_id":"org_01FCPEJXEZR4DSBA625YMGQT9N","name":"Okta
|
89
|
+
SCIM test","external_key":"JCik62hLK6CA804q","type":"okta scim v2.0","state":"linked","created_at":"2021-08-26T18:33:51.309Z","updated_at":"2021-10-27T15:50:19.921Z","domain":"example.io"},{"object":"directory","id":"directory_01FCV1FRW3D93X8VBZBCAQWEVS","organization_id":"org_01F9293WD2PDEEV4Y625XPZVG7","name":"Testing","external_key":"p2TZ3heuEoyU2kWk","type":"azure
|
90
|
+
scim v2.0","state":"linked","created_at":"2021-08-11T16:42:20.416Z","updated_at":"2021-10-27T15:50:19.430Z","domain":"foo-corp.com"}],"list_metadata":{"before":"before-id","after":null},"listMetadata":{"before":"before-id","after":null}}'
|
73
91
|
http_version:
|
74
|
-
recorded_at:
|
92
|
+
recorded_at: Sun, 31 Oct 2021 23:03:01 GMT
|
75
93
|
recorded_with: VCR 5.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.workos.com/directories?search=
|
5
|
+
uri: https://api.workos.com/directories?search=Testing
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept:
|
15
15
|
- "*/*"
|
16
16
|
User-Agent:
|
17
|
-
- WorkOS; ruby/3.0.
|
17
|
+
- WorkOS; ruby/3.0.2; x86_64-darwin19; v1.6.0
|
18
18
|
Authorization:
|
19
19
|
- Bearer <API_KEY>
|
20
20
|
response:
|
@@ -22,14 +22,14 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Date:
|
26
|
+
- Sun, 31 Oct 2021 23:16:19 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
27
31
|
Connection:
|
28
32
|
- keep-alive
|
29
|
-
Vary:
|
30
|
-
- Origin, Accept-Encoding
|
31
|
-
Access-Control-Allow-Credentials:
|
32
|
-
- 'true'
|
33
33
|
Content-Security-Policy:
|
34
34
|
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
|
35
35
|
https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
|
@@ -52,22 +52,34 @@ http_interactions:
|
|
52
52
|
- no-referrer
|
53
53
|
X-Xss-Protection:
|
54
54
|
- '0'
|
55
|
+
Vary:
|
56
|
+
- Origin, Accept-Encoding
|
57
|
+
Access-Control-Allow-Credentials:
|
58
|
+
- 'true'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
57
|
-
Content-Type:
|
58
|
-
- application/json; charset=utf-8
|
59
|
-
Content-Length:
|
60
|
-
- '305'
|
60
|
+
- 11c4f81a-6849-4809-8c57-a3d1b56612eb
|
61
61
|
Etag:
|
62
|
-
- W/"
|
63
|
-
Date:
|
64
|
-
- Mon, 07 Jun 2021 17:55:30 GMT
|
62
|
+
- W/"2f8-aWsjddKqVKL34/+wL752xfuiH2Q"
|
65
63
|
Via:
|
66
64
|
- 1.1 vegur
|
65
|
+
Cf-Cache-Status:
|
66
|
+
- DYNAMIC
|
67
|
+
Report-To:
|
68
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=t8d6LCrGu92dvmMmTECbvhqH82TcvvWNxTw%2Bz6jGMz8S0Y7mg91uXsTylK4KEs9uMr5gnnYAi%2FHAq1FwNpt5MoYMFTqfR1wDpE3UIsNusj%2F1TxwAUwx2J3BclqJl0riP44WITzFLdv66r3kd1g%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
69
|
+
Nel:
|
70
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
71
|
+
Server:
|
72
|
+
- cloudflare
|
73
|
+
Cf-Ray:
|
74
|
+
- 6a7097250eb40baf-DFW
|
75
|
+
Alt-Svc:
|
76
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443";
|
77
|
+
ma=86400
|
67
78
|
body:
|
68
|
-
encoding:
|
69
|
-
string: '{"object":"list","
|
70
|
-
|
79
|
+
encoding: ASCII-8BIT
|
80
|
+
string: '{"object":"list","data":[{"object":"directory","id":"directory_01FK17DWRHH7APAFXT5B52PV0W","organization_id":"org_01F6Q6TFP7RD2PF6J03ANNWDKV","name":"Testing
|
81
|
+
Active Attribute","external_key":"QArgyQQkq4G0MquM","type":"azure scim v2.0","state":"linked","created_at":"2021-10-27T15:55:47.856Z","updated_at":"2021-10-27T16:03:43.990Z","domain":"example.me"},{"object":"directory","id":"directory_01FCV1FRW3D93X8VBZBCAQWEVS","organization_id":"org_01F9293WD2PDEEV4Y625XPZVG7","name":"Testing","external_key":"p2TZ3heuEoyU2kWk","type":"azure
|
82
|
+
scim v2.0","state":"linked","created_at":"2021-08-11T16:42:20.416Z","updated_at":"2021-10-27T15:50:19.430Z","domain":"foo-corp.com"}],"list_metadata":{"before":null,"after":null},"listMetadata":{"before":null,"after":null}}'
|
71
83
|
http_version:
|
72
|
-
recorded_at:
|
84
|
+
recorded_at: Sun, 31 Oct 2021 23:16:19 GMT
|
73
85
|
recorded_with: VCR 5.0.0
|
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: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WorkOS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
@@ -362,7 +362,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
362
362
|
- !ruby/object:Gem::Version
|
363
363
|
version: '0'
|
364
364
|
requirements: []
|
365
|
-
rubygems_version: 3.2.
|
365
|
+
rubygems_version: 3.2.30
|
366
366
|
signing_key:
|
367
367
|
specification_version: 4
|
368
368
|
summary: API client for WorkOS
|