stytch 9.9.0 → 9.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stytch/b2b_discovery.rb +11 -11
- data/lib/stytch/b2b_sso.rb +12 -4
- data/lib/stytch/otps.rb +2 -2
- data/lib/stytch/users.rb +9 -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: 4023ae6cace52f9372e689380961ea0720c243425f8ed54b17f56dd24cb5395a
|
4
|
+
data.tar.gz: 0bd37c0c1b7d57c50ea7150aee027b88dbc59bab2ceafc4b43253b8d7db837d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962257a3f4012c7ff59140a8d9adb0b0bdff54a3038b9cf5e9410ec24bfc3361daae2cf0100f21cf3c7b4c7f9bf4ac312082fda641a4f089a2931e75beea8677
|
7
|
+
data.tar.gz: d2f9fb55899bb104dcd12e34b1c662362490d2c2175607b61ed7a5505051b844df61aaea422bd7fbb5e4ca2aa43b3e436056ab8f4d0affa16016de81ec88a105
|
data/lib/stytch/b2b_discovery.rb
CHANGED
@@ -163,12 +163,6 @@ module StytchB2B
|
|
163
163
|
# intermediate_session_token::
|
164
164
|
# The Intermediate Session Token. This token does not necessarily belong to a specific instance of a Member, but represents a bag of factors that may be converted to a member session. The token can be used with the [OTP SMS Authenticate endpoint](https://stytch.com/docs/b2b/api/authenticate-otp-sms), [TOTP Authenticate endpoint](https://stytch.com/docs/b2b/api/authenticate-totp), or [Recovery Codes Recover endpoint](https://stytch.com/docs/b2b/api/recovery-codes-recover) to complete an MFA flow and log in to the Organization. It can also be used with the [Exchange Intermediate Session endpoint](https://stytch.com/docs/b2b/api/exchange-intermediate-session) to join a specific Organization that allows the factors represented by the intermediate session token; or the [Create Organization via Discovery endpoint](https://stytch.com/docs/b2b/api/create-organization-via-discovery) to create a new Organization and Member.
|
165
165
|
# The type of this field is +String+.
|
166
|
-
# organization_name::
|
167
|
-
# The name of the Organization. If the name is not specified, a default name 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 name will be generated based on the name portion of the email. Otherwise, the organization name will be generated based on the email domain.
|
168
|
-
# The type of this field is +String+.
|
169
|
-
# organization_slug::
|
170
|
-
# 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.
|
171
|
-
# The type of this field is +String+.
|
172
166
|
# session_duration_minutes::
|
173
167
|
# Set the session lifetime to be this many minutes from now. This will start a new session if one doesn't already exist,
|
174
168
|
# returning both an opaque `session_token` and `session_jwt` for this session. Remember that the `session_jwt` will have a fixed lifetime of
|
@@ -187,6 +181,12 @@ module StytchB2B
|
|
187
181
|
# delete a key, supply a null value. Custom claims made with reserved claims (`iss`, `sub`, `aud`, `exp`, `nbf`, `iat`, `jti`) will be ignored.
|
188
182
|
# Total custom claims size cannot exceed four kilobytes.
|
189
183
|
# The type of this field is nilable +object+.
|
184
|
+
# organization_name::
|
185
|
+
# The name of the Organization. If the name is not specified, a default name 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 name will be generated based on the name portion of the email. Otherwise, the organization name will be generated based on the email domain.
|
186
|
+
# The type of this field is nilable +String+.
|
187
|
+
# organization_slug::
|
188
|
+
# 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.
|
189
|
+
# The type of this field is nilable +String+.
|
190
190
|
# organization_logo_url::
|
191
191
|
# The image URL of the Organization logo.
|
192
192
|
# The type of this field is nilable +String+.
|
@@ -319,10 +319,10 @@ module StytchB2B
|
|
319
319
|
# The type of this field is nilable +PrimaryRequired+ (+object+).
|
320
320
|
def create(
|
321
321
|
intermediate_session_token:,
|
322
|
-
organization_name:,
|
323
|
-
organization_slug:,
|
324
322
|
session_duration_minutes: nil,
|
325
323
|
session_custom_claims: nil,
|
324
|
+
organization_name: nil,
|
325
|
+
organization_slug: nil,
|
326
326
|
organization_logo_url: nil,
|
327
327
|
trusted_metadata: nil,
|
328
328
|
sso_jit_provisioning: nil,
|
@@ -340,12 +340,12 @@ module StytchB2B
|
|
340
340
|
)
|
341
341
|
headers = {}
|
342
342
|
request = {
|
343
|
-
intermediate_session_token: intermediate_session_token
|
344
|
-
organization_name: organization_name,
|
345
|
-
organization_slug: organization_slug
|
343
|
+
intermediate_session_token: intermediate_session_token
|
346
344
|
}
|
347
345
|
request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
|
348
346
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
347
|
+
request[:organization_name] = organization_name unless organization_name.nil?
|
348
|
+
request[:organization_slug] = organization_slug unless organization_slug.nil?
|
349
349
|
request[:organization_logo_url] = organization_logo_url unless organization_logo_url.nil?
|
350
350
|
request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
|
351
351
|
request[:sso_jit_provisioning] = sso_jit_provisioning unless sso_jit_provisioning.nil?
|
data/lib/stytch/b2b_sso.rb
CHANGED
@@ -311,7 +311,9 @@ module StytchB2B
|
|
311
311
|
# A human-readable display name for the connection.
|
312
312
|
# The type of this field is nilable +String+.
|
313
313
|
# identity_provider::
|
314
|
-
#
|
314
|
+
# Name of the IdP. Enum with possible values: `classlink`, `cyberark`, `duo`, `google-workspace`, `jumpcloud`, `keycloak`, `miniorange`, `microsoft-entra`, `okta`, `onelogin`, `pingfederate`, `rippling`, `salesforce`, `shibboleth`, or `generic`.
|
315
|
+
#
|
316
|
+
# Specifying a known provider allows Stytch to handle any provider-specific logic.
|
315
317
|
# The type of this field is nilable +CreateConnectionRequestIdentityProvider+ (string enum).
|
316
318
|
#
|
317
319
|
# == Returns:
|
@@ -394,7 +396,9 @@ module StytchB2B
|
|
394
396
|
# The location of the IdP's JSON Web Key Set, used to verify credentials issued by the IdP. This will be provided by the IdP.
|
395
397
|
# The type of this field is nilable +String+.
|
396
398
|
# identity_provider::
|
397
|
-
#
|
399
|
+
# Name of the IdP. Enum with possible values: `classlink`, `cyberark`, `duo`, `google-workspace`, `jumpcloud`, `keycloak`, `miniorange`, `microsoft-entra`, `okta`, `onelogin`, `pingfederate`, `rippling`, `salesforce`, `shibboleth`, or `generic`.
|
400
|
+
#
|
401
|
+
# Specifying a known provider allows Stytch to handle any provider-specific logic.
|
398
402
|
# The type of this field is nilable +UpdateConnectionRequestIdentityProvider+ (string enum).
|
399
403
|
# custom_scopes::
|
400
404
|
# Include a space-separated list of custom scopes that you'd like to include. Note that this list must be URL encoded, e.g. the spaces must be expressed as %20.
|
@@ -548,7 +552,9 @@ module StytchB2B
|
|
548
552
|
# A human-readable display name for the connection.
|
549
553
|
# The type of this field is nilable +String+.
|
550
554
|
# identity_provider::
|
551
|
-
#
|
555
|
+
# Name of the IdP. Enum with possible values: `classlink`, `cyberark`, `duo`, `google-workspace`, `jumpcloud`, `keycloak`, `miniorange`, `microsoft-entra`, `okta`, `onelogin`, `pingfederate`, `rippling`, `salesforce`, `shibboleth`, or `generic`.
|
556
|
+
#
|
557
|
+
# Specifying a known provider allows Stytch to handle any provider-specific logic.
|
552
558
|
# The type of this field is nilable +CreateConnectionRequestIdentityProvider+ (string enum).
|
553
559
|
#
|
554
560
|
# == Returns:
|
@@ -624,7 +630,9 @@ module StytchB2B
|
|
624
630
|
# An alternative URL to use for the Audience Restriction. This value can be used when you wish to migrate an existing SAML integration to Stytch with zero downtime. Read our [SSO migration guide](https://stytch.com/docs/b2b/guides/migrations/additional-migration-considerations) for more info.
|
625
631
|
# The type of this field is nilable +String+.
|
626
632
|
# identity_provider::
|
627
|
-
#
|
633
|
+
# Name of the IdP. Enum with possible values: `classlink`, `cyberark`, `duo`, `google-workspace`, `jumpcloud`, `keycloak`, `miniorange`, `microsoft-entra`, `okta`, `onelogin`, `pingfederate`, `rippling`, `salesforce`, `shibboleth`, or `generic`.
|
634
|
+
#
|
635
|
+
# Specifying a known provider allows Stytch to handle any provider-specific logic.
|
628
636
|
# The type of this field is nilable +UpdateConnectionRequestIdentityProvider+ (string enum).
|
629
637
|
#
|
630
638
|
# == Returns:
|
data/lib/stytch/otps.rb
CHANGED
@@ -485,10 +485,10 @@ module Stytch
|
|
485
485
|
# The `session_jwt` associated with a User's existing Session.
|
486
486
|
# The type of this field is nilable +String+.
|
487
487
|
# login_template_id::
|
488
|
-
# Use a custom template for login emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for
|
488
|
+
# Use a custom template for login emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for OTP - Login.
|
489
489
|
# The type of this field is nilable +String+.
|
490
490
|
# signup_template_id::
|
491
|
-
# Use a custom template for sign-up emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for
|
491
|
+
# Use a custom template for sign-up emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for OTP - Sign-up.
|
492
492
|
# The type of this field is nilable +String+.
|
493
493
|
#
|
494
494
|
# == Returns:
|
data/lib/stytch/users.rb
CHANGED
@@ -156,7 +156,15 @@ module Stytch
|
|
156
156
|
get_request(request, headers)
|
157
157
|
end
|
158
158
|
|
159
|
-
# Search for Users within your Stytch Project.
|
159
|
+
# Search for Users within your Stytch Project.
|
160
|
+
#
|
161
|
+
# Use the `query` object to filter by different fields. See the `query.operands.filter_value` documentation below for a list of available filters.
|
162
|
+
#
|
163
|
+
# ### Export all User data
|
164
|
+
#
|
165
|
+
# Submit an empty `query` in your Search Users request to return all of your Stytch Project's Users.
|
166
|
+
#
|
167
|
+
# [This Github repository](https://github.com/stytchauth/stytch-node-export-users) contains a utility that leverages the Search Users endpoint to export all of your User data to a CSV or JSON file.
|
160
168
|
#
|
161
169
|
# == Parameters:
|
162
170
|
# cursor::
|
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: 9.
|
4
|
+
version: 9.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|