Debian Codegraph @

src/auth0/management/types/client.py

raw symbols SCIP
1 # This file was auto-generated by Fern from our API Definition.
2
3 import typing
4
5 import pydantic
6 import typing_extensions
7 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8 from ..core.serialization import FieldMetadata
9 from .client_addons import ClientAddons
10 from .client_app_type_enum import ClientAppTypeEnum
11 from .client_async_approval_notifications_channels_api_post_configuration import (
12 ClientAsyncApprovalNotificationsChannelsApiPostConfiguration,
13 )
14 from .client_authentication_method import ClientAuthenticationMethod
15 from .client_compliance_level_enum import ClientComplianceLevelEnum
16 from .client_default_organization import ClientDefaultOrganization
17 from .client_encryption_key import ClientEncryptionKey
18 from .client_external_metadata_created_by_enum import ClientExternalMetadataCreatedByEnum
19 from .client_external_metadata_type_enum import ClientExternalMetadataTypeEnum
20 from .client_jwt_configuration import ClientJwtConfiguration
21 from .client_metadata import ClientMetadata
22 from .client_mobile import ClientMobile
23 from .client_my_organization_response_configuration import ClientMyOrganizationResponseConfiguration
24 from .client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings
25 from .client_organization_discovery_enum import ClientOrganizationDiscoveryEnum
26 from .client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum
27 from .client_organization_usage_enum import ClientOrganizationUsageEnum
28 from .client_redirection_policy_enum import ClientRedirectionPolicyEnum
29 from .client_refresh_token_configuration import ClientRefreshTokenConfiguration
30 from .client_session_transfer_configuration import ClientSessionTransferConfiguration
31 from .client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId
32 from .client_signing_keys import ClientSigningKeys
33 from .client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum
34 from .client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum
35 from .client_token_exchange_configuration import ClientTokenExchangeConfiguration
36 from .client_token_vault_privileged_access_with_credential_id import ClientTokenVaultPrivilegedAccessWithCredentialId
37 from .express_configuration import ExpressConfiguration
38 from .fed_cm_login import FedCmLogin
39 from .identity_assertion_authorization_grant import IdentityAssertionAuthorizationGrant
40 from .native_social_login import NativeSocialLogin
41 from .token_quota import TokenQuota
42
43
44 class Client(UniversalBaseModel):
45 client_id: typing.Optional[str] = pydantic.Field(default=None)
46 """
47 ID of this client.
48 """
49
50 tenant: typing.Optional[str] = pydantic.Field(default=None)
51 """
52 Name of the tenant this client belongs to.
53 """
54
55 name: typing.Optional[str] = pydantic.Field(default=None)
56 """
57 Name of this client (min length: 1 character, does not allow `<` or `>`).
58 """
59
60 description: typing.Optional[str] = pydantic.Field(default=None)
61 """
62 Free text description of this client (max length: 140 characters).
63 """
64
65 global_: typing_extensions.Annotated[
66 typing.Optional[bool],
67 FieldMetadata(alias="global"),
68 pydantic.Field(
69 alias="global",
70 description="Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).",
71 ),
72 ] = None
73 """
74 Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).
75 """
76
77 client_secret: typing.Optional[str] = pydantic.Field(default=None)
78 """
79 Client secret (which you must not make public).
80 """
81
82 app_type: typing.Optional[ClientAppTypeEnum] = None
83 logo_uri: typing.Optional[str] = pydantic.Field(default=None)
84 """
85 URL of the logo to display for this client. Recommended size is 150x150 pixels.
86 """
87
88 is_first_party: typing.Optional[bool] = pydantic.Field(default=None)
89 """
90 Whether this client a first party client (true) or not (false).
91 """
92
93 oidc_conformant: typing.Optional[bool] = pydantic.Field(default=None)
94 """
95 Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).
96 """
97
98 callbacks: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
99 """
100 Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication.
101 """
102
103 allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
104 """
105 Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs.
106 """
107
108 web_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
109 """
110 Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.
111 """
112
113 client_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
114 """
115 List of audiences/realms for SAML protocol. Used by the wsfed addon.
116 """
117
118 allowed_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
119 """
120 List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed.
121 """
122
123 allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
124 """
125 Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains.
126 """
127
128 session_transfer: typing.Optional[ClientSessionTransferConfiguration] = None
129 oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = None
130 grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
131 """
132 List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`.
133 """
134
135 jwt_configuration: typing.Optional[ClientJwtConfiguration] = None
136 signing_keys: typing.Optional[ClientSigningKeys] = None
137 encryption_key: typing.Optional[ClientEncryptionKey] = None
138 sso: typing.Optional[bool] = pydantic.Field(default=None)
139 """
140 Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false).
141 """
142
143 sso_disabled: typing.Optional[bool] = pydantic.Field(default=None)
144 """
145 Whether Single Sign On is disabled (true) or enabled (true). Defaults to true.
146 """
147
148 cross_origin_authentication: typing.Optional[bool] = pydantic.Field(default=None)
149 """
150 Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false).
151 """
152
153 cross_origin_loc: typing.Optional[str] = pydantic.Field(default=None)
154 """
155 URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page.
156 """
157
158 custom_login_page_on: typing.Optional[bool] = pydantic.Field(default=None)
159 """
160 Whether a custom login page is to be used (true) or the default provided login page (false).
161 """
162
163 custom_login_page: typing.Optional[str] = pydantic.Field(default=None)
164 """
165 The content (HTML, CSS, JS) of the custom login page.
166 """
167
168 custom_login_page_preview: typing.Optional[str] = pydantic.Field(default=None)
169 """
170 The content (HTML, CSS, JS) of the custom login page. (Used on Previews)
171 """
172
173 form_template: typing.Optional[str] = pydantic.Field(default=None)
174 """
175 HTML form template to be used for WS-Federation.
176 """
177
178 addons: typing.Optional[ClientAddons] = None
179 token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = None
180 is_token_endpoint_ip_header_trusted: typing.Optional[bool] = pydantic.Field(default=None)
181 """
182 If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint.
183 """
184
185 client_metadata: typing.Optional[ClientMetadata] = None
186 mobile: typing.Optional[ClientMobile] = None
187 initiate_login_uri: typing.Optional[str] = pydantic.Field(default=None)
188 """
189 Initiate login uri, must be https
190 """
191
192 native_social_login: typing.Optional[NativeSocialLogin] = None
193 fedcm_login: typing.Optional[FedCmLogin] = None
194 refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = None
195 default_organization: typing.Optional[ClientDefaultOrganization] = None
196 organization_usage: typing.Optional[ClientOrganizationUsageEnum] = None
197 organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = None
198 organization_discovery_methods: typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]] = pydantic.Field(
199 default=None
200 )
201 """
202 Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both.
203 """
204
205 client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = None
206 require_pushed_authorization_requests: typing.Optional[bool] = pydantic.Field(default=None)
207 """
208 Makes the use of Pushed Authorization Requests mandatory for this client
209 """
210
211 require_proof_of_possession: typing.Optional[bool] = pydantic.Field(default=None)
212 """
213 Makes the use of Proof-of-Possession mandatory for this client
214 """
215
216 signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = None
217 token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = None
218 compliance_level: typing.Optional[ClientComplianceLevelEnum] = None
219 skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None)
220 """
221 Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`).
222 If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps.
223 See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information.
224 """
225
226 token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = None
227 par_request_expiry: typing.Optional[int] = pydantic.Field(default=None)
228 """
229 Specifies how long, in seconds, a Pushed Authorization Request URI remains valid
230 """
231
232 token_quota: typing.Optional[TokenQuota] = None
233 express_configuration: typing.Optional[ExpressConfiguration] = None
234 my_organization_configuration: typing.Optional[ClientMyOrganizationResponseConfiguration] = None
235 identity_assertion_authorization_grant: typing.Optional[IdentityAssertionAuthorizationGrant] = None
236 third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = None
237 redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = None
238 resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None)
239 """
240 The identifier of the resource server that this client is linked to.
241 """
242
243 async_approval_notification_channels: typing.Optional[
244 ClientAsyncApprovalNotificationsChannelsApiPostConfiguration
245 ] = None
246 external_metadata_type: typing.Optional[ClientExternalMetadataTypeEnum] = None
247 external_metadata_created_by: typing.Optional[ClientExternalMetadataCreatedByEnum] = None
248 external_client_id: typing.Optional[str] = pydantic.Field(default=None)
249 """
250 An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers.
251 """
252
253 jwks_uri: typing.Optional[str] = pydantic.Field(default=None)
254 """
255 URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication.
256 """
257
258 if IS_PYDANTIC_V2:
259 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
260 else:
261
262 class Config:
263 frozen = True
264 smart_union = True
265 extra = pydantic.Extra.allow