stytch 11.0.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/lib/stytch/b2b_discovery.rb +6 -0
- data/lib/stytch/b2b_impersonation.rb +3 -0
- data/lib/stytch/b2b_magic_links.rb +6 -0
- data/lib/stytch/b2b_oauth.rb +6 -0
- data/lib/stytch/b2b_otp.rb +6 -0
- data/lib/stytch/b2b_passwords.rb +18 -0
- data/lib/stytch/b2b_sessions.rb +3 -0
- data/lib/stytch/b2b_sso.rb +3 -0
- data/lib/stytch/connected_apps.rb +12 -2
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 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/lib/stytch/b2b_discovery.rb
CHANGED
|
@@ -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:,
|
|
@@ -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
|
)
|
|
@@ -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,
|
|
@@ -502,6 +505,9 @@ module StytchB2B
|
|
|
502
505
|
# status_code::
|
|
503
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.
|
|
504
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+.
|
|
505
511
|
def authenticate(
|
|
506
512
|
discovery_magic_links_token:,
|
|
507
513
|
pkce_code_verifier: nil
|
data/lib/stytch/b2b_oauth.rb
CHANGED
|
@@ -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,
|
data/lib/stytch/b2b_otp.rb
CHANGED
|
@@ -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:,
|
|
@@ -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
|
@@ -341,6 +341,9 @@ module StytchB2B
|
|
|
341
341
|
# member_device::
|
|
342
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.
|
|
343
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+.
|
|
344
347
|
def authenticate(
|
|
345
348
|
organization_id:,
|
|
346
349
|
email_address:,
|
|
@@ -601,6 +604,9 @@ module StytchB2B
|
|
|
601
604
|
# member_device::
|
|
602
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.
|
|
603
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+.
|
|
604
610
|
def reset(
|
|
605
611
|
password_reset_token:,
|
|
606
612
|
password:,
|
|
@@ -775,6 +781,9 @@ module StytchB2B
|
|
|
775
781
|
# member_device::
|
|
776
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.
|
|
777
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+.
|
|
778
787
|
def reset(
|
|
779
788
|
organization_id:,
|
|
780
789
|
password:,
|
|
@@ -916,6 +925,9 @@ module StytchB2B
|
|
|
916
925
|
# member_device::
|
|
917
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.
|
|
918
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+.
|
|
919
931
|
def reset(
|
|
920
932
|
email_address:,
|
|
921
933
|
existing_password:,
|
|
@@ -998,6 +1010,9 @@ module StytchB2B
|
|
|
998
1010
|
# status_code::
|
|
999
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.
|
|
1000
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+.
|
|
1001
1016
|
def authenticate(
|
|
1002
1017
|
email_address:,
|
|
1003
1018
|
password:
|
|
@@ -1140,6 +1155,9 @@ module StytchB2B
|
|
|
1140
1155
|
# status_code::
|
|
1141
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.
|
|
1142
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+.
|
|
1143
1161
|
def reset(
|
|
1144
1162
|
password_reset_token:,
|
|
1145
1163
|
password:,
|
data/lib/stytch/b2b_sessions.rb
CHANGED
|
@@ -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,
|
data/lib/stytch/b2b_sso.rb
CHANGED
|
@@ -239,6 +239,9 @@ module StytchB2B
|
|
|
239
239
|
# member_device::
|
|
240
240
|
# 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.
|
|
241
241
|
# The type of this field is nilable +DeviceInfo+ (+object+).
|
|
242
|
+
# intermediate_session_token_expires_at::
|
|
243
|
+
# (no documentation yet)
|
|
244
|
+
# The type of this field is nilable +String+.
|
|
242
245
|
def authenticate(
|
|
243
246
|
sso_token:,
|
|
244
247
|
pkce_code_verifier: nil,
|
|
@@ -92,6 +92,9 @@ module Stytch
|
|
|
92
92
|
# bypass_consent_for_offline_access::
|
|
93
93
|
# Valid for first party clients only. If true, the client does not need to request explicit user consent for the `offline_access` scope.
|
|
94
94
|
# The type of this field is nilable +Boolean+.
|
|
95
|
+
# id_token_template_content::
|
|
96
|
+
# (no documentation yet)
|
|
97
|
+
# The type of this field is nilable +String+.
|
|
95
98
|
#
|
|
96
99
|
# == Returns:
|
|
97
100
|
# An object with the following fields:
|
|
@@ -115,7 +118,8 @@ module Stytch
|
|
|
115
118
|
access_token_template_content: nil,
|
|
116
119
|
post_logout_redirect_urls: nil,
|
|
117
120
|
logo_url: nil,
|
|
118
|
-
bypass_consent_for_offline_access: nil
|
|
121
|
+
bypass_consent_for_offline_access: nil,
|
|
122
|
+
id_token_template_content: nil
|
|
119
123
|
)
|
|
120
124
|
headers = {}
|
|
121
125
|
request = {}
|
|
@@ -129,6 +133,7 @@ module Stytch
|
|
|
129
133
|
request[:post_logout_redirect_urls] = post_logout_redirect_urls unless post_logout_redirect_urls.nil?
|
|
130
134
|
request[:logo_url] = logo_url unless logo_url.nil?
|
|
131
135
|
request[:bypass_consent_for_offline_access] = bypass_consent_for_offline_access unless bypass_consent_for_offline_access.nil?
|
|
136
|
+
request[:id_token_template_content] = id_token_template_content unless id_token_template_content.nil?
|
|
132
137
|
|
|
133
138
|
put_request("/v1/connected_apps/clients/#{client_id}", request, headers)
|
|
134
139
|
end
|
|
@@ -232,6 +237,9 @@ module Stytch
|
|
|
232
237
|
# bypass_consent_for_offline_access::
|
|
233
238
|
# Valid for first party clients only. If true, the client does not need to request explicit user consent for the `offline_access` scope.
|
|
234
239
|
# The type of this field is nilable +Boolean+.
|
|
240
|
+
# id_token_template_content::
|
|
241
|
+
# (no documentation yet)
|
|
242
|
+
# The type of this field is nilable +String+.
|
|
235
243
|
#
|
|
236
244
|
# == Returns:
|
|
237
245
|
# An object with the following fields:
|
|
@@ -255,7 +263,8 @@ module Stytch
|
|
|
255
263
|
access_token_template_content: nil,
|
|
256
264
|
post_logout_redirect_urls: nil,
|
|
257
265
|
logo_url: nil,
|
|
258
|
-
bypass_consent_for_offline_access: nil
|
|
266
|
+
bypass_consent_for_offline_access: nil,
|
|
267
|
+
id_token_template_content: nil
|
|
259
268
|
)
|
|
260
269
|
headers = {}
|
|
261
270
|
request = {
|
|
@@ -271,6 +280,7 @@ module Stytch
|
|
|
271
280
|
request[:post_logout_redirect_urls] = post_logout_redirect_urls unless post_logout_redirect_urls.nil?
|
|
272
281
|
request[:logo_url] = logo_url unless logo_url.nil?
|
|
273
282
|
request[:bypass_consent_for_offline_access] = bypass_consent_for_offline_access unless bypass_consent_for_offline_access.nil?
|
|
283
|
+
request[:id_token_template_content] = id_token_template_content unless id_token_template_content.nil?
|
|
274
284
|
|
|
275
285
|
post_request('/v1/connected_apps/clients', request, headers)
|
|
276
286
|
end
|
data/lib/stytch/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stytch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 11.
|
|
4
|
+
version: 11.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- stytch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|