stytch 10.26.0 → 10.28.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 +19 -3
- data/lib/stytch/b2b_magic_links.rb +12 -4
- data/lib/stytch/b2b_oauth.rb +10 -2
- data/lib/stytch/b2b_organizations.rb +41 -25
- data/lib/stytch/b2b_otp.rb +23 -7
- data/lib/stytch/b2b_passwords.rb +43 -11
- data/lib/stytch/b2b_recovery_codes.rb +12 -4
- data/lib/stytch/b2b_scim.rb +8 -8
- data/lib/stytch/b2b_sessions.rb +30 -6
- data/lib/stytch/b2b_sso.rb +19 -11
- data/lib/stytch/b2b_totps.rb +12 -4
- data/lib/stytch/crypto_wallets.rb +9 -1
- data/lib/stytch/magic_links.rb +9 -1
- data/lib/stytch/oauth.rb +9 -1
- data/lib/stytch/otps.rb +9 -1
- data/lib/stytch/passwords.rb +48 -8
- data/lib/stytch/sessions.rb +27 -3
- data/lib/stytch/totps.rb +18 -2
- data/lib/stytch/users.rb +3 -0
- data/lib/stytch/version.rb +1 -1
- data/lib/stytch/webauthn.rb +18 -2
- 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: 84042207ac59233533cc823e147225b53dfb242577ada92f7c371d91f0067346
|
4
|
+
data.tar.gz: 43abe43af046750571190adbb0aba08f2126c5781812385c7bf4cb88ee41871c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 579d066dd8ebbda2724b7ff7824cd92686bdfecdabf10df8cf562f29a6025f24e814a746832838868c173800aac0399fac882cb52a5e281d5e776b99f4057796
|
7
|
+
data.tar.gz: 6dc2c0f7ae5a048d4bba0bebcf7a002f94afc7dee8d82f844147313920212814256b9aa1ad21d4cf6dbcd6396215e5213285494475e31b17aa4f47e01e75be65
|
data/lib/stytch/b2b_discovery.rb
CHANGED
@@ -48,7 +48,7 @@ module StytchB2B
|
|
48
48
|
# The Intermediate Session Token. This token does not necessarily belong to a specific instance of a Member, but represents a bag of factors that may be converted to a member session. The token can be used with the [OTP SMS Authenticate endpoint](https://stytch.com/docs/b2b/api/authenticate-otp-sms), [TOTP Authenticate endpoint](https://stytch.com/docs/b2b/api/authenticate-totp), or [Recovery Codes Recover endpoint](https://stytch.com/docs/b2b/api/recovery-codes-recover) to complete an MFA flow and log in to the Organization. The token has a default expiry of 10 minutes. It can also be used with the [Exchange Intermediate Session endpoint](https://stytch.com/docs/b2b/api/exchange-intermediate-session) to join a specific Organization that allows the factors represented by the intermediate session token; or the [Create Organization via Discovery endpoint](https://stytch.com/docs/b2b/api/create-organization-via-discovery) to create a new Organization and Member. Intermediate Session Tokens have a default expiry of 10 minutes.
|
49
49
|
# The type of this field is +String+.
|
50
50
|
# organization_id::
|
51
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
51
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
52
52
|
# The type of this field is +String+.
|
53
53
|
# session_duration_minutes::
|
54
54
|
# Set the session lifetime to be this many minutes from now. This will start a new session if one doesn't already exist,
|
@@ -78,6 +78,9 @@ module StytchB2B
|
|
78
78
|
# Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
|
79
79
|
#
|
80
80
|
# The type of this field is nilable +ExchangeRequestLocale+ (string enum).
|
81
|
+
# telemetry_id::
|
82
|
+
# If the `telemetry_id` is passed, as part of this request, Stytch will call the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) and store the associated fingerprints and IPGEO information for the Member. Your workspace must be enabled for Device Fingerprinting to use this feature.
|
83
|
+
# The type of this field is nilable +String+.
|
81
84
|
#
|
82
85
|
# == Returns:
|
83
86
|
# An object with the following fields:
|
@@ -117,12 +120,16 @@ module StytchB2B
|
|
117
120
|
# primary_required::
|
118
121
|
# Information about the primary authentication requirements of the Organization.
|
119
122
|
# The type of this field is nilable +PrimaryRequired+ (+object+).
|
123
|
+
# member_device::
|
124
|
+
# If a valid `telemetry_id` was passed in the request and the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device` response field will contain information about the member's device attributes.
|
125
|
+
# The type of this field is nilable +DeviceInfo+ (+object+).
|
120
126
|
def exchange(
|
121
127
|
intermediate_session_token:,
|
122
128
|
organization_id:,
|
123
129
|
session_duration_minutes: nil,
|
124
130
|
session_custom_claims: nil,
|
125
|
-
locale: nil
|
131
|
+
locale: nil,
|
132
|
+
telemetry_id: nil
|
126
133
|
)
|
127
134
|
headers = {}
|
128
135
|
request = {
|
@@ -132,6 +139,7 @@ module StytchB2B
|
|
132
139
|
request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
|
133
140
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
134
141
|
request[:locale] = locale unless locale.nil?
|
142
|
+
request[:telemetry_id] = telemetry_id unless telemetry_id.nil?
|
135
143
|
|
136
144
|
post_request('/v1/b2b/discovery/intermediate_sessions/exchange', request, headers)
|
137
145
|
end
|
@@ -305,6 +313,9 @@ module StytchB2B
|
|
305
313
|
# allowed_third_party_connected_apps::
|
306
314
|
# 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
315
|
# The type of this field is nilable list of +String+.
|
316
|
+
# telemetry_id::
|
317
|
+
# If the `telemetry_id` is passed, as part of this request, Stytch will call the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) and store the associated fingerprints and IPGEO information for the Member. Your workspace must be enabled for Device Fingerprinting to use this feature.
|
318
|
+
# The type of this field is nilable +String+.
|
308
319
|
#
|
309
320
|
# == Returns:
|
310
321
|
# An object with the following fields:
|
@@ -344,6 +355,9 @@ module StytchB2B
|
|
344
355
|
# primary_required::
|
345
356
|
# Information about the primary authentication requirements of the Organization.
|
346
357
|
# The type of this field is nilable +PrimaryRequired+ (+object+).
|
358
|
+
# member_device::
|
359
|
+
# If a valid `telemetry_id` was passed in the request and the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device` response field will contain information about the member's device attributes.
|
360
|
+
# The type of this field is nilable +DeviceInfo+ (+object+).
|
347
361
|
def create(
|
348
362
|
intermediate_session_token:,
|
349
363
|
session_duration_minutes: nil,
|
@@ -367,7 +381,8 @@ module StytchB2B
|
|
367
381
|
first_party_connected_apps_allowed_type: nil,
|
368
382
|
allowed_first_party_connected_apps: nil,
|
369
383
|
third_party_connected_apps_allowed_type: nil,
|
370
|
-
allowed_third_party_connected_apps: nil
|
384
|
+
allowed_third_party_connected_apps: nil,
|
385
|
+
telemetry_id: nil
|
371
386
|
)
|
372
387
|
headers = {}
|
373
388
|
request = {
|
@@ -395,6 +410,7 @@ module StytchB2B
|
|
395
410
|
request[:allowed_first_party_connected_apps] = allowed_first_party_connected_apps unless allowed_first_party_connected_apps.nil?
|
396
411
|
request[:third_party_connected_apps_allowed_type] = third_party_connected_apps_allowed_type unless third_party_connected_apps_allowed_type.nil?
|
397
412
|
request[:allowed_third_party_connected_apps] = allowed_third_party_connected_apps unless allowed_third_party_connected_apps.nil?
|
413
|
+
request[:telemetry_id] = telemetry_id unless telemetry_id.nil?
|
398
414
|
|
399
415
|
post_request('/v1/b2b/discovery/organizations/create', request, headers)
|
400
416
|
end
|
@@ -20,7 +20,7 @@ module StytchB2B
|
|
20
20
|
@discovery = StytchB2B::MagicLinks::Discovery.new(@connection)
|
21
21
|
end
|
22
22
|
|
23
|
-
# Authenticate a Member with a Magic Link. This endpoint requires a Magic Link token that is not expired or previously used. If the Member
|
23
|
+
# Authenticate a Member with a Magic Link. This endpoint requires a Magic Link token that is not expired or previously used. If the Member's status is `pending` or `invited`, they will be updated to `active`.
|
24
24
|
# Provide the `session_duration_minutes` parameter to set the lifetime of the session. If the `session_duration_minutes` parameter is not specified, a Stytch session will be created with a 60 minute duration.
|
25
25
|
#
|
26
26
|
# If the Member is required to complete MFA to log in to the Organization, the returned value of `member_authenticated` will be `false`, and an `intermediate_session_token` will be returned.
|
@@ -79,6 +79,9 @@ module StytchB2B
|
|
79
79
|
# intermediate_session_token::
|
80
80
|
# Adds this primary authentication factor to the intermediate session token. If the resulting set of factors satisfies the organization's primary authentication requirements and MFA requirements, the intermediate session token will be consumed and converted to a member session. If not, the same intermediate session token will be returned.
|
81
81
|
# The type of this field is nilable +String+.
|
82
|
+
# telemetry_id::
|
83
|
+
# If the `telemetry_id` is passed, as part of this request, Stytch will call the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) and store the associated fingerprints and IPGEO information for the Member. Your workspace must be enabled for Device Fingerprinting to use this feature.
|
84
|
+
# The type of this field is nilable +String+.
|
82
85
|
#
|
83
86
|
# == Returns:
|
84
87
|
# An object with the following fields:
|
@@ -127,6 +130,9 @@ module StytchB2B
|
|
127
130
|
# primary_required::
|
128
131
|
# (no documentation yet)
|
129
132
|
# The type of this field is nilable +PrimaryRequired+ (+object+).
|
133
|
+
# member_device::
|
134
|
+
# If a valid `telemetry_id` was passed in the request and the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device` response field will contain information about the member's device attributes.
|
135
|
+
# The type of this field is nilable +DeviceInfo+ (+object+).
|
130
136
|
def authenticate(
|
131
137
|
magic_links_token:,
|
132
138
|
pkce_code_verifier: nil,
|
@@ -135,7 +141,8 @@ module StytchB2B
|
|
135
141
|
session_duration_minutes: nil,
|
136
142
|
session_custom_claims: nil,
|
137
143
|
locale: nil,
|
138
|
-
intermediate_session_token: nil
|
144
|
+
intermediate_session_token: nil,
|
145
|
+
telemetry_id: nil
|
139
146
|
)
|
140
147
|
headers = {}
|
141
148
|
request = {
|
@@ -148,6 +155,7 @@ module StytchB2B
|
|
148
155
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
149
156
|
request[:locale] = locale unless locale.nil?
|
150
157
|
request[:intermediate_session_token] = intermediate_session_token unless intermediate_session_token.nil?
|
158
|
+
request[:telemetry_id] = telemetry_id unless telemetry_id.nil?
|
151
159
|
|
152
160
|
post_request('/v1/b2b/magic_links/authenticate', request, headers)
|
153
161
|
end
|
@@ -187,7 +195,7 @@ module StytchB2B
|
|
187
195
|
#
|
188
196
|
# == Parameters:
|
189
197
|
# organization_id::
|
190
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
198
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
191
199
|
# The type of this field is +String+.
|
192
200
|
# email_address::
|
193
201
|
# The email address of the Member.
|
@@ -287,7 +295,7 @@ module StytchB2B
|
|
287
295
|
#
|
288
296
|
# == Parameters:
|
289
297
|
# organization_id::
|
290
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
298
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
291
299
|
# The type of this field is +String+.
|
292
300
|
# email_address::
|
293
301
|
# The email address of the Member.
|
data/lib/stytch/b2b_oauth.rb
CHANGED
@@ -31,7 +31,7 @@ module StytchB2B
|
|
31
31
|
# If the Member is logging in via an OAuth provider that does not fully verify the email, the returned value of `member_authenticated` will be `false`, and an `intermediate_session_token` will be returned.
|
32
32
|
# The `primary_required` field details the authentication flow the Member must perform in order to [complete a step-up authentication](https://stytch.com/docs/b2b/guides/oauth/auth-flows) into the organization. The `intermediate_session_token` must be passed into that authentication flow.
|
33
33
|
#
|
34
|
-
# We
|
34
|
+
# We're actively accepting requests for new OAuth providers! Please [email us](mailto:support@stytch.com) or [post in our community](https://stytch.com/docs/b2b/resources) if you are looking for an OAuth provider that is not currently supported.
|
35
35
|
#
|
36
36
|
# == Parameters:
|
37
37
|
# oauth_token::
|
@@ -77,6 +77,9 @@ module StytchB2B
|
|
77
77
|
# intermediate_session_token::
|
78
78
|
# Adds this primary authentication factor to the intermediate session token. If the resulting set of factors satisfies the organization's primary authentication requirements and MFA requirements, the intermediate session token will be consumed and converted to a member session. If not, the same intermediate session token will be returned.
|
79
79
|
# The type of this field is nilable +String+.
|
80
|
+
# telemetry_id::
|
81
|
+
# If the `telemetry_id` is passed, as part of this request, Stytch will call the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) and store the associated fingerprints and IPGEO information for the Member. Your workspace must be enabled for Device Fingerprinting to use this feature.
|
82
|
+
# The type of this field is nilable +String+.
|
80
83
|
#
|
81
84
|
# == Returns:
|
82
85
|
# An object with the following fields:
|
@@ -133,6 +136,9 @@ module StytchB2B
|
|
133
136
|
# primary_required::
|
134
137
|
# Information about the primary authentication requirements of the Organization.
|
135
138
|
# The type of this field is nilable +PrimaryRequired+ (+object+).
|
139
|
+
# member_device::
|
140
|
+
# If a valid `telemetry_id` was passed in the request and the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device` response field will contain information about the member's device attributes.
|
141
|
+
# The type of this field is nilable +DeviceInfo+ (+object+).
|
136
142
|
def authenticate(
|
137
143
|
oauth_token:,
|
138
144
|
session_token: nil,
|
@@ -141,7 +147,8 @@ module StytchB2B
|
|
141
147
|
session_custom_claims: nil,
|
142
148
|
pkce_code_verifier: nil,
|
143
149
|
locale: nil,
|
144
|
-
intermediate_session_token: nil
|
150
|
+
intermediate_session_token: nil,
|
151
|
+
telemetry_id: nil
|
145
152
|
)
|
146
153
|
headers = {}
|
147
154
|
request = {
|
@@ -154,6 +161,7 @@ module StytchB2B
|
|
154
161
|
request[:pkce_code_verifier] = pkce_code_verifier unless pkce_code_verifier.nil?
|
155
162
|
request[:locale] = locale unless locale.nil?
|
156
163
|
request[:intermediate_session_token] = intermediate_session_token unless intermediate_session_token.nil?
|
164
|
+
request[:telemetry_id] = telemetry_id unless telemetry_id.nil?
|
157
165
|
|
158
166
|
post_request('/v1/b2b/oauth/authenticate', request, headers)
|
159
167
|
end
|
@@ -114,6 +114,9 @@ module StytchB2B
|
|
114
114
|
# trusted_metadata::
|
115
115
|
# An arbitrary JSON object for storing application-specific data or identity-provider-specific data.
|
116
116
|
# The type of this field is nilable +object+.
|
117
|
+
# organization_external_id::
|
118
|
+
# An identifier that can be used in API calls wherever a organization_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 a project, but may be reused across different projects in the same workspace.
|
119
|
+
# The type of this field is nilable +String+.
|
117
120
|
# sso_jit_provisioning::
|
118
121
|
# The authentication setting that controls the JIT provisioning of Members when authenticating via SSO. The accepted values are:
|
119
122
|
#
|
@@ -245,6 +248,7 @@ module StytchB2B
|
|
245
248
|
organization_slug: nil,
|
246
249
|
organization_logo_url: nil,
|
247
250
|
trusted_metadata: nil,
|
251
|
+
organization_external_id: nil,
|
248
252
|
sso_jit_provisioning: nil,
|
249
253
|
email_allowed_domains: nil,
|
250
254
|
email_jit_provisioning: nil,
|
@@ -270,6 +274,7 @@ module StytchB2B
|
|
270
274
|
request[:organization_slug] = organization_slug unless organization_slug.nil?
|
271
275
|
request[:organization_logo_url] = organization_logo_url unless organization_logo_url.nil?
|
272
276
|
request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
|
277
|
+
request[:organization_external_id] = organization_external_id unless organization_external_id.nil?
|
273
278
|
request[:sso_jit_provisioning] = sso_jit_provisioning unless sso_jit_provisioning.nil?
|
274
279
|
request[:email_allowed_domains] = email_allowed_domains unless email_allowed_domains.nil?
|
275
280
|
request[:email_jit_provisioning] = email_jit_provisioning unless email_jit_provisioning.nil?
|
@@ -295,7 +300,7 @@ module StytchB2B
|
|
295
300
|
#
|
296
301
|
# == Parameters:
|
297
302
|
# organization_id::
|
298
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
303
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
299
304
|
# The type of this field is +String+.
|
300
305
|
#
|
301
306
|
# == Returns:
|
@@ -324,7 +329,7 @@ module StytchB2B
|
|
324
329
|
#
|
325
330
|
# == Parameters:
|
326
331
|
# organization_id::
|
327
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
332
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
328
333
|
# The type of this field is +String+.
|
329
334
|
# organization_name::
|
330
335
|
# The name of the Organization. Must be between 1 and 128 characters in length.
|
@@ -346,6 +351,9 @@ module StytchB2B
|
|
346
351
|
# If a session header is passed into the request, this field may **not** be passed into the request. You cannot
|
347
352
|
# update trusted metadata when acting as a Member.
|
348
353
|
# The type of this field is nilable +object+.
|
354
|
+
# organization_external_id::
|
355
|
+
# An identifier that can be used in API calls wherever a organization_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 a project, but may be reused across different projects in the same workspace.
|
356
|
+
# The type of this field is nilable +String+.
|
349
357
|
# sso_default_connection_id::
|
350
358
|
# The default connection used for SSO when there are multiple active connections.
|
351
359
|
#
|
@@ -516,6 +524,7 @@ module StytchB2B
|
|
516
524
|
organization_slug: nil,
|
517
525
|
organization_logo_url: nil,
|
518
526
|
trusted_metadata: nil,
|
527
|
+
organization_external_id: nil,
|
519
528
|
sso_default_connection_id: nil,
|
520
529
|
sso_jit_provisioning: nil,
|
521
530
|
sso_jit_provisioning_allowed_connections: nil,
|
@@ -544,6 +553,7 @@ module StytchB2B
|
|
544
553
|
request[:organization_slug] = organization_slug unless organization_slug.nil?
|
545
554
|
request[:organization_logo_url] = organization_logo_url unless organization_logo_url.nil?
|
546
555
|
request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
|
556
|
+
request[:organization_external_id] = organization_external_id unless organization_external_id.nil?
|
547
557
|
request[:sso_default_connection_id] = sso_default_connection_id unless sso_default_connection_id.nil?
|
548
558
|
request[:sso_jit_provisioning] = sso_jit_provisioning unless sso_jit_provisioning.nil?
|
549
559
|
request[:sso_jit_provisioning_allowed_connections] = sso_jit_provisioning_allowed_connections unless sso_jit_provisioning_allowed_connections.nil?
|
@@ -571,7 +581,7 @@ module StytchB2B
|
|
571
581
|
#
|
572
582
|
# == Parameters:
|
573
583
|
# organization_id::
|
574
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
584
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
575
585
|
# The type of this field is +String+.
|
576
586
|
#
|
577
587
|
# == Returns:
|
@@ -597,7 +607,10 @@ module StytchB2B
|
|
597
607
|
delete_request("/v1/b2b/organizations/#{organization_id}", headers)
|
598
608
|
end
|
599
609
|
|
600
|
-
#
|
610
|
+
#
|
611
|
+
# **Warning**: This endpoint is not recommended for use in login flows. Scaling issues may occur, as search performance may vary from ~150 milliseconds to 9 seconds depending on query complexity and rate limits are set to 100 requests/second.
|
612
|
+
#
|
613
|
+
# Search across your Organizations. Returns an array of Organization objects.
|
601
614
|
#
|
602
615
|
# == Parameters:
|
603
616
|
# cursor::
|
@@ -655,7 +668,7 @@ module StytchB2B
|
|
655
668
|
#
|
656
669
|
# == Parameters:
|
657
670
|
# organization_id::
|
658
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
671
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
659
672
|
# The type of this field is +String+.
|
660
673
|
#
|
661
674
|
# == Returns:
|
@@ -689,7 +702,7 @@ module StytchB2B
|
|
689
702
|
#
|
690
703
|
# == Parameters:
|
691
704
|
# organization_id::
|
692
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
705
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
693
706
|
# The type of this field is +String+.
|
694
707
|
# connected_app_id::
|
695
708
|
# The ID of the Connected App.
|
@@ -957,7 +970,7 @@ module StytchB2B
|
|
957
970
|
#
|
958
971
|
# == Parameters:
|
959
972
|
# organization_id::
|
960
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
973
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
961
974
|
# The type of this field is +String+.
|
962
975
|
# member_id::
|
963
976
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1090,7 +1103,7 @@ module StytchB2B
|
|
1090
1103
|
#
|
1091
1104
|
# == Parameters:
|
1092
1105
|
# organization_id::
|
1093
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1106
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1094
1107
|
# The type of this field is +String+.
|
1095
1108
|
# member_id::
|
1096
1109
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1124,7 +1137,7 @@ module StytchB2B
|
|
1124
1137
|
#
|
1125
1138
|
# == Parameters:
|
1126
1139
|
# organization_id::
|
1127
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1140
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1128
1141
|
# The type of this field is +String+.
|
1129
1142
|
# member_id::
|
1130
1143
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1172,7 +1185,7 @@ module StytchB2B
|
|
1172
1185
|
#
|
1173
1186
|
# == Parameters:
|
1174
1187
|
# organization_id::
|
1175
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1188
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1176
1189
|
# The type of this field is +String+.
|
1177
1190
|
# member_id::
|
1178
1191
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1216,7 +1229,7 @@ module StytchB2B
|
|
1216
1229
|
#
|
1217
1230
|
# == Parameters:
|
1218
1231
|
# organization_id::
|
1219
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1232
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1220
1233
|
# The type of this field is +String+.
|
1221
1234
|
# member_id::
|
1222
1235
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1252,9 +1265,12 @@ module StytchB2B
|
|
1252
1265
|
delete_request("/v1/b2b/organizations/#{organization_id}/members/#{member_id}/totp", headers)
|
1253
1266
|
end
|
1254
1267
|
|
1268
|
+
#
|
1269
|
+
# **Warning**: This endpoint is not recommended for use in login flows. Scaling issues may occur, as search performance may vary from ~150 milliseconds to 9 seconds depending on query complexity and rate limits are set to 100 requests/second.
|
1270
|
+
#
|
1255
1271
|
# Search for Members within specified Organizations. An array with at least one `organization_id` is required. Submitting an empty `query` returns all non-deleted Members within the specified Organizations.
|
1256
1272
|
#
|
1257
|
-
#
|
1273
|
+
# All fuzzy search filters require a minimum of three characters.
|
1258
1274
|
#
|
1259
1275
|
# == Parameters:
|
1260
1276
|
# organization_ids::
|
@@ -1315,7 +1331,7 @@ module StytchB2B
|
|
1315
1331
|
#
|
1316
1332
|
# == Parameters:
|
1317
1333
|
# organization_id::
|
1318
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1334
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1319
1335
|
# The type of this field is +String+.
|
1320
1336
|
# member_password_id::
|
1321
1337
|
# Globally unique UUID that identifies a Member's password.
|
@@ -1396,7 +1412,7 @@ module StytchB2B
|
|
1396
1412
|
#
|
1397
1413
|
# == Parameters:
|
1398
1414
|
# organization_id::
|
1399
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1415
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1400
1416
|
# The type of this field is +String+.
|
1401
1417
|
# member_id::
|
1402
1418
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1445,7 +1461,7 @@ module StytchB2B
|
|
1445
1461
|
#
|
1446
1462
|
# == Parameters:
|
1447
1463
|
# organization_id::
|
1448
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1464
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1449
1465
|
# The type of this field is +String+.
|
1450
1466
|
# member_id::
|
1451
1467
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1511,7 +1527,7 @@ module StytchB2B
|
|
1511
1527
|
#
|
1512
1528
|
# == Parameters:
|
1513
1529
|
# organization_id::
|
1514
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1530
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1515
1531
|
# The type of this field is +String+.
|
1516
1532
|
# member_id::
|
1517
1533
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1586,7 +1602,7 @@ module StytchB2B
|
|
1586
1602
|
#
|
1587
1603
|
# == Parameters:
|
1588
1604
|
# organization_id::
|
1589
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1605
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1590
1606
|
# The type of this field is +String+.
|
1591
1607
|
# member_id::
|
1592
1608
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1622,7 +1638,7 @@ module StytchB2B
|
|
1622
1638
|
#
|
1623
1639
|
# == Parameters:
|
1624
1640
|
# organization_id::
|
1625
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1641
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1626
1642
|
# The type of this field is +String+.
|
1627
1643
|
# email_address::
|
1628
1644
|
# The email address of the Member.
|
@@ -1714,7 +1730,7 @@ module StytchB2B
|
|
1714
1730
|
#
|
1715
1731
|
# == Parameters:
|
1716
1732
|
# organization_id::
|
1717
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1733
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1718
1734
|
# The type of this field is +String+.
|
1719
1735
|
# member_id::
|
1720
1736
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1773,7 +1789,7 @@ module StytchB2B
|
|
1773
1789
|
#
|
1774
1790
|
# == Parameters:
|
1775
1791
|
# organization_id::
|
1776
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1792
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1777
1793
|
# The type of this field is +String+.
|
1778
1794
|
# member_id::
|
1779
1795
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1830,7 +1846,7 @@ module StytchB2B
|
|
1830
1846
|
#
|
1831
1847
|
# == Parameters:
|
1832
1848
|
# organization_id::
|
1833
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1849
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1834
1850
|
# The type of this field is +String+.
|
1835
1851
|
# member_id::
|
1836
1852
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1886,7 +1902,7 @@ module StytchB2B
|
|
1886
1902
|
#
|
1887
1903
|
# == Parameters:
|
1888
1904
|
# organization_id::
|
1889
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1905
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1890
1906
|
# The type of this field is +String+.
|
1891
1907
|
# member_id::
|
1892
1908
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1922,7 +1938,7 @@ module StytchB2B
|
|
1922
1938
|
#
|
1923
1939
|
# == Parameters:
|
1924
1940
|
# organization_id::
|
1925
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1941
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1926
1942
|
# The type of this field is +String+.
|
1927
1943
|
# member_id::
|
1928
1944
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -1964,7 +1980,7 @@ module StytchB2B
|
|
1964
1980
|
#
|
1965
1981
|
# == Parameters:
|
1966
1982
|
# organization_id::
|
1967
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
1983
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
1968
1984
|
# The type of this field is +String+.
|
1969
1985
|
# member_id::
|
1970
1986
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -2033,7 +2049,7 @@ module StytchB2B
|
|
2033
2049
|
#
|
2034
2050
|
# == Parameters:
|
2035
2051
|
# organization_id::
|
2036
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
2052
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
2037
2053
|
# The type of this field is +String+.
|
2038
2054
|
# member_id::
|
2039
2055
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
data/lib/stytch/b2b_otp.rb
CHANGED
@@ -51,7 +51,7 @@ module StytchB2B
|
|
51
51
|
#
|
52
52
|
# == Parameters:
|
53
53
|
# organization_id::
|
54
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
54
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
55
55
|
# The type of this field is +String+.
|
56
56
|
# member_id::
|
57
57
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -138,7 +138,7 @@ module StytchB2B
|
|
138
138
|
#
|
139
139
|
# == Parameters:
|
140
140
|
# organization_id::
|
141
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
141
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
142
142
|
# The type of this field is +String+.
|
143
143
|
# member_id::
|
144
144
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
|
@@ -184,6 +184,9 @@ module StytchB2B
|
|
184
184
|
# set_default_mfa::
|
185
185
|
# (no documentation yet)
|
186
186
|
# The type of this field is nilable +Boolean+.
|
187
|
+
# telemetry_id::
|
188
|
+
# If the `telemetry_id` is passed, as part of this request, Stytch will call the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) and store the associated fingerprints and IPGEO information for the Member. Your workspace must be enabled for Device Fingerprinting to use this feature.
|
189
|
+
# The type of this field is nilable +String+.
|
187
190
|
#
|
188
191
|
# == Returns:
|
189
192
|
# An object with the following fields:
|
@@ -211,6 +214,9 @@ module StytchB2B
|
|
211
214
|
# member_session::
|
212
215
|
# The [Session object](https://stytch.com/docs/b2b/api/session-object).
|
213
216
|
# The type of this field is nilable +MemberSession+ (+object+).
|
217
|
+
# member_device::
|
218
|
+
# If a valid `telemetry_id` was passed in the request and the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device` response field will contain information about the member's device attributes.
|
219
|
+
# The type of this field is nilable +DeviceInfo+ (+object+).
|
214
220
|
def authenticate(
|
215
221
|
organization_id:,
|
216
222
|
member_id:,
|
@@ -221,7 +227,8 @@ module StytchB2B
|
|
221
227
|
session_duration_minutes: nil,
|
222
228
|
session_custom_claims: nil,
|
223
229
|
set_mfa_enrollment: nil,
|
224
|
-
set_default_mfa: nil
|
230
|
+
set_default_mfa: nil,
|
231
|
+
telemetry_id: nil
|
225
232
|
)
|
226
233
|
headers = {}
|
227
234
|
request = {
|
@@ -236,6 +243,7 @@ module StytchB2B
|
|
236
243
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
237
244
|
request[:set_mfa_enrollment] = set_mfa_enrollment unless set_mfa_enrollment.nil?
|
238
245
|
request[:set_default_mfa] = set_default_mfa unless set_default_mfa.nil?
|
246
|
+
request[:telemetry_id] = telemetry_id unless telemetry_id.nil?
|
239
247
|
|
240
248
|
post_request('/v1/b2b/otps/sms/authenticate', request, headers)
|
241
249
|
end
|
@@ -257,7 +265,7 @@ module StytchB2B
|
|
257
265
|
#
|
258
266
|
# == Parameters:
|
259
267
|
# organization_id::
|
260
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
268
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
261
269
|
# The type of this field is +String+.
|
262
270
|
# email_address::
|
263
271
|
# The email address of the Member.
|
@@ -327,7 +335,7 @@ module StytchB2B
|
|
327
335
|
end
|
328
336
|
|
329
337
|
# Authenticate a Member with a one-time passcode (OTP). This endpoint requires an OTP that is not expired or previously used.
|
330
|
-
# OTPs have a default expiry of 10 minutes. If the Member
|
338
|
+
# OTPs have a default expiry of 10 minutes. If the Member's status is `pending` or `invited`, they will be updated to `active`.
|
331
339
|
# Provide the `session_duration_minutes` parameter to set the lifetime of the session. If the `session_duration_minutes` parameter is not specified, a Stytch session will be created with a 60 minute duration.
|
332
340
|
#
|
333
341
|
# If the Member is required to complete MFA to log in to the Organization, the returned value of `member_authenticated` will be `false`, and an `intermediate_session_token` will be returned.
|
@@ -340,7 +348,7 @@ module StytchB2B
|
|
340
348
|
#
|
341
349
|
# == Parameters:
|
342
350
|
# organization_id::
|
343
|
-
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
|
351
|
+
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
|
344
352
|
# The type of this field is +String+.
|
345
353
|
# email_address::
|
346
354
|
# The email address of the Member.
|
@@ -383,6 +391,9 @@ module StytchB2B
|
|
383
391
|
# Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
|
384
392
|
#
|
385
393
|
# The type of this field is nilable +AuthenticateRequestLocale+ (string enum).
|
394
|
+
# telemetry_id::
|
395
|
+
# If the `telemetry_id` is passed, as part of this request, Stytch will call the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) and store the associated fingerprints and IPGEO information for the Member. Your workspace must be enabled for Device Fingerprinting to use this feature.
|
396
|
+
# The type of this field is nilable +String+.
|
386
397
|
#
|
387
398
|
# == Returns:
|
388
399
|
# An object with the following fields:
|
@@ -428,6 +439,9 @@ module StytchB2B
|
|
428
439
|
# primary_required::
|
429
440
|
# (no documentation yet)
|
430
441
|
# The type of this field is nilable +PrimaryRequired+ (+object+).
|
442
|
+
# member_device::
|
443
|
+
# If a valid `telemetry_id` was passed in the request and the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device` response field will contain information about the member's device attributes.
|
444
|
+
# The type of this field is nilable +DeviceInfo+ (+object+).
|
431
445
|
def authenticate(
|
432
446
|
organization_id:,
|
433
447
|
email_address:,
|
@@ -437,7 +451,8 @@ module StytchB2B
|
|
437
451
|
intermediate_session_token: nil,
|
438
452
|
session_duration_minutes: nil,
|
439
453
|
session_custom_claims: nil,
|
440
|
-
locale: nil
|
454
|
+
locale: nil,
|
455
|
+
telemetry_id: nil
|
441
456
|
)
|
442
457
|
headers = {}
|
443
458
|
request = {
|
@@ -451,6 +466,7 @@ module StytchB2B
|
|
451
466
|
request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
|
452
467
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
453
468
|
request[:locale] = locale unless locale.nil?
|
469
|
+
request[:telemetry_id] = telemetry_id unless telemetry_id.nil?
|
454
470
|
|
455
471
|
post_request('/v1/b2b/otps/email/authenticate', request, headers)
|
456
472
|
end
|