stytch 10.38.0 → 10.39.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 +5 -0
- data/lib/stytch/sessions.rb +2 -1
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5b6536b2413740806ccad0a1bd83714be80a37e47a332f97eaf4bbf8896bc1f
|
4
|
+
data.tar.gz: 7432afc39e2207fb1020d90c710d536d69088033a9a892e3e1bf9a5385310a2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 425223ac3af73717f5d779b005091e159f976f5bc4b7d66d5f840efde714163e9898357536b3e7a00bedeb20e1c579ca04df9ee7e1969e90d7f8f3400763f34a
|
7
|
+
data.tar.gz: 7bd7d8d1e07fe67a19be06d536ec66ee6fb2a2110989e5db2d0ee5cc86a75a154cbadfa9ec8d71701f5c97df37b241ba7707033f6988aeaf5898c0d985739f22
|
data/lib/stytch/b2b_discovery.rb
CHANGED
@@ -196,6 +196,9 @@ module StytchB2B
|
|
196
196
|
# organization_slug::
|
197
197
|
# The unique URL slug of the Organization. A minimum of two characters is required. The slug only accepts alphanumeric characters and the following reserved characters: `-` `.` `_` `~`. If the slug is not specified, a default slug will be created based on the email used to initiate the discovery flow. If the email domain is a common email provider such as gmail.com, or if the email is a .edu email, the organization slug will be generated based on the name portion of the email. Otherwise, the organization slug will be generated based on the email domain.
|
198
198
|
# The type of this field is nilable +String+.
|
199
|
+
# organization_external_id::
|
200
|
+
# 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.
|
201
|
+
# The type of this field is nilable +String+.
|
199
202
|
# organization_logo_url::
|
200
203
|
# The image URL of the Organization logo.
|
201
204
|
# The type of this field is nilable +String+.
|
@@ -364,6 +367,7 @@ module StytchB2B
|
|
364
367
|
session_custom_claims: nil,
|
365
368
|
organization_name: nil,
|
366
369
|
organization_slug: nil,
|
370
|
+
organization_external_id: nil,
|
367
371
|
organization_logo_url: nil,
|
368
372
|
trusted_metadata: nil,
|
369
373
|
sso_jit_provisioning: nil,
|
@@ -392,6 +396,7 @@ module StytchB2B
|
|
392
396
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
393
397
|
request[:organization_name] = organization_name unless organization_name.nil?
|
394
398
|
request[:organization_slug] = organization_slug unless organization_slug.nil?
|
399
|
+
request[:organization_external_id] = organization_external_id unless organization_external_id.nil?
|
395
400
|
request[:organization_logo_url] = organization_logo_url unless organization_logo_url.nil?
|
396
401
|
request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
|
397
402
|
request[:sso_jit_provisioning] = sso_jit_provisioning unless sso_jit_provisioning.nil?
|
data/lib/stytch/sessions.rb
CHANGED
@@ -549,7 +549,8 @@ module Stytch
|
|
549
549
|
'expires_at' => expires_at,
|
550
550
|
'attributes' => jwt[stytch_claim]['attributes'],
|
551
551
|
'authentication_factors' => jwt[stytch_claim]['authentication_factors'],
|
552
|
-
'custom_claims' => custom_claims
|
552
|
+
'custom_claims' => custom_claims,
|
553
|
+
'roles' => jwt[stytch_claim]['roles']
|
553
554
|
}
|
554
555
|
}
|
555
556
|
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: 10.
|
4
|
+
version: 10.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-10-
|
11
|
+
date: 2025-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|