stytch 9.6.0 → 9.7.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: fa60ebc5e53fd75729943da5cc43d5162c19fb16a4884ad9843494cc1a761c32
4
- data.tar.gz: '021092539c3458fba96ac1601fb45ef5a7296787e1efd6d9b94f539d5a2704f0'
3
+ metadata.gz: 2234d80bb5d7d5fa35a2f270fb6edf74d42e8f23a75751f5eba3942cf6fa3b3a
4
+ data.tar.gz: 90df59d4eac45d2ffa9b4156c040d30dc0ea4ba852db24be010a0247825ef772
5
5
  SHA512:
6
- metadata.gz: 43ed753c739adc360a17d4f45bd2659dd0e0dc07b5758ed37d1270309d8be255864de0a704bafd547357d9615159b04c44e0bd9a6fd2e0fb7b397c755161110b
7
- data.tar.gz: 1b3367f713445effab13b21baae336bff32b207a7438f68ecfcdac518edab729151b86e72728efc0869e30b3a0dec81c9243215449767311c333eb5270c48c53
6
+ metadata.gz: 2cdcc7b6d7e4aacdf2f912f9fd253bb81be8f53e262a7d8ddd380f8c83610895c29c2ecbd87870b8edff04ca7d5f0d047c86215a74d78afec0d4372659f3c4e5
7
+ data.tar.gz: 0b321be206d3cb41a31806b9893dfb67405a098f42b950fb456f55d16ae0a12d7c73455391cafb2f3177aef87f4142e9be3293c963b0f5660fd7cbab3c6f8a2c
@@ -1131,6 +1131,19 @@ module StytchB2B
1131
1131
  get_request(request, headers)
1132
1132
  end
1133
1133
 
1134
+ def oidc_providers(
1135
+ organization_id:,
1136
+ member_id:,
1137
+ include_refresh_token: nil
1138
+ )
1139
+ headers = {}
1140
+ query_params = {
1141
+ include_refresh_token: include_refresh_token
1142
+ }
1143
+ request = request_with_query_params("/v1/b2b/organizations/#{organization_id}/members/#{member_id}/oidc_providers", query_params)
1144
+ get_request(request, headers)
1145
+ end
1146
+
1134
1147
  # Unlinks a retired email address from a specified by their `organization_id` and `member_id`. The email address
1135
1148
  # to be retired can be identified in the request body by either its `email_id`, its `email_address`, or both. If using
1136
1149
  # both identifiers they must refer to the same email.
@@ -395,6 +395,12 @@ module StytchB2B
395
395
  # identity_provider::
396
396
  # The identity provider of this connection. For OIDC, the accepted values are `generic`, `okta`, and `microsoft-entra`. For SAML, the accepted values are `generic`, `okta`, `microsoft-entra`, and `google-workspace`.
397
397
  # The type of this field is nilable +UpdateConnectionRequestIdentityProvider+ (string enum).
398
+ # custom_scopes::
399
+ # 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.
400
+ # The type of this field is nilable +String+.
401
+ # attribute_mapping::
402
+ # An object that represents the attributes used to identify a Member. This object will map the IdP-defined User attributes to Stytch-specific values, which will appear on the member's Trusted Metadata.
403
+ # The type of this field is nilable +object+.
398
404
  #
399
405
  # == Returns:
400
406
  # An object with the following fields:
@@ -425,6 +431,8 @@ module StytchB2B
425
431
  userinfo_url: nil,
426
432
  jwks_url: nil,
427
433
  identity_provider: nil,
434
+ custom_scopes: nil,
435
+ attribute_mapping: nil,
428
436
  method_options: nil
429
437
  )
430
438
  headers = {}
@@ -439,6 +447,8 @@ module StytchB2B
439
447
  request[:userinfo_url] = userinfo_url unless userinfo_url.nil?
440
448
  request[:jwks_url] = jwks_url unless jwks_url.nil?
441
449
  request[:identity_provider] = identity_provider unless identity_provider.nil?
450
+ request[:custom_scopes] = custom_scopes unless custom_scopes.nil?
451
+ request[:attribute_mapping] = attribute_mapping unless attribute_mapping.nil?
442
452
 
443
453
  put_request("/v1/b2b/sso/oidc/#{organization_id}/connections/#{connection_id}", request, headers)
444
454
  end
@@ -611,7 +621,7 @@ module StytchB2B
611
621
  # `attribute_mapping`. Make sure that your IdP is configured to correctly send the group information.
612
622
  # The type of this field is nilable list of +SAMLGroupImplicitRoleAssignment+.
613
623
  # alternative_audience_uri::
614
- # 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.
624
+ # 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.
615
625
  # The type of this field is nilable +String+.
616
626
  # identity_provider::
617
627
  # The identity provider of this connection. For OIDC, the accepted values are `generic`, `okta`, and `microsoft-entra`. For SAML, the accepted values are `generic`, `okta`, `microsoft-entra`, and `google-workspace`.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '9.6.0'
4
+ VERSION = '9.7.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: 9.6.0
4
+ version: 9.7.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-09-26 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday