stytch 10.10.0 → 10.11.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: f8d7857e384f341a5372ac87a4fc0c2959df0b3c0de8b1a3c0c283ed36381835
4
- data.tar.gz: 13b70de08926a3687926d251a4369f397b63c4f4b89987d60a730b5ad095ae8b
3
+ metadata.gz: 8d4abe063f2f4c62fd5abd31ecb68d5888cf73fd52ab3af5aa71f0ce5c6900dc
4
+ data.tar.gz: '0038442b44f8459d9b4df760e8e8b23fb882819aedcf3c740b5dbed3341fcf99'
5
5
  SHA512:
6
- metadata.gz: 4119956260b26f624e3ffd9097ad5c539e17edb9099912e3327ea827492aa101e0a727c131dc3cc36095a1f889a4f1d5d1ad36ebf0b9d6bac86f144ea0a5c0cb
7
- data.tar.gz: 9408a799a909bd73facc2faa280705a7f887d5c944f12fc13521978210d4eecd95191ce677eae7d264bf69584a53daaf896d8a2665ab248a5bf7e28ef5158918
6
+ metadata.gz: b61ec1f0149db0e4ac7b98f5dda2feb44ec0f5e72d853cf1def58d1639acb4b7198d81f1b1489e0f85868f49ffa9f968fda41c4038900ea6f0db7edd44142b5b
7
+ data.tar.gz: ad543bfbda93c6003a46363141cf4840d9efb0d486c7dad538fc84372a1024cf115805291936c9a92d286c2a72df06bf9e2e5087ba5ad1c5b0fbb5e176e99f5b
@@ -781,7 +781,7 @@ module StytchB2B
781
781
  # authentication factors with the affected SSO connection IDs will be revoked.
782
782
  # The type of this field is nilable +Boolean+.
783
783
  # default_mfa_method::
784
- # Sets whether the Member is enrolled in MFA. If true, the Member must complete an MFA step whenever they wish to log in to their Organization. If false, the Member only needs to complete an MFA step if the Organization's MFA policy is set to `REQUIRED_FOR_ALL`.
784
+ # The Member's default MFA method. This value is used to determine which secondary MFA method to use in the case of multiple methods registered for a Member. The current possible values are `sms_otp` and `totp`.
785
785
  #
786
786
  # If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.default-mfa-method` action on the `stytch.member` Resource. Alternatively, if the Member Session matches the Member associated with the `member_id` passed in the request, the authorization check will also allow a Member Session that has permission to perform the `update.settings.default-mfa-method` action on the `stytch.self` Resource.
787
787
  # The type of this field is nilable +String+.
@@ -90,7 +90,7 @@ module StytchB2B
90
90
 
91
91
  # Adds an existing password to a member's email that doesn't have a password yet. We support migrating members from passwords stored with bcrypt, scrypt, argon2, MD-5, SHA-1, and PBKDF2. This endpoint has a rate limit of 100 requests per second.
92
92
  #
93
- # The member's email will be marked as verified when you use this endpoint.
93
+ # The member's email will be marked as verified when you use this endpoint. If you are using **cross-organization passwords**, call this method separately for each `organization_id` associated with the given `email_address` to ensure the email is verified across all of their organizations.
94
94
  #
95
95
  # == Parameters:
96
96
  # email_address::
@@ -636,6 +636,12 @@ module StytchB2B
636
636
  # signing_private_key::
637
637
  # A PKCS1 format RSA private key used for signing SAML requests. Only PKCS1 format (starting with "-----BEGIN RSA PRIVATE KEY-----") is supported. When provided, Stytch will generate a new x509 certificate from this key and return it in the signing_certificates array.
638
638
  # The type of this field is nilable +String+.
639
+ # nameid_format::
640
+ # The NameID format the SAML Connection expects to use. Defaults to `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`.
641
+ # The type of this field is nilable +String+.
642
+ # alternative_acs_url::
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
+ # The type of this field is nilable +String+.
639
645
  #
640
646
  # == Returns:
641
647
  # An object with the following fields:
@@ -664,6 +670,8 @@ module StytchB2B
664
670
  alternative_audience_uri: nil,
665
671
  identity_provider: nil,
666
672
  signing_private_key: nil,
673
+ nameid_format: nil,
674
+ alternative_acs_url: nil,
667
675
  method_options: nil
668
676
  )
669
677
  headers = {}
@@ -679,6 +687,8 @@ module StytchB2B
679
687
  request[:alternative_audience_uri] = alternative_audience_uri unless alternative_audience_uri.nil?
680
688
  request[:identity_provider] = identity_provider unless identity_provider.nil?
681
689
  request[:signing_private_key] = signing_private_key unless signing_private_key.nil?
690
+ request[:nameid_format] = nameid_format unless nameid_format.nil?
691
+ request[:alternative_acs_url] = alternative_acs_url unless alternative_acs_url.nil?
682
692
 
683
693
  put_request("/v1/b2b/sso/saml/#{organization_id}/connections/#{connection_id}", request, headers)
684
694
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '10.10.0'
4
+ VERSION = '10.11.0'
5
5
  end
@@ -335,6 +335,24 @@ module Stytch
335
335
  put_request("/v1/webauthn/#{webauthn_registration_id}", request, headers)
336
336
  end
337
337
 
338
+ # List the public key credentials of the WebAuthn Registrations or Passkeys registered to a specific User.
339
+ #
340
+ # == Parameters:
341
+ # user_id::
342
+ # The `user_id` of an active user the Passkey or WebAuthn registration should be tied to.
343
+ # The type of this field is +String+.
344
+ # domain::
345
+ # The domain for Passkeys or WebAuthn. Defaults to `window.location.hostname`.
346
+ # The type of this field is +String+.
347
+ #
348
+ # == Returns:
349
+ # An object with the following fields:
350
+ # credentials::
351
+ # A list of WebAuthn credential objects.
352
+ # The type of this field is list of +WebAuthnCredential+ (+object+).
353
+ # status_code::
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
+ # The type of this field is +Integer+.
338
356
  def credentials(
339
357
  user_id:,
340
358
  domain:
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.10.0
4
+ version: 10.11.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-03-21 00:00:00.000000000 Z
11
+ date: 2025-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday