stytch 7.1.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stytch/b2b_discovery.rb +3 -3
- data/lib/stytch/b2b_organizations.rb +8 -8
- data/lib/stytch/b2b_rbac.rb +3 -4
- data/lib/stytch/passwords.rb +7 -0
- 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: 7146e140429bd2244d6cb3fc47a94e545487c92f8a4e7b18216d23c59f47ad25
|
4
|
+
data.tar.gz: 548974370b5bcd86c1c54959f5447829742c2547491ab646cf108d769030f745
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de8b7d887ea706d38a81e15288fe87532c0f37df8021f2e36f547438547625a39aeedaea5d6757d7217da68732a71ad70f654f3e906a11b034d74411e3e5f9c
|
7
|
+
data.tar.gz: ff1ee0fee78c564b78cadddce1b4fddb3f8e06356e649db35e411db81ac6f7fad00b3177017950a8f0ef1dceff330ae1c91bb0b91838c5e477fc075bbf4183d0
|
data/lib/stytch/b2b_discovery.rb
CHANGED
@@ -257,15 +257,15 @@ module StytchB2B
|
|
257
257
|
# for more information about role assignment.
|
258
258
|
# The type of this field is nilable list of +EmailImplicitRoleAssignment+ (+object+).
|
259
259
|
# mfa_methods::
|
260
|
-
# The setting that controls which
|
260
|
+
# The setting that controls which MFA methods can be used by Members of an Organization. The accepted values are:
|
261
261
|
#
|
262
262
|
# `ALL_ALLOWED` – the default setting which allows all authentication methods to be used.
|
263
263
|
#
|
264
|
-
# `RESTRICTED` – only methods that comply with `
|
264
|
+
# `RESTRICTED` – only methods that comply with `allowed_mfa_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
|
265
265
|
#
|
266
266
|
# The type of this field is nilable +String+.
|
267
267
|
# allowed_mfa_methods::
|
268
|
-
# An array of allowed
|
268
|
+
# An array of allowed MFA authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
|
269
269
|
# The list's accepted values are: `sms_otp` and `totp`.
|
270
270
|
#
|
271
271
|
# The type of this field is nilable list of +String+.
|
@@ -138,15 +138,15 @@ module StytchB2B
|
|
138
138
|
# for more information about role assignment.
|
139
139
|
# The type of this field is nilable list of +EmailImplicitRoleAssignment+ (+object+).
|
140
140
|
# mfa_methods::
|
141
|
-
# The setting that controls which
|
141
|
+
# The setting that controls which MFA methods can be used by Members of an Organization. The accepted values are:
|
142
142
|
#
|
143
143
|
# `ALL_ALLOWED` – the default setting which allows all authentication methods to be used.
|
144
144
|
#
|
145
|
-
# `RESTRICTED` – only methods that comply with `
|
145
|
+
# `RESTRICTED` – only methods that comply with `allowed_mfa_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
|
146
146
|
#
|
147
147
|
# The type of this field is nilable +String+.
|
148
148
|
# allowed_mfa_methods::
|
149
|
-
# An array of allowed
|
149
|
+
# An array of allowed MFA authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
|
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+.
|
@@ -355,17 +355,17 @@ module StytchB2B
|
|
355
355
|
# 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.implicit-roles` action on the `stytch.organization` Resource.
|
356
356
|
# The type of this field is nilable list of +String+.
|
357
357
|
# mfa_methods::
|
358
|
-
# The setting that controls which
|
358
|
+
# The setting that controls which MFA methods can be used by Members of an Organization. The accepted values are:
|
359
359
|
#
|
360
360
|
# `ALL_ALLOWED` – the default setting which allows all authentication methods to be used.
|
361
361
|
#
|
362
|
-
# `RESTRICTED` – only methods that comply with `
|
362
|
+
# `RESTRICTED` – only methods that comply with `allowed_mfa_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
|
363
363
|
#
|
364
364
|
#
|
365
|
-
# 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-
|
365
|
+
# 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.
|
366
366
|
# The type of this field is nilable +String+.
|
367
367
|
# allowed_mfa_methods::
|
368
|
-
# An array of allowed
|
368
|
+
# An array of allowed MFA authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
|
369
369
|
# The list's accepted values are: `sms_otp` and `totp`.
|
370
370
|
#
|
371
371
|
#
|
@@ -550,7 +550,7 @@ module StytchB2B
|
|
550
550
|
# is_breakglass::
|
551
551
|
# 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.
|
552
552
|
#
|
553
|
-
# If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.
|
553
|
+
# 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.is-breakglass` action on the `stytch.member` Resource.
|
554
554
|
# The type of this field is nilable +Boolean+.
|
555
555
|
# mfa_phone_number::
|
556
556
|
# Sets the Member's phone number. Throws an error if the Member already has a phone number. To change the Member's phone number, use the [Delete member phone number endpoint](https://stytch.com/docs/b2b/api/delete-member-mfa-phone-number) to delete the Member's existing phone number first.
|
data/lib/stytch/b2b_rbac.rb
CHANGED
@@ -18,10 +18,9 @@ module StytchB2B
|
|
18
18
|
|
19
19
|
# Get the active RBAC Policy for your current Stytch Project. An RBAC Policy is the canonical document that stores all defined Resources and Roles within your RBAC permissioning model.
|
20
20
|
#
|
21
|
-
# When using the backend SDKs, the RBAC Policy will
|
22
|
-
#
|
23
|
-
# Resources and Roles can be created and managed within the [Dashboard](/dashboard). Additionally, [Role assignment](https://stytch.com/docs/b2b/guides/rbac/role-assignment) can be programmatically managed through certain Stytch API endpoints.
|
21
|
+
# When using the backend SDKs, the RBAC Policy will be cached to allow for local evaluations, eliminating the need for an extra request to Stytch. The policy will be refreshed if an authorization check is requested and the RBAC policy was last updated more than 5 minutes ago.
|
24
22
|
#
|
23
|
+
# Resources and Roles can be created and managed within the [Dashboard](/dashboard/rbac). Additionally, [Role assignment](https://stytch.com/docs/b2b/guides/rbac/role-assignment) can be programmatically managed through certain Stytch API endpoints.
|
25
24
|
#
|
26
25
|
# Check out the [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview) to learn more about Stytch's RBAC permissioning model.
|
27
26
|
#
|
@@ -36,7 +35,7 @@ module StytchB2B
|
|
36
35
|
# The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
|
37
36
|
# The type of this field is +Integer+.
|
38
37
|
# policy::
|
39
|
-
# The RBAC Policy document that contains all defined Roles and Resources – which are managed in the [Dashboard](/dashboard). Read more about these entities and how they work in our [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview).
|
38
|
+
# The RBAC Policy document that contains all defined Roles and Resources – which are managed in the [Dashboard](/dashboard/rbac). Read more about these entities and how they work in our [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview).
|
40
39
|
# The type of this field is nilable +Policy+ (+object+).
|
41
40
|
def policy
|
42
41
|
headers = {}
|
data/lib/stytch/passwords.rb
CHANGED
@@ -292,6 +292,11 @@ module Stytch
|
|
292
292
|
# untrusted_metadata::
|
293
293
|
# The `untrusted_metadata` field contains an arbitrary JSON object of application-specific data. Untrusted metadata can be edited by end users directly via the SDK, and **cannot be used to store critical information.** See the [Metadata](https://stytch.com/docs/api/metadata) reference for complete field behavior details.
|
294
294
|
# The type of this field is nilable +object+.
|
295
|
+
# set_email_verified::
|
296
|
+
# Whether to set the user's email as verified. This is a dangerous field. Incorrect use may lead to users getting erroneously
|
297
|
+
# deduplicated into one user object. This flag should only be set if you can attest that the user owns the email address in question.
|
298
|
+
# Access to this field is restricted. To enable it, please send us a note at support@stytch.com.
|
299
|
+
# The type of this field is nilable +Boolean+.
|
295
300
|
# name::
|
296
301
|
# The name of the user. Each field in the name object is optional.
|
297
302
|
# The type of this field is nilable +Name+ (+object+).
|
@@ -327,6 +332,7 @@ module Stytch
|
|
327
332
|
pbkdf_2_config: nil,
|
328
333
|
trusted_metadata: nil,
|
329
334
|
untrusted_metadata: nil,
|
335
|
+
set_email_verified: nil,
|
330
336
|
name: nil
|
331
337
|
)
|
332
338
|
headers = {}
|
@@ -342,6 +348,7 @@ module Stytch
|
|
342
348
|
request[:pbkdf_2_config] = pbkdf_2_config unless pbkdf_2_config.nil?
|
343
349
|
request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
|
344
350
|
request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
|
351
|
+
request[:set_email_verified] = set_email_verified unless set_email_verified.nil?
|
345
352
|
request[:name] = name unless name.nil?
|
346
353
|
|
347
354
|
post_request('/v1/passwords/migrate', request, headers)
|
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: 7.
|
4
|
+
version: 7.2.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-01
|
11
|
+
date: 2024-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|