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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09692cd9afc6b9103557dc91a5d3021e6fc5e7b07c0c626a753fc7c6585a4239'
4
- data.tar.gz: 07f93206b46b79e8c070c96dd2cc1a0222dbf65509c635a995c5c58b7bb96e23
3
+ metadata.gz: d254fb6ad00d8f972e73e2b222e08c488989bc0157eab95f95aa2d71a5aeb7b4
4
+ data.tar.gz: d41c6fdd5432b80b28c8ed6e1e2b56bcf6030c7c3495b048a152b06729fd235e
5
5
  SHA512:
6
- metadata.gz: 3119b2371f1740ab28270e9c712b40f8dd07747130365497666a399594b8d4f1c8d46d48fc4e884210d0a830e76bbb1b5b60e39fc7167bd436f29aa21d772ddd
7
- data.tar.gz: e69b459e676cd6586a3e53a34c5eccbbac8590c934004a24a5c29daa9ebf3a39200f6b7ee37c63909529814f6fc452b4a82c53ecdd147694706d7ac3f059a9b9
6
+ metadata.gz: c580d9419a6c11dea7ebd4c6e63ae3c8da665f3bdf9a4984b8c5be435c85e98e8b72b15fee4620308c939dcce47ef90d84f71cc74dc35f659a265e08c25f3765
7
+ data.tar.gz: e726ae5ae7aed604ea5dabff68776c984bf67d3ce92d56959c887f3466b5c4c28fdee8710deed1f72913f991efa61ce70178d2009a0233498400577f3c516a6b
@@ -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
@@ -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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '10.14.0'
4
+ VERSION = '10.15.0'
5
5
  end
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.14.0
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-14 00:00:00.000000000 Z
11
+ date: 2025-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday