From 5152162b2ae023dc364b9c6e0f985d2b91079702 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 05:42:41 +0000 Subject: [PATCH 1/2] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.26.0 --- src/auth0/management/core/client_wrapper.py | 16 ---------------- .../management/types/client_oidc_support.py | 19 +++++++++++++++---- .../types/client_oidc_support_patch.py | 19 +++++++++++++++---- .../types/client_oidc_support_post.py | 19 +++++++++++++++---- ...ofile_client_configuration_oidc_support.py | 2 +- ...onfiguration_oidc_support_default_value.py | 8 ++++---- ...onnection_passkey_authentication_method.py | 6 ++++++ .../management/types/csp_policy_reporting.py | 2 +- .../types/screen_group_name_enum.py | 1 + 9 files changed, 58 insertions(+), 34 deletions(-) diff --git a/src/auth0/management/core/client_wrapper.py b/src/auth0/management/core/client_wrapper.py index fd991f52..abce2c81 100644 --- a/src/auth0/management/core/client_wrapper.py +++ b/src/auth0/management/core/client_wrapper.py @@ -1,11 +1,6 @@ # This file was auto-generated by Fern from our API Definition. -# Modified by Auth0 to use Auth0 telemetry format with dynamic versioning -import base64 -import platform -import sys import typing -from json import dumps import httpx from .http_client import AsyncHttpClient, HttpClient @@ -35,18 +30,7 @@ def __init__( self._logging = logging def get_headers(self) -> typing.Dict[str, str]: - py_version = platform.python_version() - version = sys.modules["auth0"].__version__ - - auth0_client = dumps({ - "name": "auth0-python", - "version": version, - "env": {"python": py_version} - }).encode("utf-8") - headers: typing.Dict[str, str] = { - "User-Agent": f"Python/{py_version}", - "Auth0-Client": base64.b64encode(auth0_client).decode(), **(self.get_custom_headers() or {}), } headers["Authorization"] = f"Bearer {self._get_token()}" diff --git a/src/auth0/management/types/client_oidc_support.py b/src/auth0/management/types/client_oidc_support.py index 5a0009a4..53cb2156 100644 --- a/src/auth0/management/types/client_oidc_support.py +++ b/src/auth0/management/types/client_oidc_support.py @@ -9,12 +9,23 @@ class ClientOidcSupport(UniversalBaseModel): """ - OIDC support configuration for this client. + Controls whether the client can receive ID tokens and use the UserInfo endpoint, and which user profile information it can request through OIDC scopes. """ - is_allowed: typing.Optional[bool] = None - allow_all_scopes: typing.Optional[bool] = None - allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = None + is_allowed: typing.Optional[bool] = pydantic.Field(default=None) + """ + Allows the client to use OIDC, including receiving ID tokens and calling the UserInfo endpoint. + """ + + allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) + """ + Allows the client to request all supported OIDC scopes. Mutually exclusive with allowed_scopes. + """ + + allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = pydantic.Field(default=None) + """ + OIDC scopes the client may request (`profile`, `email`, `address`, and `phone`), which determine the user profile information it can access. Mutually exclusive with allow_all_scopes. + """ if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/auth0/management/types/client_oidc_support_patch.py b/src/auth0/management/types/client_oidc_support_patch.py index 88d9bd69..12302a1d 100644 --- a/src/auth0/management/types/client_oidc_support_patch.py +++ b/src/auth0/management/types/client_oidc_support_patch.py @@ -9,12 +9,23 @@ class ClientOidcSupportPatch(UniversalBaseModel): """ - OIDC support configuration for a client. Replaces the stored object entirely; send null to unset it. + Controls whether the client can receive ID tokens and use the UserInfo endpoint, and which user profile information it can request through OIDC scopes. """ - is_allowed: bool - allow_all_scopes: typing.Optional[bool] = None - allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = None + is_allowed: bool = pydantic.Field() + """ + Allows the client to use OIDC, including receiving ID tokens and calling the UserInfo endpoint. + """ + + allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) + """ + Allows the client to request all supported OIDC scopes. Mutually exclusive with allowed_scopes. + """ + + allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = pydantic.Field(default=None) + """ + OIDC scopes the client may request (`profile`, `email`, `address`, and `phone`), which determine the user profile information it can access. Mutually exclusive with allow_all_scopes. + """ if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/auth0/management/types/client_oidc_support_post.py b/src/auth0/management/types/client_oidc_support_post.py index 9ae15738..a58413af 100644 --- a/src/auth0/management/types/client_oidc_support_post.py +++ b/src/auth0/management/types/client_oidc_support_post.py @@ -9,12 +9,23 @@ class ClientOidcSupportPost(UniversalBaseModel): """ - OIDC support configuration for a client. Controls whether OIDC flows are allowed and which scopes the client may request. + Controls whether the client can receive ID tokens and use the UserInfo endpoint, and which user profile information it can request through OIDC scopes. """ - is_allowed: bool - allow_all_scopes: typing.Optional[bool] = None - allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = None + is_allowed: bool = pydantic.Field() + """ + Allows the client to use OIDC, including receiving ID tokens and calling the UserInfo endpoint. + """ + + allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) + """ + Allows the client to request all supported OIDC scopes. Mutually exclusive with allowed_scopes. + """ + + allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = pydantic.Field(default=None) + """ + OIDC scopes the client may request (`profile`, `email`, `address`, and `phone`), which determine the user profile information it can access. Mutually exclusive with allow_all_scopes. + """ if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/auth0/management/types/client_profile_client_configuration_oidc_support.py b/src/auth0/management/types/client_profile_client_configuration_oidc_support.py index c34c84f5..a53550cd 100644 --- a/src/auth0/management/types/client_profile_client_configuration_oidc_support.py +++ b/src/auth0/management/types/client_profile_client_configuration_oidc_support.py @@ -11,7 +11,7 @@ class ClientProfileClientConfigurationOidcSupport(UniversalBaseModel): """ - Default OIDC support applied to matched clients. + Default OIDC support configuration applied to matched clients. """ default_value: ClientProfileClientConfigurationOidcSupportDefaultValue diff --git a/src/auth0/management/types/client_profile_client_configuration_oidc_support_default_value.py b/src/auth0/management/types/client_profile_client_configuration_oidc_support_default_value.py index 6fae76dc..a6ae8c25 100644 --- a/src/auth0/management/types/client_profile_client_configuration_oidc_support_default_value.py +++ b/src/auth0/management/types/client_profile_client_configuration_oidc_support_default_value.py @@ -11,24 +11,24 @@ class ClientProfileClientConfigurationOidcSupportDefaultValue(UniversalBaseModel): """ - OIDC support settings applied to matched clients. + Controls whether matched clients can receive ID tokens and use the UserInfo endpoint, and which user profile information they can request through OIDC scopes. """ is_allowed: bool = pydantic.Field() """ - Whether matched clients may use OIDC. + Allows matched clients to use OIDC, including receiving ID tokens and calling the UserInfo endpoint. """ allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) """ - Whether matched clients may request all optional OIDC scopes. Cannot be combined with allowed_scopes. + Allows matched clients to request all supported OIDC scopes. Mutually exclusive with allowed_scopes. """ allowed_scopes: typing.Optional[typing.List[ClientProfileClientConfigurationOidcSupportAllowedScopesEnum]] = ( pydantic.Field(default=None) ) """ - Optional OIDC scopes that matched clients may request. + OIDC scopes matched clients may request (`profile`, `email`, `address`, and `phone`), which determine the user profile information they can access. Mutually exclusive with allow_all_scopes. """ if IS_PYDANTIC_V2: diff --git a/src/auth0/management/types/connection_passkey_authentication_method.py b/src/auth0/management/types/connection_passkey_authentication_method.py index 9946735c..54bd271a 100644 --- a/src/auth0/management/types/connection_passkey_authentication_method.py +++ b/src/auth0/management/types/connection_passkey_authentication_method.py @@ -4,6 +4,7 @@ import pydantic from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .connection_signup_behavior_enum import ConnectionSignupBehaviorEnum class ConnectionPasskeyAuthenticationMethod(UniversalBaseModel): @@ -16,6 +17,11 @@ class ConnectionPasskeyAuthenticationMethod(UniversalBaseModel): Determines whether passkeys are enabled """ + signup_behavior: typing.Optional[ConnectionSignupBehaviorEnum] = pydantic.Field(default=None) + """ + Specifies the signup behavior for passkey authentication + """ + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/auth0/management/types/csp_policy_reporting.py b/src/auth0/management/types/csp_policy_reporting.py index 347eedf3..50e93376 100644 --- a/src/auth0/management/types/csp_policy_reporting.py +++ b/src/auth0/management/types/csp_policy_reporting.py @@ -18,7 +18,7 @@ class CspPolicyReporting(UniversalBaseModel): report_to_group: typing.Optional[str] = pydantic.Field(default=None) """ - Report-To group name for modern reporting. + Report-To group name for modern reporting. Letters, digits, underscores and hyphens only; enforced on write by the request validator. """ if IS_PYDANTIC_V2: diff --git a/src/auth0/management/types/screen_group_name_enum.py b/src/auth0/management/types/screen_group_name_enum.py index 72b79f10..dcba880a 100644 --- a/src/auth0/management/types/screen_group_name_enum.py +++ b/src/auth0/management/types/screen_group_name_enum.py @@ -34,6 +34,7 @@ "custom-form", "consent", "consent-tenant-scopes", + "pending-consent", "customized-consent", "logout", "logout-complete", From 458a37041d75cfe595b2bf37de9d1b895e9fef78 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 05:42:41 +0000 Subject: [PATCH 2/2] [fern-replay] Applied customizations Patches applied (1): - patch-3bac717a: Restore Auth0 telemetry headers and keep UPGRADING.md (#900) --- .fern/replay.lock | 11 +++++++++-- src/auth0/management/core/client_wrapper.py | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 85380d02..e5b84a09 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -18,14 +18,20 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.26.0 -current_generation: a3eace9354ccf8d76cc4439d44363b0a08e6f1d7 + - commit_sha: 136d7afa3b6f920dc2ddec157a94171495ba7e14 + tree_hash: 386fa3b83eed7b806984204dfa02adc0edc7be11 + timestamp: 2026-11-10T05:42:38.308Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.26.0 +current_generation: 136d7afa3b6f920dc2ddec157a94171495ba7e14 patches: - id: patch-3bac717a content_hash: sha256:f4ad3ba43b0430fa3dfb54bfcf588cb697efe8185eb30350f9955849f831083f original_commit: 3bac717acae703868197afb75fc26d296957a4fd original_message: Restore Auth0 telemetry headers and keep UPGRADING.md (#900) original_author: Kunal Dawar <35455566+developerkunal@users.noreply.github.com> - base_generation: a3eace9354ccf8d76cc4439d44363b0a08e6f1d7 + base_generation: 136d7afa3b6f920dc2ddec157a94171495ba7e14 files: - src/auth0/management/core/client_wrapper.py patch_content: | @@ -221,3 +227,4 @@ patches: token = await self._async_token() headers["Authorization"] = f"Bearer {token}" return headers + user_owned: true diff --git a/src/auth0/management/core/client_wrapper.py b/src/auth0/management/core/client_wrapper.py index abce2c81..fd991f52 100644 --- a/src/auth0/management/core/client_wrapper.py +++ b/src/auth0/management/core/client_wrapper.py @@ -1,6 +1,11 @@ # This file was auto-generated by Fern from our API Definition. +# Modified by Auth0 to use Auth0 telemetry format with dynamic versioning +import base64 +import platform +import sys import typing +from json import dumps import httpx from .http_client import AsyncHttpClient, HttpClient @@ -30,7 +35,18 @@ def __init__( self._logging = logging def get_headers(self) -> typing.Dict[str, str]: + py_version = platform.python_version() + version = sys.modules["auth0"].__version__ + + auth0_client = dumps({ + "name": "auth0-python", + "version": version, + "env": {"python": py_version} + }).encode("utf-8") + headers: typing.Dict[str, str] = { + "User-Agent": f"Python/{py_version}", + "Auth0-Client": base64.b64encode(auth0_client).decode(), **(self.get_custom_headers() or {}), } headers["Authorization"] = f"Bearer {self._get_token()}"