2828)
2929from ...types .organizations .sso_configuration import SSOConfiguration
3030from ...types .organizations .sso_configuration_state import SSOConfigurationState
31+ from ...types .organizations .additional_scopes_update_param import AdditionalScopesUpdateParam
3132from ...types .organizations .sso_configuration_create_response import SSOConfigurationCreateResponse
3233from ...types .organizations .sso_configuration_retrieve_response import SSOConfigurationRetrieveResponse
3334
@@ -61,6 +62,7 @@ def create(
6162 client_secret : str ,
6263 issuer_url : str ,
6364 organization_id : str ,
65+ additional_scopes : SequenceNotStr [str ] | Omit = omit ,
6466 display_name : str | Omit = omit ,
6567 email_domain : Optional [str ] | Omit = omit ,
6668 email_domains : SequenceNotStr [str ] | Omit = omit ,
@@ -114,6 +116,10 @@ def create(
114116
115117 issuer_url: issuer_url is the URL of the IdP issuer
116118
119+ additional_scopes: additional_scopes are extra OIDC scopes to request from the identity provider
120+ during sign-in. These are appended to the default scopes (openid, email,
121+ profile).
122+
117123 email_domain: email_domain is the domain that is allowed to sign in to the organization
118124
119125 extra_headers: Send extra headers
@@ -132,6 +138,7 @@ def create(
132138 "client_secret" : client_secret ,
133139 "issuer_url" : issuer_url ,
134140 "organization_id" : organization_id ,
141+ "additional_scopes" : additional_scopes ,
135142 "display_name" : display_name ,
136143 "email_domain" : email_domain ,
137144 "email_domains" : email_domains ,
@@ -201,6 +208,7 @@ def update(
201208 self ,
202209 * ,
203210 sso_configuration_id : str ,
211+ additional_scopes : Optional [AdditionalScopesUpdateParam ] | Omit = omit ,
204212 claims : Dict [str , str ] | Omit = omit ,
205213 client_id : Optional [str ] | Omit = omit ,
206214 client_secret : Optional [str ] | Omit = omit ,
@@ -251,6 +259,10 @@ def update(
251259 Args:
252260 sso_configuration_id: sso_configuration_id is the ID of the SSO configuration to update
253261
262+ additional_scopes: additional_scopes replaces the configured OIDC scopes when present. When absent
263+ (nil), scopes are left unchanged. When present with an empty scopes list, all
264+ additional scopes are cleared.
265+
254266 claims: claims are key/value pairs that defines a mapping of claims issued by the IdP.
255267
256268 client_id: client_id is the client ID of the SSO provider
@@ -274,6 +286,7 @@ def update(
274286 body = maybe_transform (
275287 {
276288 "sso_configuration_id" : sso_configuration_id ,
289+ "additional_scopes" : additional_scopes ,
277290 "claims" : claims ,
278291 "client_id" : client_id ,
279292 "client_secret" : client_secret ,
@@ -455,6 +468,7 @@ async def create(
455468 client_secret : str ,
456469 issuer_url : str ,
457470 organization_id : str ,
471+ additional_scopes : SequenceNotStr [str ] | Omit = omit ,
458472 display_name : str | Omit = omit ,
459473 email_domain : Optional [str ] | Omit = omit ,
460474 email_domains : SequenceNotStr [str ] | Omit = omit ,
@@ -508,6 +522,10 @@ async def create(
508522
509523 issuer_url: issuer_url is the URL of the IdP issuer
510524
525+ additional_scopes: additional_scopes are extra OIDC scopes to request from the identity provider
526+ during sign-in. These are appended to the default scopes (openid, email,
527+ profile).
528+
511529 email_domain: email_domain is the domain that is allowed to sign in to the organization
512530
513531 extra_headers: Send extra headers
@@ -526,6 +544,7 @@ async def create(
526544 "client_secret" : client_secret ,
527545 "issuer_url" : issuer_url ,
528546 "organization_id" : organization_id ,
547+ "additional_scopes" : additional_scopes ,
529548 "display_name" : display_name ,
530549 "email_domain" : email_domain ,
531550 "email_domains" : email_domains ,
@@ -595,6 +614,7 @@ async def update(
595614 self ,
596615 * ,
597616 sso_configuration_id : str ,
617+ additional_scopes : Optional [AdditionalScopesUpdateParam ] | Omit = omit ,
598618 claims : Dict [str , str ] | Omit = omit ,
599619 client_id : Optional [str ] | Omit = omit ,
600620 client_secret : Optional [str ] | Omit = omit ,
@@ -645,6 +665,10 @@ async def update(
645665 Args:
646666 sso_configuration_id: sso_configuration_id is the ID of the SSO configuration to update
647667
668+ additional_scopes: additional_scopes replaces the configured OIDC scopes when present. When absent
669+ (nil), scopes are left unchanged. When present with an empty scopes list, all
670+ additional scopes are cleared.
671+
648672 claims: claims are key/value pairs that defines a mapping of claims issued by the IdP.
649673
650674 client_id: client_id is the client ID of the SSO provider
@@ -668,6 +692,7 @@ async def update(
668692 body = await async_maybe_transform (
669693 {
670694 "sso_configuration_id" : sso_configuration_id ,
695+ "additional_scopes" : additional_scopes ,
671696 "claims" : claims ,
672697 "client_id" : client_id ,
673698 "client_secret" : client_secret ,
0 commit comments