stytch 9.4.0 → 9.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.
- checksums.yaml +4 -4
- data/lib/stytch/b2b_discovery.rb +16 -1
- data/lib/stytch/b2b_organizations.rb +35 -1
- data/lib/stytch/b2b_scim.rb +2 -2
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df153778bac5f00a6388121f7a71b60099fd5c2c6c3c1fbd547454ca569afda3
|
4
|
+
data.tar.gz: 225ed1bc1c7887a2fd4859d0df99c1de2b598e563c0f44888fbdf25e73e37e3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50bb2c8ea28cbb275435f5c6f56e67d8cdec4edea9b3b6d9b23c3a2d57611d8fbccfddda9b33af2e8787988930d8e357ba0edef81f40023b6ac47610802a9523
|
7
|
+
data.tar.gz: 734cc8a61f6ee0fc5bd1b455aef026550ea1fac9fe2a7e11bf70fecf3a669013e083ee0413428fa8c4f1b6016edfe2cfe0dab4e73fc60aeded366e9f54923a85
|
data/lib/stytch/b2b_discovery.rb
CHANGED
@@ -263,6 +263,17 @@ module StytchB2B
|
|
263
263
|
# The list's accepted values are: `sms_otp` and `totp`.
|
264
264
|
#
|
265
265
|
# The type of this field is nilable list of +String+.
|
266
|
+
# oauth_tenant_jit_provisioning::
|
267
|
+
# The authentication setting that controls how a new Member can JIT provision into an organization by tenant. The accepted values are:
|
268
|
+
#
|
269
|
+
# `RESTRICTED` – only new Members with tenants in `allowed_oauth_tenants` can JIT provision via tenant.
|
270
|
+
#
|
271
|
+
# `NOT_ALLOWED` – disable JIT provisioning by OAuth Tenant.
|
272
|
+
#
|
273
|
+
# The type of this field is nilable +String+.
|
274
|
+
# allowed_oauth_tenants::
|
275
|
+
# A map of allowed OAuth tenants. If this field is not passed in, the Organization will not allow JIT provisioning by OAuth Tenant. Allowed keys are "slack" and "hubspot".
|
276
|
+
# The type of this field is nilable +object+.
|
266
277
|
#
|
267
278
|
# == Returns:
|
268
279
|
# An object with the following fields:
|
@@ -319,7 +330,9 @@ module StytchB2B
|
|
319
330
|
mfa_policy: nil,
|
320
331
|
rbac_email_implicit_role_assignments: nil,
|
321
332
|
mfa_methods: nil,
|
322
|
-
allowed_mfa_methods: nil
|
333
|
+
allowed_mfa_methods: nil,
|
334
|
+
oauth_tenant_jit_provisioning: nil,
|
335
|
+
allowed_oauth_tenants: nil
|
323
336
|
)
|
324
337
|
headers = {}
|
325
338
|
request = {
|
@@ -341,6 +354,8 @@ module StytchB2B
|
|
341
354
|
request[:rbac_email_implicit_role_assignments] = rbac_email_implicit_role_assignments unless rbac_email_implicit_role_assignments.nil?
|
342
355
|
request[:mfa_methods] = mfa_methods unless mfa_methods.nil?
|
343
356
|
request[:allowed_mfa_methods] = allowed_mfa_methods unless allowed_mfa_methods.nil?
|
357
|
+
request[:oauth_tenant_jit_provisioning] = oauth_tenant_jit_provisioning unless oauth_tenant_jit_provisioning.nil?
|
358
|
+
request[:allowed_oauth_tenants] = allowed_oauth_tenants unless allowed_oauth_tenants.nil?
|
344
359
|
|
345
360
|
post_request('/v1/b2b/discovery/organizations/create', request, headers)
|
346
361
|
end
|
@@ -150,6 +150,17 @@ module StytchB2B
|
|
150
150
|
# The list's accepted values are: `sms_otp` and `totp`.
|
151
151
|
#
|
152
152
|
# The type of this field is nilable list of +String+.
|
153
|
+
# oauth_tenant_jit_provisioning::
|
154
|
+
# The authentication setting that controls how a new Member can JIT provision into an organization by tenant. The accepted values are:
|
155
|
+
#
|
156
|
+
# `RESTRICTED` – only new Members with tenants in `allowed_oauth_tenants` can JIT provision via tenant.
|
157
|
+
#
|
158
|
+
# `NOT_ALLOWED` – disable JIT provisioning by OAuth Tenant.
|
159
|
+
#
|
160
|
+
# The type of this field is nilable +String+.
|
161
|
+
# allowed_oauth_tenants::
|
162
|
+
# A map of allowed OAuth tenants. If this field is not passed in, the Organization will not allow JIT provisioning by OAuth Tenant. Allowed keys are "slack" and "hubspot".
|
163
|
+
# The type of this field is nilable +object+.
|
153
164
|
#
|
154
165
|
# == Returns:
|
155
166
|
# An object with the following fields:
|
@@ -176,7 +187,9 @@ module StytchB2B
|
|
176
187
|
mfa_policy: nil,
|
177
188
|
rbac_email_implicit_role_assignments: nil,
|
178
189
|
mfa_methods: nil,
|
179
|
-
allowed_mfa_methods: nil
|
190
|
+
allowed_mfa_methods: nil,
|
191
|
+
oauth_tenant_jit_provisioning: nil,
|
192
|
+
allowed_oauth_tenants: nil
|
180
193
|
)
|
181
194
|
headers = {}
|
182
195
|
request = {
|
@@ -195,6 +208,8 @@ module StytchB2B
|
|
195
208
|
request[:rbac_email_implicit_role_assignments] = rbac_email_implicit_role_assignments unless rbac_email_implicit_role_assignments.nil?
|
196
209
|
request[:mfa_methods] = mfa_methods unless mfa_methods.nil?
|
197
210
|
request[:allowed_mfa_methods] = allowed_mfa_methods unless allowed_mfa_methods.nil?
|
211
|
+
request[:oauth_tenant_jit_provisioning] = oauth_tenant_jit_provisioning unless oauth_tenant_jit_provisioning.nil?
|
212
|
+
request[:allowed_oauth_tenants] = allowed_oauth_tenants unless allowed_oauth_tenants.nil?
|
198
213
|
|
199
214
|
post_request('/v1/b2b/organizations', request, headers)
|
200
215
|
end
|
@@ -359,6 +374,21 @@ module StytchB2B
|
|
359
374
|
#
|
360
375
|
# If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.allowed-mfa-methods` action on the `stytch.organization` Resource.
|
361
376
|
# The type of this field is nilable list of +String+.
|
377
|
+
# oauth_tenant_jit_provisioning::
|
378
|
+
# The authentication setting that controls how a new Member can JIT provision into an organization by tenant. The accepted values are:
|
379
|
+
#
|
380
|
+
# `RESTRICTED` – only new Members with tenants in `allowed_oauth_tenants` can JIT provision via tenant.
|
381
|
+
#
|
382
|
+
# `NOT_ALLOWED` – disable JIT provisioning by OAuth Tenant.
|
383
|
+
#
|
384
|
+
#
|
385
|
+
# If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.oauth-tenant-jit-provisioning` action on the `stytch.organization` Resource.
|
386
|
+
# The type of this field is nilable +String+.
|
387
|
+
# allowed_oauth_tenants::
|
388
|
+
# A map of allowed OAuth tenants. If this field is not passed in, the Organization will not allow JIT provisioning by OAuth Tenant. Allowed keys are "slack" and "hubspot".
|
389
|
+
#
|
390
|
+
# If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.allowed-oauth-tenants` action on the `stytch.organization` Resource.
|
391
|
+
# The type of this field is nilable +object+.
|
362
392
|
#
|
363
393
|
# == Returns:
|
364
394
|
# An object with the following fields:
|
@@ -392,6 +422,8 @@ module StytchB2B
|
|
392
422
|
rbac_email_implicit_role_assignments: nil,
|
393
423
|
mfa_methods: nil,
|
394
424
|
allowed_mfa_methods: nil,
|
425
|
+
oauth_tenant_jit_provisioning: nil,
|
426
|
+
allowed_oauth_tenants: nil,
|
395
427
|
method_options: nil
|
396
428
|
)
|
397
429
|
headers = {}
|
@@ -413,6 +445,8 @@ module StytchB2B
|
|
413
445
|
request[:rbac_email_implicit_role_assignments] = rbac_email_implicit_role_assignments unless rbac_email_implicit_role_assignments.nil?
|
414
446
|
request[:mfa_methods] = mfa_methods unless mfa_methods.nil?
|
415
447
|
request[:allowed_mfa_methods] = allowed_mfa_methods unless allowed_mfa_methods.nil?
|
448
|
+
request[:oauth_tenant_jit_provisioning] = oauth_tenant_jit_provisioning unless oauth_tenant_jit_provisioning.nil?
|
449
|
+
request[:allowed_oauth_tenants] = allowed_oauth_tenants unless allowed_oauth_tenants.nil?
|
416
450
|
|
417
451
|
put_request("/v1/b2b/organizations/#{organization_id}", request, headers)
|
418
452
|
end
|
data/lib/stytch/b2b_scim.rb
CHANGED
@@ -194,7 +194,7 @@ module StytchB2B
|
|
194
194
|
# (no documentation yet)
|
195
195
|
# The type of this field is nilable +UpdateRequestIdentityProvider+ (string enum).
|
196
196
|
# scim_group_implicit_role_assignments::
|
197
|
-
# An array of SCIM group implicit role assignments. Each object in the array must contain a `
|
197
|
+
# An array of SCIM group implicit role assignments. Each object in the array must contain a `group_id` and a `role_id`.
|
198
198
|
# The type of this field is nilable list of +SCIMGroupImplicitRoleAssignments+.
|
199
199
|
#
|
200
200
|
# == Returns:
|
@@ -460,7 +460,7 @@ module StytchB2B
|
|
460
460
|
post_request("/v1/b2b/scim/#{organization_id}/connection", request, headers)
|
461
461
|
end
|
462
462
|
|
463
|
-
# Get SCIM
|
463
|
+
# Get SCIM Connection.
|
464
464
|
#
|
465
465
|
# == Parameters:
|
466
466
|
# organization_id::
|
data/lib/stytch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stytch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|