stytch 10.21.0 → 10.22.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 +35 -1
- data/lib/stytch/b2b_organizations.rb +1 -1
- data/lib/stytch/b2b_passwords.rb +9 -4
- 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: 79f83098068aa5afdbecff54fe59173d6e1c4e0e9660204d4dbd045cbfcc1561
|
4
|
+
data.tar.gz: 14d9b1a5fd3dafb1e2d26b8d26cf9e06d27e1fa9c0eb7082d4c240cb87fbdf29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdf4c8bfea414eeb01e5aecfdbfb4ecaadaf31d9b079021557eb2e722facd43b07bf405b4d9518f0f114f6cdf0b09871092fa6c56077a3790f4c525ca9d9f6b6
|
7
|
+
data.tar.gz: '0990e814940119ed3eedc3d6f3bf90ec407de943633ab635ec6064e4cfede76bc35b9342b3fdee24497d56d2bf7b81b23e851ded86dea3cc9775af31f112ef5e'
|
data/lib/stytch/b2b_discovery.rb
CHANGED
@@ -279,6 +279,32 @@ module StytchB2B
|
|
279
279
|
# allowed_oauth_tenants::
|
280
280
|
# 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", "hubspot", and "github".
|
281
281
|
# The type of this field is nilable +object+.
|
282
|
+
# first_party_connected_apps_allowed_type::
|
283
|
+
# The authentication setting that sets the Organization's policy towards first party Connected Apps. The accepted values are:
|
284
|
+
#
|
285
|
+
# `ALL_ALLOWED` – any first party Connected App in the Project is permitted for use by Members.
|
286
|
+
#
|
287
|
+
# `RESTRICTED` – only first party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
|
288
|
+
#
|
289
|
+
# `NOT_ALLOWED` – no first party Connected Apps are permitted.
|
290
|
+
#
|
291
|
+
# The type of this field is nilable +CreateRequestFirstPartyConnectedAppsAllowedType+ (string enum).
|
292
|
+
# allowed_first_party_connected_apps::
|
293
|
+
# An array of first party Connected App IDs that are allowed for the Organization. Only used when the Organization's `first_party_connected_apps_allowed_type` is `RESTRICTED`.
|
294
|
+
# The type of this field is nilable list of +String+.
|
295
|
+
# third_party_connected_apps_allowed_type::
|
296
|
+
# The authentication setting that sets the Organization's policy towards third party Connected Apps. The accepted values are:
|
297
|
+
#
|
298
|
+
# `ALL_ALLOWED` – any third party Connected App in the Project is permitted for use by Members.
|
299
|
+
#
|
300
|
+
# `RESTRICTED` – only third party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
|
301
|
+
#
|
302
|
+
# `NOT_ALLOWED` – no third party Connected Apps are permitted.
|
303
|
+
#
|
304
|
+
# The type of this field is nilable +CreateRequestThirdPartyConnectedAppsAllowedType+ (string enum).
|
305
|
+
# allowed_third_party_connected_apps::
|
306
|
+
# An array of third party Connected App IDs that are allowed for the Organization. Only used when the Organization's `third_party_connected_apps_allowed_type` is `RESTRICTED`.
|
307
|
+
# The type of this field is nilable list of +String+.
|
282
308
|
#
|
283
309
|
# == Returns:
|
284
310
|
# An object with the following fields:
|
@@ -337,7 +363,11 @@ module StytchB2B
|
|
337
363
|
mfa_methods: nil,
|
338
364
|
allowed_mfa_methods: nil,
|
339
365
|
oauth_tenant_jit_provisioning: nil,
|
340
|
-
allowed_oauth_tenants: nil
|
366
|
+
allowed_oauth_tenants: nil,
|
367
|
+
first_party_connected_apps_allowed_type: nil,
|
368
|
+
allowed_first_party_connected_apps: nil,
|
369
|
+
third_party_connected_apps_allowed_type: nil,
|
370
|
+
allowed_third_party_connected_apps: nil
|
341
371
|
)
|
342
372
|
headers = {}
|
343
373
|
request = {
|
@@ -361,6 +391,10 @@ module StytchB2B
|
|
361
391
|
request[:allowed_mfa_methods] = allowed_mfa_methods unless allowed_mfa_methods.nil?
|
362
392
|
request[:oauth_tenant_jit_provisioning] = oauth_tenant_jit_provisioning unless oauth_tenant_jit_provisioning.nil?
|
363
393
|
request[:allowed_oauth_tenants] = allowed_oauth_tenants unless allowed_oauth_tenants.nil?
|
394
|
+
request[:first_party_connected_apps_allowed_type] = first_party_connected_apps_allowed_type unless first_party_connected_apps_allowed_type.nil?
|
395
|
+
request[:allowed_first_party_connected_apps] = allowed_first_party_connected_apps unless allowed_first_party_connected_apps.nil?
|
396
|
+
request[:third_party_connected_apps_allowed_type] = third_party_connected_apps_allowed_type unless third_party_connected_apps_allowed_type.nil?
|
397
|
+
request[:allowed_third_party_connected_apps] = allowed_third_party_connected_apps unless allowed_third_party_connected_apps.nil?
|
364
398
|
|
365
399
|
post_request('/v1/b2b/discovery/organizations/create', request, headers)
|
366
400
|
end
|
@@ -1543,7 +1543,7 @@ module StytchB2B
|
|
1543
1543
|
# Identifies the Member as a break glass user - someone who has permissions to authenticate into an Organization by bypassing the Organization's settings. A break glass account is typically used for emergency purposes to gain access outside of normal authentication procedures. Refer to the [Organization object](organization-object) and its `auth_methods` and `allowed_auth_methods` fields for more details.
|
1544
1544
|
# The type of this field is nilable +Boolean+.
|
1545
1545
|
# mfa_phone_number::
|
1546
|
-
# The Member's phone number. A Member may only have one phone number.
|
1546
|
+
# The Member's phone number. A Member may only have one phone number. The phone number should be in E.164 format (i.e. +1XXXXXXXXXX).
|
1547
1547
|
# The type of this field is nilable +String+.
|
1548
1548
|
# mfa_enrolled::
|
1549
1549
|
# Sets whether the Member is enrolled in MFA. If true, the Member must complete an MFA step whenever they wish to log in to their Organization. If false, the Member only needs to complete an MFA step if the Organization's MFA policy is set to `REQUIRED_FOR_ALL`.
|
data/lib/stytch/b2b_passwords.rb
CHANGED
@@ -88,9 +88,13 @@ module StytchB2B
|
|
88
88
|
post_request('/v1/b2b/passwords/strength_check', request, headers)
|
89
89
|
end
|
90
90
|
|
91
|
-
# Adds an existing password to a
|
91
|
+
# Adds an existing password to a Member's email that doesn't have a password yet.
|
92
92
|
#
|
93
|
-
#
|
93
|
+
# We support migrating members from passwords stored with bcrypt, scrypt, argon2, MD-5, SHA-1, and PBKDF2. This endpoint has a rate limit of 100 requests per second.
|
94
|
+
#
|
95
|
+
# The Member's email will be marked as verified when you use this endpoint.
|
96
|
+
#
|
97
|
+
# If you are using **cross-organization passwords**, i.e. allowing an end user to share the same password across all of their Organizations, call this method separately for each `organization_id` associated with the given `email_address` to ensure the password is set across all of their Organizations.
|
94
98
|
#
|
95
99
|
# == Parameters:
|
96
100
|
# email_address::
|
@@ -147,10 +151,11 @@ module StytchB2B
|
|
147
151
|
# authentication factors with the affected SSO connection IDs will be revoked.
|
148
152
|
# The type of this field is nilable +Boolean+.
|
149
153
|
# mfa_phone_number::
|
150
|
-
# (
|
154
|
+
# The Member's phone number. A Member may only have one phone number. The phone number should be in E.164 format (i.e. +1XXXXXXXXXX).
|
151
155
|
# The type of this field is nilable +String+.
|
152
156
|
# set_phone_number_verified::
|
153
|
-
#
|
157
|
+
# Whether to set the user's phone number as verified. This is a dangerous field. This flag should only be set if you can attest that
|
158
|
+
# the user owns the phone number in question.
|
154
159
|
# The type of this field is nilable +Boolean+.
|
155
160
|
# external_id::
|
156
161
|
# If a new member is created, this will set an identifier that can be used in API calls wherever a member_id is expected. This is a string consisting of alphanumeric, `.`, `_`, `-`, or `|` characters with a maximum length of 128 characters. External IDs must be unique within an organization, but may be reused across different organizations in the same project. Note that if a member already exists, this field will be ignored.
|
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: 10.
|
4
|
+
version: 10.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|