stytch 10.42.0 → 11.1.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/.github/workflows/auto-publish.yml +9 -11
- data/.rubocop.yml +2 -0
- data/lib/stytch/b2b_discovery.rb +10 -4
- data/lib/stytch/b2b_impersonation.rb +3 -0
- data/lib/stytch/b2b_magic_links.rb +14 -11
- data/lib/stytch/b2b_oauth.rb +7 -1
- data/lib/stytch/b2b_organizations.rb +2 -3
- data/lib/stytch/b2b_otp.rb +13 -7
- data/lib/stytch/b2b_passwords.rb +37 -18
- data/lib/stytch/b2b_rbac.rb +6 -0
- data/lib/stytch/b2b_scim.rb +6 -6
- data/lib/stytch/b2b_sessions.rb +4 -3
- data/lib/stytch/b2b_sso.rb +11 -8
- data/lib/stytch/connected_apps.rb +12 -2
- data/lib/stytch/m2m.rb +3 -3
- data/lib/stytch/magic_links.rb +22 -12
- data/lib/stytch/otps.rb +10 -10
- data/lib/stytch/passwords.rb +7 -9
- data/lib/stytch/rbac_local.rb +41 -17
- data/lib/stytch/sessions.rb +0 -2
- data/lib/stytch/version.rb +1 -1
- data/lib/stytch/webauthn.rb +12 -8
- data/stytch.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f71629db7c68eb1cc5d3ddfbd1258c460894417b36bff70155c4b6d14a3c805e
|
|
4
|
+
data.tar.gz: 1b9cc2a8cd738c52b0bcf2b1a001a5e8dd9b1f5b86befe3e956cdeebe58d0a6b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9673c8aaaf31c622c9b20124ae5253149bc4e5dd769cbde16f5f0d5a2e8818b03cd43660a8c183443159053b5c883dadec372a228206f720c317046b677e50c5
|
|
7
|
+
data.tar.gz: dc98d996aed611a95a78dc22b85115ea7efce74935dc8f2f842b3c65b20bc106d89a430d42b60280d8a7b73b69dec434a19b7d11e7ee3dc93aac86e57ad73704
|
|
@@ -22,20 +22,18 @@ jobs:
|
|
|
22
22
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
23
23
|
echo "release_tag=v$VERSION" >> $GITHUB_OUTPUT
|
|
24
24
|
|
|
25
|
-
- name: Get changed files
|
|
26
|
-
id: files
|
|
27
|
-
uses: jitterbit/get-changed-files@v1
|
|
28
|
-
|
|
29
25
|
- name: Check for config.rb diff
|
|
30
26
|
id: diff
|
|
27
|
+
env:
|
|
28
|
+
BASE_SHA: ${{ github.event.before }}
|
|
29
|
+
HEAD_SHA: ${{ github.sha }}
|
|
31
30
|
run: |
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
echo "diff=$FOUND" >> $GITHUB_OUTPUT
|
|
31
|
+
git fetch --depth=1 origin "$BASE_SHA"
|
|
32
|
+
if git diff --quiet "$BASE_SHA" "$HEAD_SHA" -- lib/stytch/version.rb; then
|
|
33
|
+
echo "diff=0" >> $GITHUB_OUTPUT
|
|
34
|
+
else
|
|
35
|
+
echo "diff=1" >> $GITHUB_OUTPUT
|
|
36
|
+
fi
|
|
39
37
|
|
|
40
38
|
- name: Publish RubyGem
|
|
41
39
|
if: steps.diff.outputs.diff != 0
|
data/.rubocop.yml
CHANGED
|
@@ -19,4 +19,6 @@ Style/StringConcatenation: { Enabled: false }
|
|
|
19
19
|
|
|
20
20
|
RSpec/DescribedClass: { Enabled: false }
|
|
21
21
|
RSpec/ExampleLength: { Enabled: false }
|
|
22
|
+
RSpec/InstanceVariable: { Enabled: false }
|
|
22
23
|
RSpec/MultipleExpectations: { Enabled: false }
|
|
24
|
+
RSpec/MultipleMemoizedHelpers: { Enabled: false }
|
data/lib/stytch/b2b_discovery.rb
CHANGED
|
@@ -71,7 +71,7 @@ module StytchB2B
|
|
|
71
71
|
# locale::
|
|
72
72
|
# If the Member needs to complete an MFA step, and the Member has a phone number, this endpoint will pre-emptively send a one-time passcode (OTP) to the Member's phone number. The locale argument will be used to determine which language to use when sending the passcode.
|
|
73
73
|
#
|
|
74
|
-
# Parameter is
|
|
74
|
+
# Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
75
75
|
#
|
|
76
76
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
77
77
|
#
|
|
@@ -123,6 +123,9 @@ module StytchB2B
|
|
|
123
123
|
# member_device::
|
|
124
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
125
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
126
|
+
# intermediate_session_token_expires_at::
|
|
127
|
+
# (no documentation yet)
|
|
128
|
+
# The type of this field is nilable +String+.
|
|
126
129
|
def exchange(
|
|
127
130
|
intermediate_session_token:,
|
|
128
131
|
organization_id:,
|
|
@@ -337,6 +340,9 @@ module StytchB2B
|
|
|
337
340
|
# member::
|
|
338
341
|
# The [Member object](https://stytch.com/docs/b2b/api/member-object)
|
|
339
342
|
# The type of this field is +Member+ (+object+).
|
|
343
|
+
# organization::
|
|
344
|
+
# The [Organization object](https://stytch.com/docs/b2b/api/organization-object).
|
|
345
|
+
# The type of this field is +Organization+ (+object+).
|
|
340
346
|
# member_authenticated::
|
|
341
347
|
# Indicates whether the Member is fully authenticated. If false, the Member needs to complete an MFA step to log in to the Organization.
|
|
342
348
|
# The type of this field is +Boolean+.
|
|
@@ -349,9 +355,6 @@ module StytchB2B
|
|
|
349
355
|
# member_session::
|
|
350
356
|
# The [Session object](https://stytch.com/docs/b2b/api/session-object).
|
|
351
357
|
# The type of this field is nilable +MemberSession+ (+object+).
|
|
352
|
-
# organization::
|
|
353
|
-
# The [Organization object](https://stytch.com/docs/b2b/api/organization-object).
|
|
354
|
-
# The type of this field is nilable +Organization+ (+object+).
|
|
355
358
|
# mfa_required::
|
|
356
359
|
# Information about the MFA requirements of the Organization and the Member's options for fulfilling MFA.
|
|
357
360
|
# The type of this field is nilable +MfaRequired+ (+object+).
|
|
@@ -361,6 +364,9 @@ module StytchB2B
|
|
|
361
364
|
# member_device::
|
|
362
365
|
# 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.
|
|
363
366
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
367
|
+
# intermediate_session_token_expires_at::
|
|
368
|
+
# (no documentation yet)
|
|
369
|
+
# The type of this field is nilable +String+.
|
|
364
370
|
def create(
|
|
365
371
|
intermediate_session_token:,
|
|
366
372
|
session_duration_minutes: nil,
|
|
@@ -64,6 +64,9 @@ module StytchB2B
|
|
|
64
64
|
# mfa_required::
|
|
65
65
|
# MFA will not be required when authenticating impersonation tokens.
|
|
66
66
|
# The type of this field is nilable +MfaRequired+ (+object+).
|
|
67
|
+
# intermediate_session_token_expires_at::
|
|
68
|
+
# (no documentation yet)
|
|
69
|
+
# The type of this field is nilable +String+.
|
|
67
70
|
def authenticate(
|
|
68
71
|
impersonation_token:
|
|
69
72
|
)
|
|
@@ -69,7 +69,7 @@ module StytchB2B
|
|
|
69
69
|
# locale::
|
|
70
70
|
# If the Member needs to complete an MFA step, and the Member has a phone number, this endpoint will pre-emptively send a one-time passcode (OTP) to the Member's phone number. The locale argument will be used to determine which language to use when sending the passcode.
|
|
71
71
|
#
|
|
72
|
-
# Parameter is
|
|
72
|
+
# Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
73
73
|
#
|
|
74
74
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
75
75
|
#
|
|
@@ -133,6 +133,9 @@ module StytchB2B
|
|
|
133
133
|
# member_device::
|
|
134
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
135
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
136
|
+
# intermediate_session_token_expires_at::
|
|
137
|
+
# (no documentation yet)
|
|
138
|
+
# The type of this field is nilable +String+.
|
|
136
139
|
def authenticate(
|
|
137
140
|
magic_links_token:,
|
|
138
141
|
pkce_code_verifier: nil,
|
|
@@ -214,15 +217,14 @@ module StytchB2B
|
|
|
214
217
|
# A base64url encoded SHA256 hash of a one time secret used to validate that the request starts and ends on the same device.
|
|
215
218
|
# The type of this field is nilable +String+.
|
|
216
219
|
# login_template_id::
|
|
217
|
-
# Use a custom template for login emails. By default, it will use your default email template.
|
|
218
|
-
# built-in customizations or a custom HTML email for Magic Links - Login.
|
|
220
|
+
# Use a custom template for login emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “Magic Links - Login”.
|
|
219
221
|
# The type of this field is nilable +String+.
|
|
220
222
|
# signup_template_id::
|
|
221
223
|
# Use a custom template for signup emails. By default, it will use your default email template. The template must be from Stytch's
|
|
222
|
-
# built-in customizations or a custom HTML email for Magic Links - Signup
|
|
224
|
+
# built-in customizations or a custom HTML email for “Magic Links - Signup”.
|
|
223
225
|
# The type of this field is nilable +String+.
|
|
224
226
|
# locale::
|
|
225
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
227
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
226
228
|
#
|
|
227
229
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
228
230
|
#
|
|
@@ -320,11 +322,10 @@ module StytchB2B
|
|
|
320
322
|
# for complete field behavior details.
|
|
321
323
|
# The type of this field is nilable +object+.
|
|
322
324
|
# invite_template_id::
|
|
323
|
-
# Use a custom template for invite emails. By default, it will use your default email template.
|
|
324
|
-
# using our built-in customizations or a custom HTML email for Magic Links - Invite.
|
|
325
|
+
# Use a custom template for invite emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “Magic Links - Invite”.
|
|
325
326
|
# The type of this field is nilable +String+.
|
|
326
327
|
# locale::
|
|
327
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
328
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
328
329
|
#
|
|
329
330
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
330
331
|
#
|
|
@@ -414,11 +415,10 @@ module StytchB2B
|
|
|
414
415
|
# A base64url encoded SHA256 hash of a one time secret used to validate that the request starts and ends on the same device.
|
|
415
416
|
# The type of this field is nilable +String+.
|
|
416
417
|
# login_template_id::
|
|
417
|
-
# Use a custom template for discovery emails. By default, it will use your default email template.
|
|
418
|
-
# built-in customizations or a custom HTML email for Magic Links - Login.
|
|
418
|
+
# Use a custom template for discovery emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “Magic Links - Login”.
|
|
419
419
|
# The type of this field is nilable +String+.
|
|
420
420
|
# locale::
|
|
421
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
421
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
422
422
|
#
|
|
423
423
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
424
424
|
#
|
|
@@ -505,6 +505,9 @@ module StytchB2B
|
|
|
505
505
|
# status_code::
|
|
506
506
|
# 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.
|
|
507
507
|
# The type of this field is +Integer+.
|
|
508
|
+
# intermediate_session_token_expires_at::
|
|
509
|
+
# (no documentation yet)
|
|
510
|
+
# The type of this field is nilable +String+.
|
|
508
511
|
def authenticate(
|
|
509
512
|
discovery_magic_links_token:,
|
|
510
513
|
pkce_code_verifier: nil
|
data/lib/stytch/b2b_oauth.rb
CHANGED
|
@@ -67,7 +67,7 @@ module StytchB2B
|
|
|
67
67
|
# locale::
|
|
68
68
|
# If the Member needs to complete an MFA step, and the Member has a phone number, this endpoint will pre-emptively send a one-time passcode (OTP) to the Member's phone number. The locale argument will be used to determine which language to use when sending the passcode.
|
|
69
69
|
#
|
|
70
|
-
# Parameter is
|
|
70
|
+
# Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
71
71
|
#
|
|
72
72
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
73
73
|
#
|
|
@@ -139,6 +139,9 @@ module StytchB2B
|
|
|
139
139
|
# member_device::
|
|
140
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
141
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
142
|
+
# intermediate_session_token_expires_at::
|
|
143
|
+
# (no documentation yet)
|
|
144
|
+
# The type of this field is nilable +String+.
|
|
142
145
|
def authenticate(
|
|
143
146
|
oauth_token:,
|
|
144
147
|
session_token: nil,
|
|
@@ -236,6 +239,9 @@ module StytchB2B
|
|
|
236
239
|
# status_code::
|
|
237
240
|
# 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.
|
|
238
241
|
# The type of this field is +Integer+.
|
|
242
|
+
# intermediate_session_token_expires_at::
|
|
243
|
+
# (no documentation yet)
|
|
244
|
+
# The type of this field is nilable +String+.
|
|
239
245
|
def authenticate(
|
|
240
246
|
discovery_oauth_token:,
|
|
241
247
|
session_token: nil,
|
|
@@ -1592,7 +1592,7 @@ module StytchB2B
|
|
|
1592
1592
|
# redirect URL that you set in your Dashboard is used. If you have not set a default login redirect URL, an error is returned.
|
|
1593
1593
|
# The type of this field is nilable +String+.
|
|
1594
1594
|
# locale::
|
|
1595
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
1595
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
1596
1596
|
#
|
|
1597
1597
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
1598
1598
|
#
|
|
@@ -1600,8 +1600,7 @@ module StytchB2B
|
|
|
1600
1600
|
#
|
|
1601
1601
|
# The type of this field is nilable +StartEmailUpdateRequestLocale+ (string enum).
|
|
1602
1602
|
# login_template_id::
|
|
1603
|
-
# Use a custom template for login emails. By default, it will use your default email template.
|
|
1604
|
-
# built-in customizations or a custom HTML email for Magic Links - Login.
|
|
1603
|
+
# Use a custom template for login emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “Magic Links - Login”.
|
|
1605
1604
|
# The type of this field is nilable +String+.
|
|
1606
1605
|
# delivery_method::
|
|
1607
1606
|
# The method that should be used to verify a member's new email address. The options are `EMAIL_MAGIC_LINK` or `EMAIL_OTP`. This field is optional, if no value is provided, `EMAIL_MAGIC_LINK` will be used.
|
data/lib/stytch/b2b_otp.rb
CHANGED
|
@@ -60,7 +60,7 @@ module StytchB2B
|
|
|
60
60
|
# The phone number to send the OTP to. If the Member already has a phone number, this argument is not needed.
|
|
61
61
|
# The type of this field is nilable +String+.
|
|
62
62
|
# locale::
|
|
63
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
63
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
64
64
|
#
|
|
65
65
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
66
66
|
#
|
|
@@ -271,13 +271,13 @@ module StytchB2B
|
|
|
271
271
|
# The email address of the Member.
|
|
272
272
|
# The type of this field is +String+.
|
|
273
273
|
# login_template_id::
|
|
274
|
-
# Use a custom template for login emails. By default, it will use your default email template.
|
|
274
|
+
# Use a custom template for login emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “OTP - Login”.
|
|
275
275
|
# The type of this field is nilable +String+.
|
|
276
276
|
# signup_template_id::
|
|
277
|
-
# Use a custom template for signup emails. By default, it will use your default email template.
|
|
277
|
+
# Use a custom template for signup emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “OTP - Signup”.
|
|
278
278
|
# The type of this field is nilable +String+.
|
|
279
279
|
# locale::
|
|
280
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
280
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
281
281
|
#
|
|
282
282
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
283
283
|
#
|
|
@@ -384,7 +384,7 @@ module StytchB2B
|
|
|
384
384
|
# Total custom claims size cannot exceed four kilobytes.
|
|
385
385
|
# The type of this field is nilable +object+.
|
|
386
386
|
# locale::
|
|
387
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
387
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
388
388
|
#
|
|
389
389
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
390
390
|
#
|
|
@@ -442,6 +442,9 @@ module StytchB2B
|
|
|
442
442
|
# member_device::
|
|
443
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
444
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
445
|
+
# intermediate_session_token_expires_at::
|
|
446
|
+
# (no documentation yet)
|
|
447
|
+
# The type of this field is nilable +String+.
|
|
445
448
|
def authenticate(
|
|
446
449
|
organization_id:,
|
|
447
450
|
email_address:,
|
|
@@ -485,10 +488,10 @@ module StytchB2B
|
|
|
485
488
|
# The email address to start the discovery flow for.
|
|
486
489
|
# The type of this field is +String+.
|
|
487
490
|
# login_template_id::
|
|
488
|
-
# Use a custom template for login emails. By default, it will use your default email template.
|
|
491
|
+
# Use a custom template for login emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “OTP - Login”.
|
|
489
492
|
# The type of this field is nilable +String+.
|
|
490
493
|
# locale::
|
|
491
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
494
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
492
495
|
#
|
|
493
496
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
494
497
|
#
|
|
@@ -562,6 +565,9 @@ module StytchB2B
|
|
|
562
565
|
# status_code::
|
|
563
566
|
# 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.
|
|
564
567
|
# The type of this field is +Integer+.
|
|
568
|
+
# intermediate_session_token_expires_at::
|
|
569
|
+
# (no documentation yet)
|
|
570
|
+
# The type of this field is nilable +String+.
|
|
565
571
|
def authenticate(
|
|
566
572
|
email_address:,
|
|
567
573
|
code:
|
data/lib/stytch/b2b_passwords.rb
CHANGED
|
@@ -52,7 +52,8 @@ module StytchB2B
|
|
|
52
52
|
# valid_password::
|
|
53
53
|
# Returns `true` if the password passes our password validation. We offer two validation options,
|
|
54
54
|
# [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy) is the default option which offers a high level of sophistication.
|
|
55
|
-
# We also offer [LUDS](https://stytch.com/docs/b2b/guides/passwords/strength-policy)
|
|
55
|
+
# We also offer [LUDS](https://stytch.com/docs/b2b/guides/passwords/strength-policy) which is less sophisticated
|
|
56
|
+
# but easier to understand. If an email address is included in the call we also
|
|
56
57
|
# require that the password hasn't been compromised using built-in breach detection powered by [HaveIBeenPwned](https://haveibeenpwned.com/)
|
|
57
58
|
# The type of this field is +Boolean+.
|
|
58
59
|
# score::
|
|
@@ -66,7 +67,7 @@ module StytchB2B
|
|
|
66
67
|
# The type of this field is +String+.
|
|
67
68
|
# breach_detection_on_create::
|
|
68
69
|
# Will return `true` if breach detection will be evaluated. By default this option is enabled.
|
|
69
|
-
# This option can be disabled
|
|
70
|
+
# This option can be disabled in the [dashboard](https://stytch.com/dashboard/password-strength-config#breach-detection).
|
|
70
71
|
# If this value is false then `breached_password` will always be `false` as well.
|
|
71
72
|
# The type of this field is +Boolean+.
|
|
72
73
|
# status_code::
|
|
@@ -282,7 +283,7 @@ module StytchB2B
|
|
|
282
283
|
# locale::
|
|
283
284
|
# If the Member needs to complete an MFA step, and the Member has a phone number, this endpoint will pre-emptively send a one-time passcode (OTP) to the Member's phone number. The locale argument will be used to determine which language to use when sending the passcode.
|
|
284
285
|
#
|
|
285
|
-
# Parameter is
|
|
286
|
+
# Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
286
287
|
#
|
|
287
288
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
288
289
|
#
|
|
@@ -340,6 +341,9 @@ module StytchB2B
|
|
|
340
341
|
# member_device::
|
|
341
342
|
# 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.
|
|
342
343
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
344
|
+
# intermediate_session_token_expires_at::
|
|
345
|
+
# (no documentation yet)
|
|
346
|
+
# The type of this field is nilable +String+.
|
|
343
347
|
def authenticate(
|
|
344
348
|
organization_id:,
|
|
345
349
|
email_address:,
|
|
@@ -411,9 +415,9 @@ module StytchB2B
|
|
|
411
415
|
# The email address of the Member to start the email reset process for.
|
|
412
416
|
# The type of this field is +String+.
|
|
413
417
|
# reset_password_redirect_url::
|
|
414
|
-
# The URL that the Member
|
|
415
|
-
#
|
|
416
|
-
# If you have not set a default
|
|
418
|
+
# The URL that the Member is redirected to from the reset password magic link. This URL should display your application's reset password page.
|
|
419
|
+
# Before rendering the reset page, extract the `token` from the query parameters. On the reset page, collect the new password and complete the flow by calling the corresponding Password Reset by Email endpoint.
|
|
420
|
+
# If this parameter is not specified, the default Reset Password redirect URL configured in the Dashboard will be used. If you have not set a default Reset Password redirect URL, an error is returned.
|
|
417
421
|
# The type of this field is nilable +String+.
|
|
418
422
|
# reset_password_expiration_minutes::
|
|
419
423
|
# Sets a time limit after which the email link to reset the member's password will no longer be valid. The minimum allowed expiration is 5 minutes and the maximum is 10080 minutes (7 days). By default, the expiration is 30 minutes.
|
|
@@ -427,7 +431,7 @@ module StytchB2B
|
|
|
427
431
|
# After Members are redirected to the login redirect URL, your application should retrieve the `token` value from the URL parameters and call the [Magic Link Authenticate endpoint](https://stytch.com/docs/api/authenticate-magic-link) to log the Member in without requiring a password reset. If this value is not provided, your project's default login redirect URL will be used. If you have not set a default login redirect URL, an error will be returned.
|
|
428
432
|
# The type of this field is nilable +String+.
|
|
429
433
|
# locale::
|
|
430
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
434
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
431
435
|
#
|
|
432
436
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
433
437
|
#
|
|
@@ -435,11 +439,11 @@ module StytchB2B
|
|
|
435
439
|
#
|
|
436
440
|
# The type of this field is nilable +ResetStartRequestLocale+ (string enum).
|
|
437
441
|
# reset_password_template_id::
|
|
438
|
-
# Use a custom template for reset password emails. By default, it will use your default email template.
|
|
442
|
+
# Use a custom template for reset password emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “Passwords - Reset Password”.
|
|
439
443
|
# The type of this field is nilable +String+.
|
|
440
444
|
# verify_email_template_id::
|
|
441
445
|
# Use a custom template for verification emails sent during password reset flows. When cross-organization passwords are enabled for your Project, this template will be used the first time a user sets a password via a
|
|
442
|
-
# password reset flow. By default, it will use your default email template.
|
|
446
|
+
# password reset flow. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “Passwords - Email Verification”.
|
|
443
447
|
# The type of this field is nilable +String+.
|
|
444
448
|
#
|
|
445
449
|
# == Returns:
|
|
@@ -539,7 +543,7 @@ module StytchB2B
|
|
|
539
543
|
# locale::
|
|
540
544
|
# If the Member needs to complete an MFA step, and the Member has a phone number, this endpoint will pre-emptively send a one-time passcode (OTP) to the Member's phone number. The locale argument will be used to determine which language to use when sending the passcode.
|
|
541
545
|
#
|
|
542
|
-
# Parameter is
|
|
546
|
+
# Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
543
547
|
#
|
|
544
548
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
545
549
|
#
|
|
@@ -600,6 +604,9 @@ module StytchB2B
|
|
|
600
604
|
# member_device::
|
|
601
605
|
# 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.
|
|
602
606
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
607
|
+
# intermediate_session_token_expires_at::
|
|
608
|
+
# (no documentation yet)
|
|
609
|
+
# The type of this field is nilable +String+.
|
|
603
610
|
def reset(
|
|
604
611
|
password_reset_token:,
|
|
605
612
|
password:,
|
|
@@ -725,7 +732,7 @@ module StytchB2B
|
|
|
725
732
|
# Total custom claims size cannot exceed four kilobytes.
|
|
726
733
|
# The type of this field is nilable +object+.
|
|
727
734
|
# locale::
|
|
728
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
735
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
729
736
|
#
|
|
730
737
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
731
738
|
#
|
|
@@ -774,6 +781,9 @@ module StytchB2B
|
|
|
774
781
|
# member_device::
|
|
775
782
|
# 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.
|
|
776
783
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
784
|
+
# intermediate_session_token_expires_at::
|
|
785
|
+
# (no documentation yet)
|
|
786
|
+
# The type of this field is nilable +String+.
|
|
777
787
|
def reset(
|
|
778
788
|
organization_id:,
|
|
779
789
|
password:,
|
|
@@ -863,7 +873,7 @@ module StytchB2B
|
|
|
863
873
|
# locale::
|
|
864
874
|
# If the Member needs to complete an MFA step, and the Member has a phone number, this endpoint will pre-emptively send a one-time passcode (OTP) to the Member's phone number. The locale argument will be used to determine which language to use when sending the passcode.
|
|
865
875
|
#
|
|
866
|
-
# Parameter is
|
|
876
|
+
# Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
867
877
|
#
|
|
868
878
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
869
879
|
#
|
|
@@ -915,6 +925,9 @@ module StytchB2B
|
|
|
915
925
|
# member_device::
|
|
916
926
|
# 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.
|
|
917
927
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
928
|
+
# intermediate_session_token_expires_at::
|
|
929
|
+
# (no documentation yet)
|
|
930
|
+
# The type of this field is nilable +String+.
|
|
918
931
|
def reset(
|
|
919
932
|
email_address:,
|
|
920
933
|
existing_password:,
|
|
@@ -997,6 +1010,9 @@ module StytchB2B
|
|
|
997
1010
|
# status_code::
|
|
998
1011
|
# 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.
|
|
999
1012
|
# The type of this field is +Integer+.
|
|
1013
|
+
# intermediate_session_token_expires_at::
|
|
1014
|
+
# (no documentation yet)
|
|
1015
|
+
# The type of this field is nilable +String+.
|
|
1000
1016
|
def authenticate(
|
|
1001
1017
|
email_address:,
|
|
1002
1018
|
password:
|
|
@@ -1030,9 +1046,9 @@ module StytchB2B
|
|
|
1030
1046
|
# The email address of the Member to start the email reset process for.
|
|
1031
1047
|
# The type of this field is +String+.
|
|
1032
1048
|
# reset_password_redirect_url::
|
|
1033
|
-
# The URL that the Member
|
|
1034
|
-
#
|
|
1035
|
-
# If you have not set a default
|
|
1049
|
+
# The URL that the Member is redirected to from the reset password magic link. This URL should display your application's reset password page.
|
|
1050
|
+
# Before rendering the reset page, extract the `token` from the query parameters. On the reset page, collect the new password and complete the flow by calling the corresponding Password Reset by Email endpoint.
|
|
1051
|
+
# If this parameter is not specified, the default Reset Password redirect URL configured in the Dashboard will be used. If you have not set a default Reset Password redirect URL, an error is returned.
|
|
1036
1052
|
# The type of this field is nilable +String+.
|
|
1037
1053
|
# discovery_redirect_url::
|
|
1038
1054
|
# The URL that the end user clicks from the discovery Magic Link. This URL should be an endpoint in the backend server that
|
|
@@ -1040,7 +1056,7 @@ module StytchB2B
|
|
|
1040
1056
|
# discovery redirect URL that you set in your Dashboard is used. If you have not set a default discovery redirect URL, an error is returned.
|
|
1041
1057
|
# The type of this field is nilable +String+.
|
|
1042
1058
|
# reset_password_template_id::
|
|
1043
|
-
# Use a custom template for reset password emails. By default, it will use your default email template.
|
|
1059
|
+
# Use a custom template for reset password emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “Passwords - Reset Password”.
|
|
1044
1060
|
# The type of this field is nilable +String+.
|
|
1045
1061
|
# reset_password_expiration_minutes::
|
|
1046
1062
|
# Sets a time limit after which the email link to reset the member's password will no longer be valid. The minimum allowed expiration is 5 minutes and the maximum is 10080 minutes (7 days). By default, the expiration is 30 minutes.
|
|
@@ -1049,7 +1065,7 @@ module StytchB2B
|
|
|
1049
1065
|
# (no documentation yet)
|
|
1050
1066
|
# The type of this field is nilable +String+.
|
|
1051
1067
|
# locale::
|
|
1052
|
-
# Used to determine which language to use when sending the user this delivery method. Parameter is
|
|
1068
|
+
# Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
1053
1069
|
#
|
|
1054
1070
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
1055
1071
|
#
|
|
@@ -1058,7 +1074,7 @@ module StytchB2B
|
|
|
1058
1074
|
# The type of this field is nilable +String+.
|
|
1059
1075
|
# verify_email_template_id::
|
|
1060
1076
|
# Use a custom template for verification emails sent during password reset flows. When cross-organization passwords are enabled for your Project, this template will be used the first time a user sets a password via a
|
|
1061
|
-
# password reset flow. By default, it will use your default email template.
|
|
1077
|
+
# password reset flow. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type “Passwords - Email Verification”.
|
|
1062
1078
|
# The type of this field is nilable +String+.
|
|
1063
1079
|
#
|
|
1064
1080
|
# == Returns:
|
|
@@ -1139,6 +1155,9 @@ module StytchB2B
|
|
|
1139
1155
|
# status_code::
|
|
1140
1156
|
# 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.
|
|
1141
1157
|
# The type of this field is +Integer+.
|
|
1158
|
+
# intermediate_session_token_expires_at::
|
|
1159
|
+
# (no documentation yet)
|
|
1160
|
+
# The type of this field is nilable +String+.
|
|
1142
1161
|
def reset(
|
|
1143
1162
|
password_reset_token:,
|
|
1144
1163
|
password:,
|
data/lib/stytch/b2b_rbac.rb
CHANGED
|
@@ -55,6 +55,9 @@ module StytchB2B
|
|
|
55
55
|
@connection = connection
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
#
|
|
59
|
+
# The organization RBAC policy feature is currently in private beta and must be enabled for your Workspace. Please contact Stytch support at support@stytch.com to request access.
|
|
60
|
+
#
|
|
58
61
|
# Get the active RBAC Policy for a specific Organization within your Stytch Project. An Organization RBAC Policy contains the roles that have been defined specifically for that organization, allowing for organization-specific permissioning models.
|
|
59
62
|
#
|
|
60
63
|
# This endpoint returns the organization-scoped roles that supplement the project-level RBAC policy. Organization policies allow you to define custom roles that are specific to individual organizations within your project.
|
|
@@ -90,6 +93,9 @@ module StytchB2B
|
|
|
90
93
|
get_request(request, headers)
|
|
91
94
|
end
|
|
92
95
|
|
|
96
|
+
#
|
|
97
|
+
# The organization RBAC policy feature is currently in private beta and must be enabled for your Workspace. Please contact Stytch support at support@stytch.com to request access.
|
|
98
|
+
#
|
|
93
99
|
# Set the RBAC Policy for a specific Organization within your Stytch Project. An Organization RBAC Policy allows you to define roles that are specific to that organization, providing fine-grained control over permissions at the organization level.
|
|
94
100
|
#
|
|
95
101
|
# This endpoint allows you to create, update, or replace the organization-scoped roles for a given organization. Organization policies supplement the project-level RBAC policy with additional roles that are only applicable within the context of that specific organization.
|
data/lib/stytch/b2b_scim.rb
CHANGED
|
@@ -206,7 +206,7 @@ module StytchB2B
|
|
|
206
206
|
# 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.
|
|
207
207
|
# The type of this field is +Integer+.
|
|
208
208
|
# connection::
|
|
209
|
-
# The
|
|
209
|
+
# The [SCIM Connection Object](https://stytch.com/docs/b2b/api/scim-connection-object).
|
|
210
210
|
# The type of this field is nilable +SCIMConnection+ (+object+).
|
|
211
211
|
#
|
|
212
212
|
# == Method Options:
|
|
@@ -282,7 +282,7 @@ module StytchB2B
|
|
|
282
282
|
# 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.
|
|
283
283
|
# The type of this field is +Integer+.
|
|
284
284
|
# connection::
|
|
285
|
-
# The
|
|
285
|
+
# The [SCIM Connection Object](https://stytch.com/docs/b2b/api/scim-connection-object).
|
|
286
286
|
# The type of this field is nilable +SCIMConnectionWithNextToken+ (+object+).
|
|
287
287
|
#
|
|
288
288
|
# == Method Options:
|
|
@@ -318,7 +318,7 @@ module StytchB2B
|
|
|
318
318
|
# 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.
|
|
319
319
|
# The type of this field is +Integer+.
|
|
320
320
|
# connection::
|
|
321
|
-
# The
|
|
321
|
+
# The [SCIM Connection Object](https://stytch.com/docs/b2b/api/scim-connection-object).
|
|
322
322
|
# The type of this field is nilable +SCIMConnection+ (+object+).
|
|
323
323
|
#
|
|
324
324
|
# == Method Options:
|
|
@@ -354,7 +354,7 @@ module StytchB2B
|
|
|
354
354
|
# 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.
|
|
355
355
|
# The type of this field is +Integer+.
|
|
356
356
|
# connection::
|
|
357
|
-
# The
|
|
357
|
+
# The [SCIM Connection Object](https://stytch.com/docs/b2b/api/scim-connection-object).
|
|
358
358
|
# The type of this field is nilable +SCIMConnection+ (+object+).
|
|
359
359
|
#
|
|
360
360
|
# == Method Options:
|
|
@@ -440,7 +440,7 @@ module StytchB2B
|
|
|
440
440
|
# 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.
|
|
441
441
|
# The type of this field is +Integer+.
|
|
442
442
|
# connection::
|
|
443
|
-
# The
|
|
443
|
+
# The [SCIM Connection Object](https://stytch.com/docs/b2b/api/scim-connection-object).
|
|
444
444
|
# The type of this field is nilable +SCIMConnectionWithToken+ (+object+).
|
|
445
445
|
#
|
|
446
446
|
# == Method Options:
|
|
@@ -476,7 +476,7 @@ module StytchB2B
|
|
|
476
476
|
# 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.
|
|
477
477
|
# The type of this field is +Integer+.
|
|
478
478
|
# connection::
|
|
479
|
-
#
|
|
479
|
+
# The [SCIM Connection Object](https://stytch.com/docs/b2b/api/scim-connection-object).
|
|
480
480
|
# The type of this field is nilable +SCIMConnection+ (+object+).
|
|
481
481
|
#
|
|
482
482
|
# == Method Options:
|
data/lib/stytch/b2b_sessions.rb
CHANGED
|
@@ -266,7 +266,7 @@ module StytchB2B
|
|
|
266
266
|
# locale::
|
|
267
267
|
# If the Member needs to complete an MFA step, and the Member has a phone number, this endpoint will pre-emptively send a one-time passcode (OTP) to the Member's phone number. The locale argument will be used to determine which language to use when sending the passcode.
|
|
268
268
|
#
|
|
269
|
-
# Parameter is
|
|
269
|
+
# Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
|
|
270
270
|
#
|
|
271
271
|
# Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
|
|
272
272
|
#
|
|
@@ -318,6 +318,9 @@ module StytchB2B
|
|
|
318
318
|
# member_device::
|
|
319
319
|
# 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.
|
|
320
320
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
321
|
+
# intermediate_session_token_expires_at::
|
|
322
|
+
# (no documentation yet)
|
|
323
|
+
# The type of this field is nilable +String+.
|
|
321
324
|
def exchange(
|
|
322
325
|
organization_id:,
|
|
323
326
|
session_token: nil,
|
|
@@ -346,8 +349,6 @@ module StytchB2B
|
|
|
346
349
|
#
|
|
347
350
|
# The Access Token must contain the `full_access` scope (only available to First Party clients) and must not be more than 5 minutes old. Access Tokens may only be exchanged a single time.
|
|
348
351
|
#
|
|
349
|
-
# The Member Session returned will be the same Member Session that was active in your application (the authorizing party) during the initial authorization flow.
|
|
350
|
-
#
|
|
351
352
|
# Because the Member previously completed MFA and satisfied all Organization authentication requirements at the time of the original Access Token issuance, this endpoint will never return an `intermediate_session_token` or require MFA.
|
|
352
353
|
#
|
|
353
354
|
# == Parameters:
|