stytch 10.14.0 → 10.15.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_sso.rb +5 -0
- data/lib/stytch/sessions.rb +15 -0
- 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: d254fb6ad00d8f972e73e2b222e08c488989bc0157eab95f95aa2d71a5aeb7b4
|
4
|
+
data.tar.gz: d41c6fdd5432b80b28c8ed6e1e2b56bcf6030c7c3495b048a152b06729fd235e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c580d9419a6c11dea7ebd4c6e63ae3c8da665f3bdf9a4984b8c5be435c85e98e8b72b15fee4620308c939dcce47ef90d84f71cc74dc35f659a265e08c25f3765
|
7
|
+
data.tar.gz: e726ae5ae7aed604ea5dabff68776c984bf67d3ce92d56959c887f3466b5c4c28fdee8710deed1f72913f991efa61ce70178d2009a0233498400577f3c516a6b
|
data/lib/stytch/b2b_sso.rb
CHANGED
@@ -642,6 +642,9 @@ module StytchB2B
|
|
642
642
|
# alternative_acs_url::
|
643
643
|
# An alternative URL to use for the `AssertionConsumerServiceURL` in SP initiated SAML AuthNRequests. This value can be used when you wish to migrate an existing SAML integration to Stytch with zero downtime. Note that you will be responsible for proxying requests sent to the Alternative ACS URL to Stytch. Read our [SSO migration guide](https://stytch.com/docs/b2b/guides/migrations/additional-migration-considerations) for more info.
|
644
644
|
# The type of this field is nilable +String+.
|
645
|
+
# idp_initiated_auth_disabled::
|
646
|
+
# Determines whether IDP initiated auth is allowed for a given SAML connection. Defaults to false (IDP Initiated Auth is enabled).
|
647
|
+
# The type of this field is nilable +Boolean+.
|
645
648
|
#
|
646
649
|
# == Returns:
|
647
650
|
# An object with the following fields:
|
@@ -672,6 +675,7 @@ module StytchB2B
|
|
672
675
|
signing_private_key: nil,
|
673
676
|
nameid_format: nil,
|
674
677
|
alternative_acs_url: nil,
|
678
|
+
idp_initiated_auth_disabled: nil,
|
675
679
|
method_options: nil
|
676
680
|
)
|
677
681
|
headers = {}
|
@@ -689,6 +693,7 @@ module StytchB2B
|
|
689
693
|
request[:signing_private_key] = signing_private_key unless signing_private_key.nil?
|
690
694
|
request[:nameid_format] = nameid_format unless nameid_format.nil?
|
691
695
|
request[:alternative_acs_url] = alternative_acs_url unless alternative_acs_url.nil?
|
696
|
+
request[:idp_initiated_auth_disabled] = idp_initiated_auth_disabled unless idp_initiated_auth_disabled.nil?
|
692
697
|
|
693
698
|
put_request("/v1/b2b/sso/saml/#{organization_id}/connections/#{connection_id}", request, headers)
|
694
699
|
end
|
data/lib/stytch/sessions.rb
CHANGED
@@ -220,6 +220,21 @@ module Stytch
|
|
220
220
|
post_request('/v1/sessions/migrate', request, headers)
|
221
221
|
end
|
222
222
|
|
223
|
+
def exchange_access_token(
|
224
|
+
access_token:,
|
225
|
+
session_duration_minutes: nil,
|
226
|
+
session_custom_claims: nil
|
227
|
+
)
|
228
|
+
headers = {}
|
229
|
+
request = {
|
230
|
+
access_token: access_token
|
231
|
+
}
|
232
|
+
request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
|
233
|
+
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
234
|
+
|
235
|
+
post_request('/v1/sessions/exchange_access_token', request, headers)
|
236
|
+
end
|
237
|
+
|
223
238
|
# Get the JSON Web Key Set (JWKS) for a project.
|
224
239
|
#
|
225
240
|
# JWKS are rotated every ~6 months. Upon rotation, new JWTs will be signed using the new key, and both keys will be returned by this endpoint for a period of 1 month.
|
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.15.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-04-
|
11
|
+
date: 2025-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|