auth0-python 5.2.0__py3-none-any.whl → 5.3.0__py3-none-any.whl
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.
- auth0/management/__init__.py +3 -1
- auth0/management/actions/client.py +4 -4
- auth0/management/actions/triggers/bindings/client.py +4 -4
- auth0/management/clients/client.py +184 -0
- auth0/management/clients/raw_client.py +433 -0
- auth0/management/connections/client.py +2 -2
- auth0/management/connections/raw_client.py +2 -2
- auth0/management/groups/client.py +68 -0
- auth0/management/groups/raw_client.py +148 -0
- auth0/management/management_client.py +78 -1
- auth0/management/network_acls/client.py +20 -24
- auth0/management/network_acls/raw_client.py +16 -16
- auth0/management/organizations/__init__.py +3 -2
- auth0/management/organizations/client.py +19 -0
- auth0/management/organizations/connections/__init__.py +4 -0
- auth0/management/organizations/connections/client.py +647 -0
- auth0/management/organizations/connections/raw_client.py +1093 -0
- auth0/management/refresh_tokens/client.py +158 -0
- auth0/management/refresh_tokens/raw_client.py +280 -0
- auth0/management/resource_servers/client.py +20 -0
- auth0/management/resource_servers/raw_client.py +20 -0
- auth0/management/types/__init__.py +100 -75
- auth0/management/types/action_trigger_type_enum.py +21 -1
- auth0/management/types/cimd_mapped_client_authentication_methods.py +26 -0
- auth0/management/types/cimd_mapped_client_authentication_methods_private_key_jwt.py +27 -0
- auth0/management/types/cimd_mapped_client_fields.py +69 -0
- auth0/management/types/cimd_mapped_private_key_jwt_credential.py +32 -0
- auth0/management/types/cimd_validation_result.py +36 -0
- auth0/management/types/client.py +13 -0
- auth0/management/types/client_external_metadata_created_by_enum.py +5 -0
- auth0/management/types/client_external_metadata_type_enum.py +5 -0
- auth0/management/types/connection_identity_provider_enum.py +0 -7
- auth0/management/types/connection_options_adfs.py +2 -2
- auth0/management/types/connection_options_auth_0.py +2 -0
- auth0/management/types/connection_options_azure_ad.py +1 -1
- auth0/management/types/connection_options_common_oidc.py +4 -4
- auth0/management/types/connection_options_o_auth_2.py +6 -8
- auth0/management/types/connection_password_options.py +30 -0
- auth0/management/types/connection_password_options_complexity.py +41 -0
- auth0/management/types/connection_password_options_dictionary.py +34 -0
- auth0/management/types/connection_password_options_history.py +31 -0
- auth0/management/types/connection_password_options_profile_data.py +31 -0
- auth0/management/types/connection_properties_options.py +2 -0
- auth0/management/types/connection_response_common.py +1 -1
- auth0/management/types/connection_strategy_enum.py +0 -7
- auth0/management/types/create_client_response_content.py +13 -0
- auth0/management/types/create_connection_common.py +14 -4
- auth0/management/types/create_organization_all_connection_response_content.py +52 -0
- auth0/management/types/create_resource_server_response_content.py +5 -0
- auth0/management/types/event_stream_webhook_authorization_response.py +4 -1
- auth0/management/types/event_stream_webhook_custom_header_auth.py +28 -0
- auth0/management/types/event_stream_webhook_custom_header_auth_method_enum.py +5 -0
- auth0/management/types/get_client_response_content.py +13 -0
- auth0/management/types/get_organization_all_connection_response_content.py +52 -0
- auth0/management/types/get_refresh_tokens_paginated_response_content.py +24 -0
- auth0/management/types/get_resource_server_response_content.py +5 -0
- auth0/management/types/identity_provider_enum.py +0 -7
- auth0/management/types/list_organization_all_connections_offset_paginated_response_content.py +23 -0
- auth0/management/types/network_acl_match.py +13 -0
- auth0/management/types/network_acl_match_connecting_ipv_4_cidr.py +3 -0
- auth0/management/types/network_acl_match_connecting_ipv_6_cidr.py +3 -0
- auth0/management/types/oauth_scope.py +1 -0
- auth0/management/types/organization_access_level_enum.py +5 -0
- auth0/management/types/organization_access_level_enum_with_null.py +5 -0
- auth0/management/types/organization_all_connection_post.py +52 -0
- auth0/management/types/password_character_type_enum.py +5 -0
- auth0/management/types/password_character_type_rule_policy_enum.py +5 -0
- auth0/management/types/password_default_dictionaries_enum.py +5 -0
- auth0/management/types/password_identical_characters_policy_enum.py +5 -0
- auth0/management/types/password_max_length_exceeded_policy_enum.py +5 -0
- auth0/management/types/password_sequential_characters_policy_enum.py +5 -0
- auth0/management/types/preview_cimd_metadata_response_content.py +32 -0
- auth0/management/types/register_cimd_client_response_content.py +31 -0
- auth0/management/types/resource_server.py +5 -0
- auth0/management/types/rotate_client_secret_response_content.py +13 -0
- auth0/management/types/synchronize_groups_enum.py +3 -1
- auth0/management/types/update_client_response_content.py +13 -0
- auth0/management/types/update_connection_options.py +2 -0
- auth0/management/types/update_organization_all_connection_response_content.py +52 -0
- auth0/management/types/update_resource_server_response_content.py +5 -0
- auth0/management/types/user_identity_provider_enum.py +0 -7
- {auth0_python-5.2.0.dist-info → auth0_python-5.3.0.dist-info}/METADATA +39 -1
- {auth0_python-5.2.0.dist-info → auth0_python-5.3.0.dist-info}/RECORD +85 -75
- auth0/management/types/connection_authorization_endpoint_o_auth_2.py +0 -5
- auth0/management/types/connection_end_session_endpoint_o_auth_2.py +0 -5
- auth0/management/types/connection_options_aol.py +0 -22
- auth0/management/types/connection_options_flickr.py +0 -22
- auth0/management/types/connection_options_yammer.py +0 -22
- auth0/management/types/connection_response_content_aol.py +0 -28
- auth0/management/types/connection_response_content_aol_strategy.py +0 -5
- auth0/management/types/connection_response_content_flickr.py +0 -28
- auth0/management/types/connection_response_content_flickr_strategy.py +0 -5
- auth0/management/types/connection_response_content_yammer.py +0 -28
- auth0/management/types/connection_response_content_yammer_strategy.py +0 -5
- auth0/management/types/connection_token_endpoint_o_auth_2.py +0 -5
- auth0/management/types/connection_token_endpoint_oidc.py +0 -5
- auth0/management/types/connection_upstream_params_adfs.py +0 -7
- auth0/management/types/connection_userinfo_endpoint_oidc.py +0 -5
- auth0/management/types/create_connection_request_content_aol.py +0 -27
- auth0/management/types/create_connection_request_content_aol_strategy.py +0 -5
- auth0/management/types/create_connection_request_content_flickr.py +0 -27
- auth0/management/types/create_connection_request_content_flickr_strategy.py +0 -5
- auth0/management/types/create_connection_request_content_yammer.py +0 -27
- auth0/management/types/create_connection_request_content_yammer_strategy.py +0 -5
- auth0/management/types/synchronize_groups_ea_enum.py +0 -5
- auth0/management/types/update_connection_request_content_aol.py +0 -25
- auth0/management/types/update_connection_request_content_flickr.py +0 -25
- auth0/management/types/update_connection_request_content_yammer.py +0 -25
- {auth0_python-5.2.0.dist-info → auth0_python-5.3.0.dist-info}/WHEEL +0 -0
- {auth0_python-5.2.0.dist-info → auth0_python-5.3.0.dist-info}/licenses/LICENSE +0 -0
auth0/management/__init__.py
CHANGED
|
@@ -1215,7 +1215,7 @@ if typing.TYPE_CHECKING:
|
|
|
1215
1215
|
from .client import AsyncAuth0, Auth0
|
|
1216
1216
|
from .environment import Auth0Environment
|
|
1217
1217
|
from .event_streams import EventStreamsCreateRequest
|
|
1218
|
-
from .management_client import AsyncManagementClient, ManagementClient
|
|
1218
|
+
from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient
|
|
1219
1219
|
from .version import __version__
|
|
1220
1220
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
1221
1221
|
"Action": ".types",
|
|
@@ -1458,6 +1458,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
1458
1458
|
"CreatedAuthenticationMethodTypeEnum": ".types",
|
|
1459
1459
|
"CreatedUserAuthenticationMethodTypeEnum": ".types",
|
|
1460
1460
|
"CredentialId": ".types",
|
|
1461
|
+
"CustomDomainHeader": ".management_client",
|
|
1461
1462
|
"CustomDomain": ".types",
|
|
1462
1463
|
"CustomDomainCustomClientIpHeader": ".types",
|
|
1463
1464
|
"CustomDomainCustomClientIpHeaderEnum": ".types",
|
|
@@ -2690,6 +2691,7 @@ __all__ = [
|
|
|
2690
2691
|
"CreatedUserAuthenticationMethodTypeEnum",
|
|
2691
2692
|
"CredentialId",
|
|
2692
2693
|
"CustomDomain",
|
|
2694
|
+
"CustomDomainHeader",
|
|
2693
2695
|
"CustomDomainCustomClientIpHeader",
|
|
2694
2696
|
"CustomDomainCustomClientIpHeaderEnum",
|
|
2695
2697
|
"CustomDomainProvisioningTypeEnum",
|
|
@@ -101,7 +101,7 @@ class ActionsClient:
|
|
|
101
101
|
token="YOUR_TOKEN",
|
|
102
102
|
)
|
|
103
103
|
response = client.actions.list(
|
|
104
|
-
trigger_id="
|
|
104
|
+
trigger_id="post-login",
|
|
105
105
|
action_name="actionName",
|
|
106
106
|
deployed=True,
|
|
107
107
|
page=1,
|
|
@@ -185,7 +185,7 @@ class ActionsClient:
|
|
|
185
185
|
name="name",
|
|
186
186
|
supported_triggers=[
|
|
187
187
|
ActionTrigger(
|
|
188
|
-
id="
|
|
188
|
+
id="post-login",
|
|
189
189
|
)
|
|
190
190
|
],
|
|
191
191
|
)
|
|
@@ -521,7 +521,7 @@ class AsyncActionsClient:
|
|
|
521
521
|
|
|
522
522
|
async def main() -> None:
|
|
523
523
|
response = await client.actions.list(
|
|
524
|
-
trigger_id="
|
|
524
|
+
trigger_id="post-login",
|
|
525
525
|
action_name="actionName",
|
|
526
526
|
deployed=True,
|
|
527
527
|
page=1,
|
|
@@ -614,7 +614,7 @@ class AsyncActionsClient:
|
|
|
614
614
|
name="name",
|
|
615
615
|
supported_triggers=[
|
|
616
616
|
ActionTrigger(
|
|
617
|
-
id="
|
|
617
|
+
id="post-login",
|
|
618
618
|
)
|
|
619
619
|
],
|
|
620
620
|
)
|
|
@@ -69,7 +69,7 @@ class BindingsClient:
|
|
|
69
69
|
token="YOUR_TOKEN",
|
|
70
70
|
)
|
|
71
71
|
response = client.actions.triggers.bindings.list(
|
|
72
|
-
trigger_id="
|
|
72
|
+
trigger_id="post-login",
|
|
73
73
|
page=1,
|
|
74
74
|
per_page=1,
|
|
75
75
|
)
|
|
@@ -115,7 +115,7 @@ class BindingsClient:
|
|
|
115
115
|
token="YOUR_TOKEN",
|
|
116
116
|
)
|
|
117
117
|
client.actions.triggers.bindings.update_many(
|
|
118
|
-
trigger_id="
|
|
118
|
+
trigger_id="post-login",
|
|
119
119
|
)
|
|
120
120
|
"""
|
|
121
121
|
_response = self._raw_client.update_many(trigger_id, bindings=bindings, request_options=request_options)
|
|
@@ -180,7 +180,7 @@ class AsyncBindingsClient:
|
|
|
180
180
|
|
|
181
181
|
async def main() -> None:
|
|
182
182
|
response = await client.actions.triggers.bindings.list(
|
|
183
|
-
trigger_id="
|
|
183
|
+
trigger_id="post-login",
|
|
184
184
|
page=1,
|
|
185
185
|
per_page=1,
|
|
186
186
|
)
|
|
@@ -235,7 +235,7 @@ class AsyncBindingsClient:
|
|
|
235
235
|
|
|
236
236
|
async def main() -> None:
|
|
237
237
|
await client.actions.triggers.bindings.update_many(
|
|
238
|
-
trigger_id="
|
|
238
|
+
trigger_id="post-login",
|
|
239
239
|
)
|
|
240
240
|
|
|
241
241
|
|
|
@@ -45,6 +45,8 @@ from ..types.express_configuration_or_null import ExpressConfigurationOrNull
|
|
|
45
45
|
from ..types.get_client_response_content import GetClientResponseContent
|
|
46
46
|
from ..types.list_clients_offset_paginated_response_content import ListClientsOffsetPaginatedResponseContent
|
|
47
47
|
from ..types.native_social_login import NativeSocialLogin
|
|
48
|
+
from ..types.preview_cimd_metadata_response_content import PreviewCimdMetadataResponseContent
|
|
49
|
+
from ..types.register_cimd_client_response_content import RegisterCimdClientResponseContent
|
|
48
50
|
from ..types.rotate_client_secret_response_content import RotateClientSecretResponseContent
|
|
49
51
|
from ..types.update_client_response_content import UpdateClientResponseContent
|
|
50
52
|
from ..types.update_token_quota import UpdateTokenQuota
|
|
@@ -86,6 +88,7 @@ class ClientsClient:
|
|
|
86
88
|
is_global: typing.Optional[bool] = None,
|
|
87
89
|
is_first_party: typing.Optional[bool] = None,
|
|
88
90
|
app_type: typing.Optional[str] = None,
|
|
91
|
+
external_client_id: typing.Optional[str] = None,
|
|
89
92
|
q: typing.Optional[str] = None,
|
|
90
93
|
request_options: typing.Optional[RequestOptions] = None,
|
|
91
94
|
) -> SyncPager[Client, ListClientsOffsetPaginatedResponseContent]:
|
|
@@ -150,6 +153,9 @@ class ClientsClient:
|
|
|
150
153
|
app_type : typing.Optional[str]
|
|
151
154
|
Optional filter by a comma-separated list of application types.
|
|
152
155
|
|
|
156
|
+
external_client_id : typing.Optional[str]
|
|
157
|
+
Optional filter by the <a href="https://www.ietf.org/archive/id/draft-ietf-oauth-client-id-metadata-document-04.html">Client ID Metadata Document</a> URI for CIMD-registered clients.
|
|
158
|
+
|
|
153
159
|
q : typing.Optional[str]
|
|
154
160
|
Advanced Query in <a href="https://lucene.apache.org/core/2_9_4/queryparsersyntax.html">Lucene</a> syntax.<br /><b>Permitted Queries</b>:<br /><ul><li><i>client_grant.organization_id:{organization_id}</i></li><li><i>client_grant.allow_any_organization:true</i></li></ul><b>Additional Restrictions</b>:<br /><ul><li>Cannot be used in combination with other filters</li><li>Requires use of the <i>from</i> and <i>take</i> paging parameters (checkpoint paginatinon)</li><li>Reduced rate limits apply. See <a href="https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/rate-limit-configurations/enterprise-public">Rate Limit Configurations</a></li></ul><i><b>Note</b>: Recent updates may not be immediately reflected in query results</i>
|
|
155
161
|
|
|
@@ -177,6 +183,7 @@ class ClientsClient:
|
|
|
177
183
|
is_global=True,
|
|
178
184
|
is_first_party=True,
|
|
179
185
|
app_type="app_type",
|
|
186
|
+
external_client_id="external_client_id",
|
|
180
187
|
q="q",
|
|
181
188
|
)
|
|
182
189
|
for item in response:
|
|
@@ -194,6 +201,7 @@ class ClientsClient:
|
|
|
194
201
|
is_global=is_global,
|
|
195
202
|
is_first_party=is_first_party,
|
|
196
203
|
app_type=app_type,
|
|
204
|
+
external_client_id=external_client_id,
|
|
197
205
|
q=q,
|
|
198
206
|
request_options=request_options,
|
|
199
207
|
)
|
|
@@ -478,6 +486,83 @@ class ClientsClient:
|
|
|
478
486
|
)
|
|
479
487
|
return _response.data
|
|
480
488
|
|
|
489
|
+
def preview_cimd_metadata(
|
|
490
|
+
self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None
|
|
491
|
+
) -> PreviewCimdMetadataResponseContent:
|
|
492
|
+
"""
|
|
493
|
+
|
|
494
|
+
Fetches and validates a Client ID Metadata Document without creating a client.
|
|
495
|
+
Returns the raw metadata and how it would be mapped to Auth0 client fields.
|
|
496
|
+
This endpoint is useful for testing metadata URIs before creating CIMD clients.
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
Parameters
|
|
500
|
+
----------
|
|
501
|
+
external_client_id : str
|
|
502
|
+
URL to the Client ID Metadata Document
|
|
503
|
+
|
|
504
|
+
request_options : typing.Optional[RequestOptions]
|
|
505
|
+
Request-specific configuration.
|
|
506
|
+
|
|
507
|
+
Returns
|
|
508
|
+
-------
|
|
509
|
+
PreviewCimdMetadataResponseContent
|
|
510
|
+
Metadata successfully fetched and validated, or retrieval error returned with errors array.
|
|
511
|
+
|
|
512
|
+
Examples
|
|
513
|
+
--------
|
|
514
|
+
from auth0 import Auth0
|
|
515
|
+
|
|
516
|
+
client = Auth0(
|
|
517
|
+
token="YOUR_TOKEN",
|
|
518
|
+
)
|
|
519
|
+
client.clients.preview_cimd_metadata(
|
|
520
|
+
external_client_id="external_client_id",
|
|
521
|
+
)
|
|
522
|
+
"""
|
|
523
|
+
_response = self._raw_client.preview_cimd_metadata(
|
|
524
|
+
external_client_id=external_client_id, request_options=request_options
|
|
525
|
+
)
|
|
526
|
+
return _response.data
|
|
527
|
+
|
|
528
|
+
def register_cimd_client(
|
|
529
|
+
self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None
|
|
530
|
+
) -> RegisterCimdClientResponseContent:
|
|
531
|
+
"""
|
|
532
|
+
|
|
533
|
+
Idempotent registration for Client ID Metadata Document (CIMD) clients.
|
|
534
|
+
Uses external_client_id as the unique identifier for upsert operations.
|
|
535
|
+
**Create:** Returns 201 when a new client is created (requires \\
|
|
536
|
+
|
|
537
|
+
Parameters
|
|
538
|
+
----------
|
|
539
|
+
external_client_id : str
|
|
540
|
+
URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.
|
|
541
|
+
|
|
542
|
+
request_options : typing.Optional[RequestOptions]
|
|
543
|
+
Request-specific configuration.
|
|
544
|
+
|
|
545
|
+
Returns
|
|
546
|
+
-------
|
|
547
|
+
RegisterCimdClientResponseContent
|
|
548
|
+
CIMD client successfully updated (idempotent).
|
|
549
|
+
|
|
550
|
+
Examples
|
|
551
|
+
--------
|
|
552
|
+
from auth0 import Auth0
|
|
553
|
+
|
|
554
|
+
client = Auth0(
|
|
555
|
+
token="YOUR_TOKEN",
|
|
556
|
+
)
|
|
557
|
+
client.clients.register_cimd_client(
|
|
558
|
+
external_client_id="external_client_id",
|
|
559
|
+
)
|
|
560
|
+
"""
|
|
561
|
+
_response = self._raw_client.register_cimd_client(
|
|
562
|
+
external_client_id=external_client_id, request_options=request_options
|
|
563
|
+
)
|
|
564
|
+
return _response.data
|
|
565
|
+
|
|
481
566
|
def get(
|
|
482
567
|
self,
|
|
483
568
|
id: str,
|
|
@@ -951,6 +1036,7 @@ class AsyncClientsClient:
|
|
|
951
1036
|
is_global: typing.Optional[bool] = None,
|
|
952
1037
|
is_first_party: typing.Optional[bool] = None,
|
|
953
1038
|
app_type: typing.Optional[str] = None,
|
|
1039
|
+
external_client_id: typing.Optional[str] = None,
|
|
954
1040
|
q: typing.Optional[str] = None,
|
|
955
1041
|
request_options: typing.Optional[RequestOptions] = None,
|
|
956
1042
|
) -> AsyncPager[Client, ListClientsOffsetPaginatedResponseContent]:
|
|
@@ -1015,6 +1101,9 @@ class AsyncClientsClient:
|
|
|
1015
1101
|
app_type : typing.Optional[str]
|
|
1016
1102
|
Optional filter by a comma-separated list of application types.
|
|
1017
1103
|
|
|
1104
|
+
external_client_id : typing.Optional[str]
|
|
1105
|
+
Optional filter by the <a href="https://www.ietf.org/archive/id/draft-ietf-oauth-client-id-metadata-document-04.html">Client ID Metadata Document</a> URI for CIMD-registered clients.
|
|
1106
|
+
|
|
1018
1107
|
q : typing.Optional[str]
|
|
1019
1108
|
Advanced Query in <a href="https://lucene.apache.org/core/2_9_4/queryparsersyntax.html">Lucene</a> syntax.<br /><b>Permitted Queries</b>:<br /><ul><li><i>client_grant.organization_id:{organization_id}</i></li><li><i>client_grant.allow_any_organization:true</i></li></ul><b>Additional Restrictions</b>:<br /><ul><li>Cannot be used in combination with other filters</li><li>Requires use of the <i>from</i> and <i>take</i> paging parameters (checkpoint paginatinon)</li><li>Reduced rate limits apply. See <a href="https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/rate-limit-configurations/enterprise-public">Rate Limit Configurations</a></li></ul><i><b>Note</b>: Recent updates may not be immediately reflected in query results</i>
|
|
1020
1109
|
|
|
@@ -1047,6 +1136,7 @@ class AsyncClientsClient:
|
|
|
1047
1136
|
is_global=True,
|
|
1048
1137
|
is_first_party=True,
|
|
1049
1138
|
app_type="app_type",
|
|
1139
|
+
external_client_id="external_client_id",
|
|
1050
1140
|
q="q",
|
|
1051
1141
|
)
|
|
1052
1142
|
async for item in response:
|
|
@@ -1068,6 +1158,7 @@ class AsyncClientsClient:
|
|
|
1068
1158
|
is_global=is_global,
|
|
1069
1159
|
is_first_party=is_first_party,
|
|
1070
1160
|
app_type=app_type,
|
|
1161
|
+
external_client_id=external_client_id,
|
|
1071
1162
|
q=q,
|
|
1072
1163
|
request_options=request_options,
|
|
1073
1164
|
)
|
|
@@ -1360,6 +1451,99 @@ class AsyncClientsClient:
|
|
|
1360
1451
|
)
|
|
1361
1452
|
return _response.data
|
|
1362
1453
|
|
|
1454
|
+
async def preview_cimd_metadata(
|
|
1455
|
+
self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None
|
|
1456
|
+
) -> PreviewCimdMetadataResponseContent:
|
|
1457
|
+
"""
|
|
1458
|
+
|
|
1459
|
+
Fetches and validates a Client ID Metadata Document without creating a client.
|
|
1460
|
+
Returns the raw metadata and how it would be mapped to Auth0 client fields.
|
|
1461
|
+
This endpoint is useful for testing metadata URIs before creating CIMD clients.
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
Parameters
|
|
1465
|
+
----------
|
|
1466
|
+
external_client_id : str
|
|
1467
|
+
URL to the Client ID Metadata Document
|
|
1468
|
+
|
|
1469
|
+
request_options : typing.Optional[RequestOptions]
|
|
1470
|
+
Request-specific configuration.
|
|
1471
|
+
|
|
1472
|
+
Returns
|
|
1473
|
+
-------
|
|
1474
|
+
PreviewCimdMetadataResponseContent
|
|
1475
|
+
Metadata successfully fetched and validated, or retrieval error returned with errors array.
|
|
1476
|
+
|
|
1477
|
+
Examples
|
|
1478
|
+
--------
|
|
1479
|
+
import asyncio
|
|
1480
|
+
|
|
1481
|
+
from auth0 import AsyncAuth0
|
|
1482
|
+
|
|
1483
|
+
client = AsyncAuth0(
|
|
1484
|
+
token="YOUR_TOKEN",
|
|
1485
|
+
)
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
async def main() -> None:
|
|
1489
|
+
await client.clients.preview_cimd_metadata(
|
|
1490
|
+
external_client_id="external_client_id",
|
|
1491
|
+
)
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
asyncio.run(main())
|
|
1495
|
+
"""
|
|
1496
|
+
_response = await self._raw_client.preview_cimd_metadata(
|
|
1497
|
+
external_client_id=external_client_id, request_options=request_options
|
|
1498
|
+
)
|
|
1499
|
+
return _response.data
|
|
1500
|
+
|
|
1501
|
+
async def register_cimd_client(
|
|
1502
|
+
self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None
|
|
1503
|
+
) -> RegisterCimdClientResponseContent:
|
|
1504
|
+
"""
|
|
1505
|
+
|
|
1506
|
+
Idempotent registration for Client ID Metadata Document (CIMD) clients.
|
|
1507
|
+
Uses external_client_id as the unique identifier for upsert operations.
|
|
1508
|
+
**Create:** Returns 201 when a new client is created (requires \\
|
|
1509
|
+
|
|
1510
|
+
Parameters
|
|
1511
|
+
----------
|
|
1512
|
+
external_client_id : str
|
|
1513
|
+
URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.
|
|
1514
|
+
|
|
1515
|
+
request_options : typing.Optional[RequestOptions]
|
|
1516
|
+
Request-specific configuration.
|
|
1517
|
+
|
|
1518
|
+
Returns
|
|
1519
|
+
-------
|
|
1520
|
+
RegisterCimdClientResponseContent
|
|
1521
|
+
CIMD client successfully updated (idempotent).
|
|
1522
|
+
|
|
1523
|
+
Examples
|
|
1524
|
+
--------
|
|
1525
|
+
import asyncio
|
|
1526
|
+
|
|
1527
|
+
from auth0 import AsyncAuth0
|
|
1528
|
+
|
|
1529
|
+
client = AsyncAuth0(
|
|
1530
|
+
token="YOUR_TOKEN",
|
|
1531
|
+
)
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
async def main() -> None:
|
|
1535
|
+
await client.clients.register_cimd_client(
|
|
1536
|
+
external_client_id="external_client_id",
|
|
1537
|
+
)
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
asyncio.run(main())
|
|
1541
|
+
"""
|
|
1542
|
+
_response = await self._raw_client.register_cimd_client(
|
|
1543
|
+
external_client_id=external_client_id, request_options=request_options
|
|
1544
|
+
)
|
|
1545
|
+
return _response.data
|
|
1546
|
+
|
|
1363
1547
|
async def get(
|
|
1364
1548
|
self,
|
|
1365
1549
|
id: str,
|