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 +4 -4
- data/lib/stytch/b2b_organizations.rb +1 -1
- data/lib/stytch/b2b_passwords.rb +1 -1
- data/lib/stytch/b2b_sso.rb +10 -0
- data/lib/stytch/version.rb +1 -1
- data/lib/stytch/webauthn.rb +18 -0
- 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: 8d4abe063f2f4c62fd5abd31ecb68d5888cf73fd52ab3af5aa71f0ce5c6900dc
|
4
|
+
data.tar.gz: '0038442b44f8459d9b4df760e8e8b23fb882819aedcf3c740b5dbed3341fcf99'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
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+.
|
data/lib/stytch/b2b_passwords.rb
CHANGED
@@ -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::
|
data/lib/stytch/b2b_sso.rb
CHANGED
@@ -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
|
data/lib/stytch/version.rb
CHANGED
data/lib/stytch/webauthn.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2025-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|