stytch 10.0.0 → 10.1.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_passwords.rb +11 -1
- data/lib/stytch/magic_links.rb +3 -1
- data/lib/stytch/oauth.rb +3 -1
- 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: c25e41fc8e89bbfc215bc34ebbe55772e6b8a35585ce72afbe695a91c5e70969
|
4
|
+
data.tar.gz: 0abbfa10aa079d4f8a99b8442b86fc692eb3271735ff92bc8cb04b451a0b5775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c04551fa945fffc85a49c7b8ad79f59030fa7be7282c051cdbe251229b9dc4551e594851be31e2a00716d4b6a61e527a08a96aa3daa19ac344f0c7b9046d77a
|
7
|
+
data.tar.gz: 271e1cc3e1c7bc25f845a652df131108649b84e056c3100d8d8cbea957c5653ae928573d4f90c787513062429b2d3aa462fa95f41b4eed3ed220f8d1ed726871
|
data/lib/stytch/b2b_passwords.rb
CHANGED
@@ -146,6 +146,12 @@ module StytchB2B
|
|
146
146
|
# by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
|
147
147
|
# authentication factors with the affected SSO connection IDs will be revoked.
|
148
148
|
# The type of this field is nilable +Boolean+.
|
149
|
+
# mfa_phone_number::
|
150
|
+
# (no documentation yet)
|
151
|
+
# The type of this field is nilable +String+.
|
152
|
+
# set_phone_number_verified::
|
153
|
+
# (no documentation yet)
|
154
|
+
# The type of this field is nilable +Boolean+.
|
149
155
|
#
|
150
156
|
# == Returns:
|
151
157
|
# An object with the following fields:
|
@@ -181,7 +187,9 @@ module StytchB2B
|
|
181
187
|
trusted_metadata: nil,
|
182
188
|
untrusted_metadata: nil,
|
183
189
|
roles: nil,
|
184
|
-
preserve_existing_sessions: nil
|
190
|
+
preserve_existing_sessions: nil,
|
191
|
+
mfa_phone_number: nil,
|
192
|
+
set_phone_number_verified: nil
|
185
193
|
)
|
186
194
|
headers = {}
|
187
195
|
request = {
|
@@ -200,6 +208,8 @@ module StytchB2B
|
|
200
208
|
request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
|
201
209
|
request[:roles] = roles unless roles.nil?
|
202
210
|
request[:preserve_existing_sessions] = preserve_existing_sessions unless preserve_existing_sessions.nil?
|
211
|
+
request[:mfa_phone_number] = mfa_phone_number unless mfa_phone_number.nil?
|
212
|
+
request[:set_phone_number_verified] = set_phone_number_verified unless set_phone_number_verified.nil?
|
203
213
|
|
204
214
|
post_request('/v1/b2b/passwords/migrate', request, headers)
|
205
215
|
end
|
data/lib/stytch/magic_links.rb
CHANGED
@@ -118,11 +118,13 @@ module Stytch
|
|
118
118
|
post_request('/v1/magic_links/authenticate', request, headers)
|
119
119
|
end
|
120
120
|
|
121
|
-
# Create an
|
121
|
+
# Create an Embeddable Magic Link token for a User. Access to this endpoint is restricted. To enable it, please send us a note at support@stytch.com.
|
122
122
|
#
|
123
123
|
# ### Next steps
|
124
124
|
# Send the returned `token` value to the end user in a link which directs to your application. When the end user follows your link, collect the token, and call [Authenticate Magic Link](https://stytch.com/docs/api/authenticate-magic-link) to complete authentication.
|
125
125
|
#
|
126
|
+
# **Note:** Authenticating an Embeddable Magic Link token will **not** result in any of the Stytch User's factors (email address or phone number) being marked as verified, as Stytch cannot confirm where the user received the token.
|
127
|
+
#
|
126
128
|
# == Parameters:
|
127
129
|
# user_id::
|
128
130
|
# The unique ID of a specific User.
|
data/lib/stytch/oauth.rb
CHANGED
@@ -20,7 +20,9 @@ module Stytch
|
|
20
20
|
#
|
21
21
|
# Exactly one of `user_id`, `session_token`, or `session_jwt` must be provided to identify the target Stytch User.
|
22
22
|
#
|
23
|
-
# This is an optional step in the OAuth flow. Stytch can often determine whether to
|
23
|
+
# **Note**: This is an optional step in the OAuth flow. Stytch can often determine whether to associate a new OAuth login with an existing User based on verified information (such as an email address) from the identity provider. This endpoint is useful for cases where we can't, such as missing or unverified provider information.
|
24
|
+
#
|
25
|
+
# See our [OAuth email address behavior](https://stytch.com/docs/guides/oauth/email-behavior) resource for additional information.
|
24
26
|
#
|
25
27
|
# == Parameters:
|
26
28
|
# provider::
|
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.1.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-01-
|
11
|
+
date: 2025-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|