workos 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a00962231e6c619c78e5b5549a2e53ca7c60e5e31bd06f46a383b1797f673b0
|
4
|
+
data.tar.gz: 593fb9342f9085abdd855a9a861f01859fd0ad7427e146b22c10dce142cd6779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02fc5ab50f261d7f3a5d0eebcaa40003c86222a98c5dad13b066d61b643b18e47998e1919bd257d9a3873fe54d04690de7a0c47457c9a34aab7f6d8909e307f8
|
7
|
+
data.tar.gz: 9ef0e3d05c5d15fa4ff3645488fc8cf725c24c48477b5ab0c8c7621e7cc1f4ca51a1161e00cc6ef74cb8dadc18b07ca68223f525b5aba66d843ccfb92000f711
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
workos (0.10.
|
4
|
+
workos (0.10.1)
|
5
5
|
sorbet-runtime (~> 0.5)
|
6
6
|
|
7
7
|
GEM
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
simplecov-html (0.12.2)
|
55
55
|
sorbet (0.5.5560)
|
56
56
|
sorbet-static (= 0.5.5560)
|
57
|
-
sorbet-runtime (0.5.
|
57
|
+
sorbet-runtime (0.5.6300)
|
58
58
|
sorbet-static (0.5.5560-universal-darwin-14)
|
59
59
|
unicode-display_width (1.6.0)
|
60
60
|
vcr (5.0.0)
|
data/lib/workos/sso.rb
CHANGED
@@ -203,6 +203,8 @@ module WorkOS
|
|
203
203
|
# provider descriptor.
|
204
204
|
# @option options [String] domain The domain of the connection to be
|
205
205
|
# retrieved.
|
206
|
+
# @option options [String] organization_id The id of the organization
|
207
|
+
# of the connections to be retrieved.
|
206
208
|
# @option options [String] limit Maximum number of records to return.
|
207
209
|
# @option options [String] before Pagination cursor to receive records
|
208
210
|
# before a provided Connection ID.
|
data/lib/workos/version.rb
CHANGED
data/spec/lib/workos/sso_spec.rb
CHANGED
@@ -397,6 +397,20 @@ describe WorkOS::SSO do
|
|
397
397
|
end
|
398
398
|
end
|
399
399
|
|
400
|
+
context 'with organization_id option' do
|
401
|
+
it 'returns connections' do
|
402
|
+
VCR.use_cassette('sso/list_connections_with_organization_id_param') do
|
403
|
+
connections = WorkOS::SSO.list_connections(
|
404
|
+
organization_id: 'org_01EGS4P7QR31EZ4YWD1Z1XA176',
|
405
|
+
)
|
406
|
+
expect(connections.size).to eq(1)
|
407
|
+
expect(connections.first['organization_id']).to eq(
|
408
|
+
'org_01EGS4P7QR31EZ4YWD1Z1XA176',
|
409
|
+
)
|
410
|
+
end
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|
400
414
|
context 'with limit option' do
|
401
415
|
it 'returns connections' do
|
402
416
|
VCR.use_cassette('sso/list_connections_with_limit_param') do
|
@@ -0,0 +1,72 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.workos.com/connections?organization_id=org_01EGS4P7QR31EZ4YWD1Z1XA176
|
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.0
|
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
|
+
- 1a9c4c5a-4702-4f2e-88ee-d681e13276ef
|
57
|
+
Content-Type:
|
58
|
+
- application/json; charset=utf-8
|
59
|
+
Etag:
|
60
|
+
- W/"7f7-Srp6Nv6te4CUMvxv1RKUf5Mte/4"
|
61
|
+
Date:
|
62
|
+
- Wed, 24 Feb 2021 19:48:04 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_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":"https://accounts.google.com/o/saml2?idpid=4444","saml_idp_url":"https://accounts.google.com/o/saml2/idp?idpid=4444","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":"domain_01EGS6E1KPBD018BHS9Z10VHR9","domain":"foo-corp.com"}]}],"listMetadata":{"before":null,"after":null}}'
|
70
|
+
http_version:
|
71
|
+
recorded_at: Wed, 24 Feb 2021 19:48:04 GMT
|
72
|
+
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: 0.10.
|
4
|
+
version: 0.10.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-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
@@ -281,6 +281,7 @@ files:
|
|
281
281
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections_with_connection_type_param.yml
|
282
282
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections_with_domain_param.yml
|
283
283
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections_with_limit_param.yml
|
284
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections_with_organization_id_param.yml
|
284
285
|
- spec/support/profile.txt
|
285
286
|
- workos.gemspec
|
286
287
|
homepage: https://github.com/workos-inc/workos-ruby
|
@@ -303,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
304
|
- !ruby/object:Gem::Version
|
304
305
|
version: '0'
|
305
306
|
requirements: []
|
306
|
-
rubygems_version: 3.2.
|
307
|
+
rubygems_version: 3.2.12
|
307
308
|
signing_key:
|
308
309
|
specification_version: 4
|
309
310
|
summary: API client for WorkOS
|
@@ -353,4 +354,5 @@ test_files:
|
|
353
354
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections_with_connection_type_param.yml
|
354
355
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections_with_domain_param.yml
|
355
356
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections_with_limit_param.yml
|
357
|
+
- spec/support/fixtures/vcr_cassettes/sso/list_connections_with_organization_id_param.yml
|
356
358
|
- spec/support/profile.txt
|