workos 4.3.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/workos/deprecation.rb +16 -0
  4. data/lib/workos/invitation.rb +3 -1
  5. data/lib/workos/magic_auth.rb +37 -0
  6. data/lib/workos/mfa.rb +3 -2
  7. data/lib/workos/organizations.rb +23 -5
  8. data/lib/workos/sso.rb +2 -2
  9. data/lib/workos/user_management.rb +41 -1
  10. data/lib/workos/version.rb +1 -1
  11. data/lib/workos.rb +2 -0
  12. data/spec/lib/workos/mfa_spec.rb +13 -8
  13. data/spec/lib/workos/organizations_spec.rb +53 -0
  14. data/spec/lib/workos/user_management_spec.rb +40 -0
  15. data/spec/support/fixtures/vcr_cassettes/organization/create_with_domain_data.yml +82 -0
  16. data/spec/support/fixtures/vcr_cassettes/organization/create_with_domains.yml +81 -0
  17. data/spec/support/fixtures/vcr_cassettes/organization/create_without_domains.yml +86 -0
  18. data/spec/support/fixtures/vcr_cassettes/user_management/create_magic_auth/valid.yml +80 -0
  19. data/spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml +1 -1
  20. data/spec/support/fixtures/vcr_cassettes/user_management/get_magic_auth/invalid.yml +80 -0
  21. data/spec/support/fixtures/vcr_cassettes/user_management/get_magic_auth/valid.yml +80 -0
  22. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml +1 -1
  23. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml +1 -1
  24. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml +1 -1
  25. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml +1 -1
  26. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml +1 -1
  27. data/spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml +1 -1
  28. data/spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml +1 -1
  29. metadata +18 -4
  30. /data/spec/support/shared_examples/{client_spec.rb → client.rb} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e9c735f7fc4cc9a411de3ae0a3587a65eafb86d5abea06deebda9af4557b7d5
4
- data.tar.gz: 0527add6ca64c5be1d9c38a4e205af1974c0b6407e2a9eea2358b6cd9a9328df
3
+ metadata.gz: 49c966155f5c153170aeeb3ef517c42e6967a297e875ebea314ffc155fdea5f3
4
+ data.tar.gz: 96a7dc5083766f28f6b23f533ffc064e4d1708d19063787ecf8f94f1d5ff09ae
5
5
  SHA512:
6
- metadata.gz: 0ee30e5ed0c50be86a2ec193f81b1eb8a9c5900fdac6b124b7a642b874e1e88244bba23df08c60673e9ee23c35f6713e17ccfb9d6f26e3413fb2e0f48696245d
7
- data.tar.gz: 1f5cbc0d1f2a61945b3fd0a28feb56bc2dff908d14cb78ad737d2ca3af0197391aff26e763b64e9d0b6577c0c987ab122667b2a92ce61eb54f95114d99d73d73
6
+ metadata.gz: 3e0029ae78436134df06312c02a02490e75f9bc62c23a83e70e647bc0ef5384d7fc7ced8351760291743b2aba3f799171eb242c3c3cad8f8d2940bc95881c288
7
+ data.tar.gz: 0ad84d7083020a2d3b8a356064fd4ecc5edc4c9a6aad91ff9b73c28ffcbfa74e6e4a1f0d8131005b87ec658fed0dcb4267ef95539432d4195829e744a9269464
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (4.3.0)
4
+ workos (4.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WorkOS
4
+ # Provides helpers for working with deprecated SDK and API features.
5
+ module Deprecation
6
+ def warn_deprecation(message)
7
+ full_message = "[DEPRECATION] #{message}"
8
+
9
+ if RUBY_VERSION > '3'
10
+ warn full_message, category: :deprecated
11
+ else
12
+ warn full_message
13
+ end
14
+ end
15
+ end
16
+ end
@@ -7,7 +7,7 @@ module WorkOS
7
7
  class Invitation
8
8
  include HashProvider
9
9
 
10
- attr_accessor :id, :email, :state, :accepted_at, :revoked_at,
10
+ attr_accessor :id, :email, :state, :accepted_at, :revoked_at, :accept_invitation_url,
11
11
  :expires_at, :token, :organization_id, :created_at, :updated_at
12
12
 
13
13
  def initialize(json)
@@ -17,6 +17,7 @@ module WorkOS
17
17
  @email = hash[:email]
18
18
  @state = hash[:state]
19
19
  @token = hash[:token]
20
+ @accept_invitation_url = hash[:accept_invitation_url]
20
21
  @organization_id = hash[:organization_id]
21
22
  @accepted_at = hash[:accepted_at]
22
23
  @revoked_at = hash[:revoked_at]
@@ -31,6 +32,7 @@ module WorkOS
31
32
  email: email,
32
33
  state: state,
33
34
  token: token,
35
+ accept_invitation_url: accept_invitation_url,
34
36
  organization_id: organization_id,
35
37
  accepted_at: accepted_at,
36
38
  revoked_at: revoked_at,
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WorkOS
4
+ # The MagicAuth class provides a lightweight wrapper around a WorkOS MagicAuth
5
+ # resource. This class is not meant to be instantiated in a user space,
6
+ # and is instantiated internally but exposed.
7
+ class MagicAuth
8
+ include HashProvider
9
+
10
+ attr_accessor :id, :user_id, :email,
11
+ :expires_at, :code, :created_at, :updated_at
12
+
13
+ def initialize(json)
14
+ hash = JSON.parse(json, symbolize_names: true)
15
+
16
+ @id = hash[:id]
17
+ @user_id = hash[:user_id]
18
+ @email = hash[:email]
19
+ @code = hash[:code]
20
+ @expires_at = hash[:expires_at]
21
+ @created_at = hash[:created_at]
22
+ @updated_at = hash[:updated_at]
23
+ end
24
+
25
+ def to_json(*)
26
+ {
27
+ id: id,
28
+ user_id: user_id,
29
+ email: email,
30
+ code: code,
31
+ expires_at: expires_at,
32
+ created_at: created_at,
33
+ updated_at: updated_at,
34
+ }
35
+ end
36
+ end
37
+ end
data/lib/workos/mfa.rb CHANGED
@@ -8,7 +8,8 @@ module WorkOS
8
8
  # MFA platform. You'll need a valid API key
9
9
  module MFA
10
10
  class << self
11
- include Client
11
+ include Client, Deprecation
12
+
12
13
  def delete_factor(id:)
13
14
  response = execute_request(
14
15
  request: delete_request(
@@ -101,7 +102,7 @@ module WorkOS
101
102
  authentication_challenge_id: nil,
102
103
  code: nil
103
104
  )
104
- warn '[DEPRECATION] `verify_factor` is deprecated. Please use `verify_challenge` instead.'
105
+ warn_deprecation '`verify_factor` is deprecated. Please use `verify_challenge` instead.'
105
106
 
106
107
  verify_challenge(
107
108
  authentication_challenge_id: authentication_challenge_id,
@@ -7,6 +7,7 @@ module WorkOS
7
7
  module Organizations
8
8
  class << self
9
9
  include Client
10
+ include Deprecation
10
11
 
11
12
  # Retrieve a list of organizations that have connections configured
12
13
  # within your WorkOS dashboard.
@@ -70,16 +71,28 @@ module WorkOS
70
71
 
71
72
  # Create an organization
72
73
  #
73
- # @param [Array<String>] domains List of domains that belong to the
74
- # organization
74
+ # @param [Array<Hash>] domain_data List of domain hashes describing an orgnaization domain.
75
+ # @option domain_data [String] domain The domain that belongs to the organization.
76
+ # @option domain_data [String] state The state of the domain. "verified" or "pending"
77
+ # @param [Array<String>] domains List of domains that belong to the organization.
78
+ # Deprecated: Use domain_data instead.
75
79
  # @param [String] name A unique, descriptive name for the organization
76
80
  # @param [Boolean, nil] allow_profiles_outside_organization Whether Connections
77
81
  # within the Organization allow profiles that are outside of the Organization's configured User Email Domains.
78
82
  # @param [String] idempotency_key An idempotency key
79
- def create_organization(domains:, name:, allow_profiles_outside_organization: nil, idempotency_key: nil)
83
+ def create_organization(
84
+ domain_data: nil,
85
+ domains: nil,
86
+ name:,
87
+ allow_profiles_outside_organization: nil,
88
+ idempotency_key: nil
89
+ )
90
+ warn_deprecation '`domains` is deprecated. Use `domain_data` instead.' if domains
91
+
80
92
  request = post_request(
81
93
  auth: true,
82
94
  body: {
95
+ domain_data: domain_data,
83
96
  domains: domains,
84
97
  name: name,
85
98
  allow_profiles_outside_organization: allow_profiles_outside_organization,
@@ -97,12 +110,17 @@ module WorkOS
97
110
  # Update an organization
98
111
  #
99
112
  # @param [String] organization Organization unique identifier
100
- # @param [Array<String>] domains List of domains that belong to the
101
- # organization
113
+ # @param [Array<Hash>] domain_data List of domain hashes describing an orgnaization domain.
114
+ # @option domain_data [String] domain The domain that belongs to the organization.
115
+ # @option domain_data [String] state The state of the domain. "verified" or "pending"
116
+ # @param [Array<String>] domains List of domains that belong to the organization.
117
+ # Deprecated: Use domain_data instead.
102
118
  # @param [String] name A unique, descriptive name for the organization
103
119
  # @param [Boolean, nil] allow_profiles_outside_organization Whether Connections
104
120
  # within the Organization allow profiles that are outside of the Organization's configured User Email Domains.
105
121
  def update_organization(organization:, domains:, name:, allow_profiles_outside_organization: nil)
122
+ warn_deprecation '`domains` is deprecated. Use `domain_data` instead.' if domains
123
+
106
124
  request = put_request(
107
125
  auth: true,
108
126
  body: {
data/lib/workos/sso.rb CHANGED
@@ -11,7 +11,7 @@ module WorkOS
11
11
  # @see https://docs.workos.com/sso/overview
12
12
  module SSO
13
13
  class << self
14
- include Client
14
+ include Client, Deprecation
15
15
 
16
16
  PROVIDERS = WorkOS::Types::Provider::ALL
17
17
 
@@ -65,7 +65,7 @@ module WorkOS
65
65
  state: ''
66
66
  )
67
67
  if domain
68
- warn '[DEPRECATION] `domain` is deprecated.
68
+ warn_deprecation '[DEPRECATION] `domain` is deprecated.
69
69
  Please use `organization` instead.'
70
70
  end
71
71
 
@@ -31,7 +31,7 @@ module WorkOS
31
31
  end
32
32
 
33
33
  class << self
34
- include Client
34
+ include Client, Deprecation
35
35
 
36
36
  PROVIDERS = WorkOS::UserManagement::Types::Provider::ALL
37
37
  AUTH_FACTOR_TYPES = WorkOS::UserManagement::Types::AuthFactorType::ALL
@@ -537,12 +537,52 @@ module WorkOS
537
537
  ).to_s
538
538
  end
539
539
 
540
+ # Gets a Magic Auth object
541
+ #
542
+ # @param [String] id The unique ID of the MagicAuth object.
543
+ #
544
+ # @return WorkOS::MagicAuth
545
+ def get_magic_auth(id:)
546
+ response = execute_request(
547
+ request: get_request(
548
+ path: "/user_management/magic_auth/#{id}",
549
+ auth: true,
550
+ ),
551
+ )
552
+
553
+ WorkOS::MagicAuth.new(response.body)
554
+ end
555
+
556
+ # Creates a MagicAuth code
557
+ #
558
+ # @param [String] email The email address of the recipient.
559
+ # @param [String] invitation_token The token of an Invitation, if required.
560
+ #
561
+ # @return WorkOS::MagicAuth
562
+ def create_magic_auth(email:, invitation_token: nil)
563
+ response = execute_request(
564
+ request: post_request(
565
+ path: '/user_management/magic_auth',
566
+ body: {
567
+ email: email,
568
+ invitation_token: invitation_token,
569
+ },
570
+ auth: true,
571
+ ),
572
+ )
573
+
574
+ WorkOS::MagicAuth.new(response.body)
575
+ end
576
+
540
577
  # Create a one-time Magic Auth code and emails it to the user.
541
578
  #
542
579
  # @param [String] email The email address the one-time code will be sent to.
543
580
  #
544
581
  # @return Boolean
545
582
  def send_magic_auth_code(email:)
583
+ warn_deprecation '`send_magic_auth_code` is deprecated.
584
+ Please use `create_magic_auth` instead. This method will be removed in a future major version.'
585
+
546
586
  response = execute_request(
547
587
  request: post_request(
548
588
  path: '/user_management/magic_auth/send',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WorkOS
4
- VERSION = '4.3.0'
4
+ VERSION = '4.5.0'
5
5
  end
data/lib/workos.rb CHANGED
@@ -49,6 +49,7 @@ module WorkOS
49
49
  autoload :Client, 'workos/client'
50
50
  autoload :Connection, 'workos/connection'
51
51
  autoload :DeprecatedHashWrapper, 'workos/deprecated_hash_wrapper'
52
+ autoload :Deprecation, 'workos/deprecation'
52
53
  autoload :Directory, 'workos/directory'
53
54
  autoload :DirectoryGroup, 'workos/directory_group'
54
55
  autoload :DirectorySync, 'workos/directory_sync'
@@ -58,6 +59,7 @@ module WorkOS
58
59
  autoload :Factor, 'workos/factor'
59
60
  autoload :Impersonator, 'workos/impersonator'
60
61
  autoload :Invitation, 'workos/invitation'
62
+ autoload :MagicAuth, 'workos/magic_auth'
61
63
  autoload :MFA, 'workos/mfa'
62
64
  autoload :Organization, 'workos/organization'
63
65
  autoload :Organizations, 'workos/organizations'
@@ -130,14 +130,19 @@ describe WorkOS::MFA do
130
130
 
131
131
  describe '.verify_factor' do
132
132
  it 'throws a warning' do
133
- expect do
134
- VCR.use_cassette 'mfa/verify_challenge_generic_valid' do
135
- described_class.verify_factor(
136
- authentication_challenge_id: 'auth_challenge_01FZ4YVRBMXP5ZM0A7BP4AJ12J',
137
- code: '897792',
138
- )
139
- end
140
- end.to output("[DEPRECATION] `verify_factor` is deprecated. Please use `verify_challenge` instead.\n").to_stderr
133
+ VCR.use_cassette 'mfa/verify_challenge_generic_valid' do
134
+ allow(Warning).to receive(:warn)
135
+
136
+ described_class.verify_factor(
137
+ authentication_challenge_id: 'auth_challenge_01FZ4YVRBMXP5ZM0A7BP4AJ12J',
138
+ code: '897792',
139
+ )
140
+
141
+ expect(Warning).to have_received(:warn).with(
142
+ "[DEPRECATION] `verify_factor` is deprecated. Please use `verify_challenge` instead.\n",
143
+ any_args,
144
+ )
145
+ end
141
146
  end
142
147
 
143
148
  it 'calls verify_challenge' do
@@ -18,6 +18,59 @@ describe WorkOS::Organizations do
18
18
  expect(organization.domains.first[:domain]).to eq('example.io')
19
19
  end
20
20
  end
21
+
22
+ context 'without domains' do
23
+ it 'creates an organization' do
24
+ VCR.use_cassette 'organization/create_without_domains' do
25
+ organization = described_class.create_organization(
26
+ name: 'Test Organization',
27
+ )
28
+
29
+ expect(organization.id).to start_with('org_')
30
+ expect(organization.name).to eq('Test Organization')
31
+ expect(organization.domains).to be_empty
32
+ end
33
+ end
34
+ end
35
+
36
+ context 'with domains' do
37
+ it 'creates an organization and warns' do
38
+ VCR.use_cassette 'organization/create_with_domains' do
39
+ allow(Warning).to receive(:warn)
40
+
41
+ organization = described_class.create_organization(
42
+ domains: ['example.io'],
43
+ name: 'Test Organization',
44
+ )
45
+
46
+ expect(organization.id).to start_with('org_')
47
+ expect(organization.name).to eq('Test Organization')
48
+ expect(organization.domains.first[:domain]).to eq('example.io')
49
+
50
+ expect(Warning).to have_received(:warn).with(
51
+ "[DEPRECATION] `domains` is deprecated. Use `domain_data` instead.\n",
52
+ any_args,
53
+ )
54
+ end
55
+ end
56
+ end
57
+
58
+ context 'with domain_data' do
59
+ it 'creates an organization' do
60
+ VCR.use_cassette 'organization/create_with_domain_data' do
61
+ organization = described_class.create_organization(
62
+ domain_data: [{ domain: 'example.io', state: 'verified' }],
63
+ name: 'Test Organization',
64
+ )
65
+
66
+ expect(organization.id).to start_with('org_')
67
+ expect(organization.name).to eq('Test Organization')
68
+ expect(organization.domains.first).to include(
69
+ domain: 'example.io', state: 'verified',
70
+ )
71
+ end
72
+ end
73
+ end
21
74
  end
22
75
 
23
76
  context 'with idempotency key' do
@@ -618,6 +618,46 @@ describe WorkOS::UserManagement do
618
618
  end
619
619
  end
620
620
 
621
+ describe '.get_magic_auth' do
622
+ context 'with a valid id' do
623
+ it 'returns a magic_auth object' do
624
+ VCR.use_cassette 'user_management/get_magic_auth/valid' do
625
+ magic_auth = described_class.get_magic_auth(
626
+ id: 'magic_auth_01HWXVEWWSMR5HS8M6FBGMBJJ9',
627
+ )
628
+
629
+ expect(magic_auth.id.instance_of?(String))
630
+ expect(magic_auth.instance_of?(WorkOS::MagicAuth))
631
+ end
632
+ end
633
+ end
634
+
635
+ context 'with an invalid id' do
636
+ it 'raises an error' do
637
+ VCR.use_cassette('user_management/get_magic_auth/invalid') do
638
+ expect do
639
+ WorkOS::UserManagement.get_magic_auth(id: 'invalid')
640
+ end.to raise_error(WorkOS::APIError, /MagicAuth not found/)
641
+ end
642
+ end
643
+ end
644
+ end
645
+
646
+ describe '.create_magic_auth' do
647
+ context 'with valid payload' do
648
+ it 'creates a magic_auth' do
649
+ VCR.use_cassette 'user_management/create_magic_auth/valid' do
650
+ magic_auth = described_class.create_magic_auth(
651
+ email: 'test@workos.com',
652
+ )
653
+
654
+ expect(magic_auth.id).to eq('magic_auth_01HWXVEWWSMR5HS8M6FBGMBJJ9')
655
+ expect(magic_auth.email).to eq('test@workos.com')
656
+ end
657
+ end
658
+ end
659
+ end
660
+
621
661
  describe '.send_magic_auth_code' do
622
662
  context 'with valid parameters' do
623
663
  it 'sends a magic link to the email address' do
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.workos.com/organizations
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"domain_data":[{"domain":"example.io","state":"verified"}],"domains":null,"name":"Test
9
+ Organization","allow_profiles_outside_organization":null}'
10
+ headers:
11
+ Content-Type:
12
+ - application/json
13
+ Accept-Encoding:
14
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
15
+ Accept:
16
+ - "*/*"
17
+ User-Agent:
18
+ - WorkOS; ruby/3.1.4; arm64-darwin22; v4.3.0
19
+ Authorization:
20
+ - Bearer <API_KEY>
21
+ response:
22
+ status:
23
+ code: 201
24
+ message: Created
25
+ headers:
26
+ Date:
27
+ - Tue, 30 Apr 2024 01:01:42 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Content-Length:
31
+ - '378'
32
+ Connection:
33
+ - keep-alive
34
+ Cf-Ray:
35
+ - 87c39a22cb2a7c04-LAX
36
+ Cf-Cache-Status:
37
+ - DYNAMIC
38
+ Etag:
39
+ - W/"17a-e7OoplZHJrHgxom5pCSqqpDxJjs"
40
+ Strict-Transport-Security:
41
+ - max-age=15552000; includeSubDomains
42
+ Vary:
43
+ - Origin, Accept-Encoding
44
+ Access-Control-Allow-Credentials:
45
+ - 'true'
46
+ Content-Security-Policy:
47
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
48
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
49
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
50
+ Expect-Ct:
51
+ - max-age=0
52
+ Referrer-Policy:
53
+ - no-referrer
54
+ X-Content-Type-Options:
55
+ - nosniff
56
+ X-Dns-Prefetch-Control:
57
+ - 'off'
58
+ X-Download-Options:
59
+ - noopen
60
+ X-Frame-Options:
61
+ - SAMEORIGIN
62
+ X-Permitted-Cross-Domain-Policies:
63
+ - none
64
+ X-Request-Id:
65
+ - 314446f5-ae74-4a34-a75b-4a048e295e96
66
+ X-Xss-Protection:
67
+ - '0'
68
+ Set-Cookie:
69
+ - __cf_bm=JRrIwwneHyRFvW2HY7HQeYKUAcqrygAM1Wd8iPoHBk8-1714438902-1.0.1.1-NySWD9QTWwy29v8Z1.CIWx943aVg9v1Y0Pr2e63CRHVJ8StvW7QRbW0gMe04VkNyj17genn8g3s1kVcqd4oWwQ;
70
+ path=/; expires=Tue, 30-Apr-24 01:31:42 GMT; domain=.workos.com; HttpOnly;
71
+ Secure; SameSite=None
72
+ - __cfruid=b1ea2c30a368e0f51f64c01389ed23411ab148f1-1714438902; path=/; domain=.workos.com;
73
+ HttpOnly; Secure; SameSite=None
74
+ Server:
75
+ - cloudflare
76
+ body:
77
+ encoding: UTF-8
78
+ string: '{"object":"organization","id":"org_01HWP8B4G64K6MAHZKTMVZ5RGP","name":"Test
79
+ Organization","allow_profiles_outside_organization":false,"created_at":"2024-04-30T01:01:42.277Z","updated_at":"2024-04-30T01:01:42.277Z","domains":[{"verification_strategy":"manual","state":"verified","object":"organization_domain","id":"org_domain_01HWP8B4GWBH9APRM8KPBFCNHW","domain":"example.io"}]}'
80
+ http_version:
81
+ recorded_at: Tue, 30 Apr 2024 01:01:42 GMT
82
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.workos.com/organizations
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"domain_data":null,"domains":["example.io"],"name":"Test Organization","allow_profiles_outside_organization":null}'
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.1.4; arm64-darwin22; v4.3.0
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Date:
26
+ - Tue, 30 Apr 2024 01:06:58 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '352'
31
+ Connection:
32
+ - keep-alive
33
+ Cf-Ray:
34
+ - 87c3a1dc79f82f1c-LAX
35
+ Cf-Cache-Status:
36
+ - DYNAMIC
37
+ Etag:
38
+ - W/"160-DoBiYByX9XrgXYYHDZKVF2kbtrY"
39
+ Strict-Transport-Security:
40
+ - max-age=15552000; includeSubDomains
41
+ Vary:
42
+ - Origin, Accept-Encoding
43
+ Access-Control-Allow-Credentials:
44
+ - 'true'
45
+ Content-Security-Policy:
46
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
47
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
48
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
49
+ Expect-Ct:
50
+ - max-age=0
51
+ Referrer-Policy:
52
+ - no-referrer
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Dns-Prefetch-Control:
56
+ - 'off'
57
+ X-Download-Options:
58
+ - noopen
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ X-Permitted-Cross-Domain-Policies:
62
+ - none
63
+ X-Request-Id:
64
+ - c11d19bf-bd68-4d3e-ba59-9e2ec6f5e71f
65
+ X-Xss-Protection:
66
+ - '0'
67
+ Set-Cookie:
68
+ - __cf_bm=1Qt0kSHHEyud3lsP.gz06VPTCcv5J35Xq1b2FudzKFk-1714439218-1.0.1.1-Pb5WXPCKuJfKXO3ri73EA_RuzaBMD.6brPkMihsQQzaC6gPRJdGiB_g3OT3eoN6km3RwF72MqD_Jlf8xb.Nb2A;
69
+ path=/; expires=Tue, 30-Apr-24 01:36:58 GMT; domain=.workos.com; HttpOnly;
70
+ Secure; SameSite=None
71
+ - __cfruid=d4e3496284dd882965f61d10e392da91c73aa5c2-1714439218; path=/; domain=.workos.com;
72
+ HttpOnly; Secure; SameSite=None
73
+ Server:
74
+ - cloudflare
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"object":"organization","id":"org_01HWP8MSH28Z7SW2H6KK65S6VF","name":"Test
78
+ Organization","allow_profiles_outside_organization":false,"created_at":"2024-04-30T01:06:58.720Z","updated_at":"2024-04-30T01:06:58.720Z","domains":[{"state":"legacy_verified","object":"organization_domain","id":"org_domain_01HWP8MSHEX4KR7TJJFAFN9MK2","domain":"example.io"}]}'
79
+ http_version:
80
+ recorded_at: Tue, 30 Apr 2024 01:06:58 GMT
81
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,86 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.workos.com/organizations
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"domain_data":null,"domains":null,"name":"Test Organization","allow_profiles_outside_organization":null}'
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.1.4; arm64-darwin22; v4.3.0
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Date:
26
+ - Tue, 30 Apr 2024 00:58:00 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '227'
31
+ Connection:
32
+ - keep-alive
33
+ Cf-Ray:
34
+ - 87c394b48ef82f6f-LAX
35
+ Cf-Cache-Status:
36
+ - DYNAMIC
37
+ Etag:
38
+ - W/"e3-wm7ZLsZabhBpnQsj6nbIuYbCvJ4"
39
+ Strict-Transport-Security:
40
+ - max-age=15552000; includeSubDomains
41
+ Vary:
42
+ - Origin, Accept-Encoding
43
+ Access-Control-Allow-Credentials:
44
+ - 'true'
45
+ Content-Security-Policy:
46
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
47
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
48
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
49
+ Expect-Ct:
50
+ - max-age=0
51
+ Referrer-Policy:
52
+ - no-referrer
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Dns-Prefetch-Control:
56
+ - 'off'
57
+ X-Download-Options:
58
+ - noopen
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ X-Permitted-Cross-Domain-Policies:
62
+ - none
63
+ X-Request-Id:
64
+ - 42653293-fec5-40f5-8e3e-f74a3a63235f
65
+ X-Xss-Protection:
66
+ - '0'
67
+ Set-Cookie:
68
+ - __cf_bm=sr2v7XzZkDug4GaS8ZFVyNHQiFplJ1GRbehICEMbZEo-1714438680-1.0.1.1-jU4xGUlzCWlJcDjQ5PKN5v4BSetomhms7WYP1StgzZ.LO0oKDIOCW9R6CiS6BPfPB511ANRh9ricOnRoSM5x2A;
69
+ path=/; expires=Tue, 30-Apr-24 01:28:00 GMT; domain=.workos.com; HttpOnly;
70
+ Secure; SameSite=None
71
+ - __cfruid=2ff6acd824f790442a69e03d7abbce5aa0842988-1714438680; path=/; domain=.workos.com;
72
+ HttpOnly; Secure; SameSite=None
73
+ Report-To:
74
+ - '{"endpoints":[{"url":"https:\/\/csp-reporting.cloudflare.com\/cdn-cgi\/script_monitor\/report?m=MN1QYUE50Syo3whI3PgTAR0DEl89teeSttp_39ZoiJU-1714438680-1.0.1.1-7pyU.qZhlSTg4R9BBGC.xRSgae6EmLeyPE9ody07LpgLwMncwzQrnPFDhOwpi7MUiFfKAyRbUY80xGEvP_5Fzrw7a8AVy_K637dqtX8nmIuKEC.2VZJYNNRloqn4xCeFu8o6Q2luN6WANE.FKxrw0Q"}],"group":"cf-csp-endpoint","max_age":86400}'
75
+ Content-Security-Policy-Report-Only:
76
+ - script-src 'none'; connect-src 'none'; report-uri https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report?m=MN1QYUE50Syo3whI3PgTAR0DEl89teeSttp_39ZoiJU-1714438680-1.0.1.1-7pyU.qZhlSTg4R9BBGC.xRSgae6EmLeyPE9ody07LpgLwMncwzQrnPFDhOwpi7MUiFfKAyRbUY80xGEvP_5Fzrw7a8AVy_K637dqtX8nmIuKEC.2VZJYNNRloqn4xCeFu8o6Q2luN6WANE.FKxrw0Q;
77
+ report-to cf-csp-endpoint
78
+ Server:
79
+ - cloudflare
80
+ body:
81
+ encoding: UTF-8
82
+ string: '{"object":"organization","id":"org_01HWP84BDGAVGEEWB22A0CVV7G","name":"Test
83
+ Organization","allow_profiles_outside_organization":false,"created_at":"2024-04-30T00:57:59.983Z","updated_at":"2024-04-30T00:57:59.983Z","domains":[]}'
84
+ http_version:
85
+ recorded_at: Tue, 30 Apr 2024 00:58:00 GMT
86
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,80 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.workos.com/user_management/magic_auth
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"email":"test@workos.com","invitation_token":null}'
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; x86_64-darwin19; v4.4.0
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Date:
26
+ - Thu, 02 May 2024 23:50:29 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '274'
31
+ Connection:
32
+ - keep-alive
33
+ Cf-Ray:
34
+ - 87dbe9f0989051df-DEN
35
+ Cf-Cache-Status:
36
+ - DYNAMIC
37
+ Etag:
38
+ - W/"112-XzVK2s+8XVoqs9cCTPJC7VyC3IQ"
39
+ Strict-Transport-Security:
40
+ - max-age=15552000; includeSubDomains
41
+ Vary:
42
+ - Origin, Accept-Encoding
43
+ Access-Control-Allow-Credentials:
44
+ - 'true'
45
+ Content-Security-Policy:
46
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
47
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
48
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
49
+ Expect-Ct:
50
+ - max-age=0
51
+ Referrer-Policy:
52
+ - no-referrer
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Dns-Prefetch-Control:
56
+ - 'off'
57
+ X-Download-Options:
58
+ - noopen
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ X-Permitted-Cross-Domain-Policies:
62
+ - none
63
+ X-Request-Id:
64
+ - 0ffddb81-5eac-4de6-b5a9-e93fade6db93
65
+ X-Xss-Protection:
66
+ - '0'
67
+ Set-Cookie:
68
+ - __cf_bm=Vlzipf6hw8yFfYVC2LuTclSbuxE96I2boK9h6dPBL8Q-1714693829-1.0.1.1-r0i0ukq1UXcWzb3__XYkiwuWdnr5jKhXUTYKG_qhrrhgDNzb7o7cUugM4YPS1YWV5RS1xdvDBXigLY0AV66mAg;
69
+ path=/; expires=Fri, 03-May-24 00:20:29 GMT; domain=.workos.com; HttpOnly;
70
+ Secure; SameSite=None
71
+ - __cfruid=94afbb49471958910ded5cab91db63de8d3d47e6-1714693829; path=/; domain=.workos.com;
72
+ HttpOnly; Secure; SameSite=None
73
+ Server:
74
+ - cloudflare
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"object":"magic_auth","id":"magic_auth_01HWXVEWWSMR5HS8M6FBGMBJJ9","user_id":"user_01HWXVEWSWSJ66VE29AD14KZ0C","email":"test@workos.com","code":"500013","expires_at":"2024-05-03T00:00:29.528Z","created_at":"2024-05-02T23:50:29.479Z","updated_at":"2024-05-02T23:50:29.479Z"}'
78
+ http_version:
79
+ recorded_at: Thu, 02 May 2024 23:50:29 GMT
80
+ recorded_with: VCR 5.0.0
@@ -76,7 +76,7 @@ http_interactions:
76
76
  - cloudflare
77
77
  body:
78
78
  encoding: ASCII-8BIT
79
- string: '{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
79
+ string: '{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
80
80
  http_version:
81
81
  recorded_at: Mon, 14 Aug 2023 21:42:04 GMT
82
82
  recorded_with: VCR 5.0.0
@@ -0,0 +1,80 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.workos.com/user_management/magic_auth/invalid
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.2; x86_64-darwin19; v4.4.0
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ Date:
26
+ - Thu, 02 May 2024 23:53:49 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Cf-Ray:
34
+ - 87dbeed57a5a7c25-DEN
35
+ Cf-Cache-Status:
36
+ - DYNAMIC
37
+ Etag:
38
+ - W/"8a-boo9lPL4s/fqPxV0Hun3Ue0NFew"
39
+ Strict-Transport-Security:
40
+ - max-age=15552000; includeSubDomains
41
+ Vary:
42
+ - Origin, Accept-Encoding
43
+ Access-Control-Allow-Credentials:
44
+ - 'true'
45
+ Content-Security-Policy:
46
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
47
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
48
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
49
+ Expect-Ct:
50
+ - max-age=0
51
+ Referrer-Policy:
52
+ - no-referrer
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Dns-Prefetch-Control:
56
+ - 'off'
57
+ X-Download-Options:
58
+ - noopen
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ X-Permitted-Cross-Domain-Policies:
62
+ - none
63
+ X-Request-Id:
64
+ - 12cb618c-5540-43f8-8178-49a7be2248f9
65
+ X-Xss-Protection:
66
+ - '0'
67
+ Set-Cookie:
68
+ - __cf_bm=X3.gnPiStpnIVzd_Qb5C1PUDQzD32Tj0PQ8CEME.KTQ-1714694029-1.0.1.1-WDZ9aX_PJfAtBDTUj9ukw8GtaRhOVXH0vH6tThVOZNhRk34Dpc_gqE1yEDegGQYHmlt.iXgul.WNXBE0ARpf_g;
69
+ path=/; expires=Fri, 03-May-24 00:23:49 GMT; domain=.workos.com; HttpOnly;
70
+ Secure; SameSite=None
71
+ - __cfruid=39f5b22af74b005f407c542836af9e55e6d29816-1714694029; path=/; domain=.workos.com;
72
+ HttpOnly; Secure; SameSite=None
73
+ Server:
74
+ - cloudflare
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: '{"message":"MagicAuth not found: ''magic_auth_invalid''.","code":"entity_not_found","entity_id":"magic_auth_invalid"}'
78
+ http_version:
79
+ recorded_at: Thu, 02 May 2024 23:53:49 GMT
80
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,80 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.workos.com/user_management/magic_auth/magic_auth_01HWXVEWWSMR5HS8M6FBGMBJJ9
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.2; x86_64-darwin19; v4.4.0
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 02 May 2024 23:53:49 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Cf-Ray:
34
+ - 87dbeed47df151f4-DEN
35
+ Cf-Cache-Status:
36
+ - DYNAMIC
37
+ Etag:
38
+ - W/"112-XzVK2s+8XVoqs9cCTPJC7VyC3IQ"
39
+ Strict-Transport-Security:
40
+ - max-age=15552000; includeSubDomains
41
+ Vary:
42
+ - Origin, Accept-Encoding
43
+ Access-Control-Allow-Credentials:
44
+ - 'true'
45
+ Content-Security-Policy:
46
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
47
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
48
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
49
+ Expect-Ct:
50
+ - max-age=0
51
+ Referrer-Policy:
52
+ - no-referrer
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Dns-Prefetch-Control:
56
+ - 'off'
57
+ X-Download-Options:
58
+ - noopen
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ X-Permitted-Cross-Domain-Policies:
62
+ - none
63
+ X-Request-Id:
64
+ - 6f38d8ca-904f-4940-9730-4d99e2d20496
65
+ X-Xss-Protection:
66
+ - '0'
67
+ Set-Cookie:
68
+ - __cf_bm=bIa76a4FQCxR5oYEFQNr.0UhmZVnvLLanztY9NFBwU4-1714694029-1.0.1.1-DzZkmhziT4tSpAsSZeVbyo63E5nFiiF8FTiZzuaERD.QiWNXfAP5zI9KlghVfgv0FzogjoFzubEGmY_S1Xu.zg;
69
+ path=/; expires=Fri, 03-May-24 00:23:49 GMT; domain=.workos.com; HttpOnly;
70
+ Secure; SameSite=None
71
+ - __cfruid=39f5b22af74b005f407c542836af9e55e6d29816-1714694029; path=/; domain=.workos.com;
72
+ HttpOnly; Secure; SameSite=None
73
+ Server:
74
+ - cloudflare
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: '{"object":"magic_auth","id":"magic_auth_01HWXVEWWSMR5HS8M6FBGMBJJ9","user_id":"user_01HWXVEWSWSJ66VE29AD14KZ0C","email":"test@workos.com","code":"500013","expires_at":"2024-05-03T00:00:29.528Z","created_at":"2024-05-02T23:50:29.479Z","updated_at":"2024-05-02T23:50:29.479Z"}'
78
+ http_version:
79
+ recorded_at: Thu, 02 May 2024 23:53:49 GMT
80
+ recorded_with: VCR 5.0.0
@@ -77,7 +77,7 @@ http_interactions:
77
77
  ma=86400
78
78
  body:
79
79
  encoding: ASCII-8BIT
80
- string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test2@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
80
+ string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test2@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
81
81
  http_version:
82
82
  recorded_at: Mon, 09 Aug 2021 22:01:16 GMT
83
83
  recorded_with: VCR 5.0.0
@@ -77,7 +77,7 @@ http_interactions:
77
77
  ma=86400
78
78
  body:
79
79
  encoding: ASCII-8BIT
80
- string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test3@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
80
+ string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test3@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
81
81
  http_version:
82
82
  recorded_at: Mon, 09 Aug 2021 22:01:16 GMT
83
83
  recorded_with: VCR 5.0.0
@@ -77,7 +77,7 @@ http_interactions:
77
77
  ma=86400
78
78
  body:
79
79
  encoding: ASCII-8BIT
80
- string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test2@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
80
+ string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test2@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
81
81
  http_version:
82
82
  recorded_at: Mon, 09 Aug 2021 22:01:15 GMT
83
83
  recorded_with: VCR 5.0.0
@@ -77,7 +77,7 @@ http_interactions:
77
77
  ma=86400
78
78
  body:
79
79
  encoding: ASCII-8BIT
80
- string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_02H5JQDV7R7ATEYZDEG0W5PRYS","email":"john@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_02H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_03H5JQDV7R7ATEYZDEG0W5PRYS","email":"jane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_03H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_04H5JQDV7R7ATEYZDEG0W5PRYS","email":"emma@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_04H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_05H5JQDV7R7ATEYZDEG0W5PRYS","email":"alex@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_05H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":"before_id","after":null}}'
80
+ string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_02H5JQDV7R7ATEYZDEG0W5PRYS","email":"john@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_02H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_03H5JQDV7R7ATEYZDEG0W5PRYS","email":"jane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_03H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_04H5JQDV7R7ATEYZDEG0W5PRYS","email":"emma@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_04H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"},{"object":"invitation","id":"invitation_05H5JQDV7R7ATEYZDEG0W5PRYS","email":"alex@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_05H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":"before_id","after":null}}'
81
81
  http_version:
82
82
  recorded_at: Mon, 09 Aug 2021 22:01:14 GMT
83
83
  recorded_with: VCR 5.0.0
@@ -77,7 +77,7 @@ http_interactions:
77
77
  ma=86400
78
78
  body:
79
79
  encoding: ASCII-8BIT
80
- string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
80
+ string: '{"object":"list","data":[{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"dane@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
81
81
  http_version:
82
82
  recorded_at: Mon, 09 Aug 2021 22:01:15 GMT
83
83
  recorded_with: VCR 5.0.0
@@ -76,7 +76,7 @@ http_interactions:
76
76
  - cloudflare
77
77
  body:
78
78
  encoding: UTF-8
79
- string: '{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
79
+ string: '{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
80
80
  http_version:
81
81
  recorded_at: Thu, 31 Aug 2023 16:41:46 GMT
82
82
  recorded_with: VCR 5.0.0
@@ -76,7 +76,7 @@ http_interactions:
76
76
  - cloudflare
77
77
  body:
78
78
  encoding: UTF-8
79
- string: '{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
79
+ string: '{"object":"invitation","id":"invitation_01H5JQDV7R7ATEYZDEG0W5PRYS","email":"test@workos.com","state":"pending","accepted_at":"2023-07-18T02:07:19.911Z","revoked_at":"2023-07-18T02:07:19.911Z","expires_at":"2023-07-18T02:07:19.911Z","organization_id":"org_01H5JQDV7R7ATEYZDEG0W5PRYS","token":"Z1uX3RbwcIl5fIGJJJCXXisdI","accept_invitation_url":"https://myauthkit.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI","created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
80
80
  http_version:
81
81
  recorded_at: Tue, 22 Aug 2023 15:17:54 GMT
82
82
  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: 4.3.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - WorkOS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-29 00:00:00.000000000 Z
11
+ date: 2024-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,6 +113,7 @@ files:
113
113
  - lib/workos/configuration.rb
114
114
  - lib/workos/connection.rb
115
115
  - lib/workos/deprecated_hash_wrapper.rb
116
+ - lib/workos/deprecation.rb
116
117
  - lib/workos/directory.rb
117
118
  - lib/workos/directory_group.rb
118
119
  - lib/workos/directory_sync.rb
@@ -124,6 +125,7 @@ files:
124
125
  - lib/workos/hash_provider.rb
125
126
  - lib/workos/impersonator.rb
126
127
  - lib/workos/invitation.rb
128
+ - lib/workos/magic_auth.rb
127
129
  - lib/workos/mfa.rb
128
130
  - lib/workos/organization.rb
129
131
  - lib/workos/organization_membership.rb
@@ -218,9 +220,12 @@ files:
218
220
  - spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid_is_false.yml
219
221
  - spec/support/fixtures/vcr_cassettes/organization/create.yml
220
222
  - spec/support/fixtures/vcr_cassettes/organization/create_invalid.yml
223
+ - spec/support/fixtures/vcr_cassettes/organization/create_with_domain_data.yml
224
+ - spec/support/fixtures/vcr_cassettes/organization/create_with_domains.yml
221
225
  - spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_different_payload.yml
222
226
  - spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_payload.yml
223
227
  - spec/support/fixtures/vcr_cassettes/organization/create_with_idempotency_key.yml
228
+ - spec/support/fixtures/vcr_cassettes/organization/create_without_domains.yml
224
229
  - spec/support/fixtures/vcr_cassettes/organization/delete.yml
225
230
  - spec/support/fixtures/vcr_cassettes/organization/delete_invalid.yml
226
231
  - spec/support/fixtures/vcr_cassettes/organization/get.yml
@@ -264,6 +269,7 @@ files:
264
269
  - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml
265
270
  - spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml
266
271
  - spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml
272
+ - spec/support/fixtures/vcr_cassettes/user_management/create_magic_auth/valid.yml
267
273
  - spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml
268
274
  - spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
269
275
  - spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml
@@ -276,6 +282,8 @@ files:
276
282
  - spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml
277
283
  - spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml
278
284
  - spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml
285
+ - spec/support/fixtures/vcr_cassettes/user_management/get_magic_auth/invalid.yml
286
+ - spec/support/fixtures/vcr_cassettes/user_management/get_magic_auth/valid.yml
279
287
  - spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml
280
288
  - spec/support/fixtures/vcr_cassettes/user_management/get_user.yml
281
289
  - spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml
@@ -310,7 +318,7 @@ files:
310
318
  - spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml
311
319
  - spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml
312
320
  - spec/support/profile.txt
313
- - spec/support/shared_examples/client_spec.rb
321
+ - spec/support/shared_examples/client.rb
314
322
  - spec/support/webhook_payload.txt
315
323
  - workos.gemspec
316
324
  homepage: https://github.com/workos-inc/workos-ruby
@@ -409,9 +417,12 @@ test_files:
409
417
  - spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid_is_false.yml
410
418
  - spec/support/fixtures/vcr_cassettes/organization/create.yml
411
419
  - spec/support/fixtures/vcr_cassettes/organization/create_invalid.yml
420
+ - spec/support/fixtures/vcr_cassettes/organization/create_with_domain_data.yml
421
+ - spec/support/fixtures/vcr_cassettes/organization/create_with_domains.yml
412
422
  - spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_different_payload.yml
413
423
  - spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_payload.yml
414
424
  - spec/support/fixtures/vcr_cassettes/organization/create_with_idempotency_key.yml
425
+ - spec/support/fixtures/vcr_cassettes/organization/create_without_domains.yml
415
426
  - spec/support/fixtures/vcr_cassettes/organization/delete.yml
416
427
  - spec/support/fixtures/vcr_cassettes/organization/delete_invalid.yml
417
428
  - spec/support/fixtures/vcr_cassettes/organization/get.yml
@@ -455,6 +466,7 @@ test_files:
455
466
  - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml
456
467
  - spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml
457
468
  - spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml
469
+ - spec/support/fixtures/vcr_cassettes/user_management/create_magic_auth/valid.yml
458
470
  - spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml
459
471
  - spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
460
472
  - spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml
@@ -467,6 +479,8 @@ test_files:
467
479
  - spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml
468
480
  - spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml
469
481
  - spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml
482
+ - spec/support/fixtures/vcr_cassettes/user_management/get_magic_auth/invalid.yml
483
+ - spec/support/fixtures/vcr_cassettes/user_management/get_magic_auth/valid.yml
470
484
  - spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml
471
485
  - spec/support/fixtures/vcr_cassettes/user_management/get_user.yml
472
486
  - spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml
@@ -501,5 +515,5 @@ test_files:
501
515
  - spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml
502
516
  - spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml
503
517
  - spec/support/profile.txt
504
- - spec/support/shared_examples/client_spec.rb
518
+ - spec/support/shared_examples/client.rb
505
519
  - spec/support/webhook_payload.txt