|
15 | 15 | import com.auth0.client.mgmt.types.GetClientRequestParameters; |
16 | 16 | import com.auth0.client.mgmt.types.GetClientResponseContent; |
17 | 17 | import com.auth0.client.mgmt.types.ListClientsRequestParameters; |
| 18 | +import com.auth0.client.mgmt.types.PreviewCimdMetadataRequestContent; |
| 19 | +import com.auth0.client.mgmt.types.PreviewCimdMetadataResponseContent; |
| 20 | +import com.auth0.client.mgmt.types.RegisterCimdClientRequestContent; |
| 21 | +import com.auth0.client.mgmt.types.RegisterCimdClientResponseContent; |
18 | 22 | import com.auth0.client.mgmt.types.RotateClientSecretResponseContent; |
19 | 23 | import com.auth0.client.mgmt.types.UpdateClientRequestContent; |
20 | 24 | import com.auth0.client.mgmt.types.UpdateClientResponseContent; |
@@ -238,6 +242,46 @@ public CompletableFuture<CreateClientResponseContent> create( |
238 | 242 | return this.rawClient.create(request, requestOptions).thenApply(response -> response.body()); |
239 | 243 | } |
240 | 244 |
|
| 245 | + /** |
| 246 | + * Fetches and validates a Client ID Metadata Document without creating a client. |
| 247 | + * Returns the raw metadata and how it would be mapped to Auth0 client fields. |
| 248 | + * This endpoint is useful for testing metadata URIs before creating CIMD clients. |
| 249 | + */ |
| 250 | + public CompletableFuture<PreviewCimdMetadataResponseContent> previewCimdMetadata( |
| 251 | + PreviewCimdMetadataRequestContent request) { |
| 252 | + return this.rawClient.previewCimdMetadata(request).thenApply(response -> response.body()); |
| 253 | + } |
| 254 | + |
| 255 | + /** |
| 256 | + * Fetches and validates a Client ID Metadata Document without creating a client. |
| 257 | + * Returns the raw metadata and how it would be mapped to Auth0 client fields. |
| 258 | + * This endpoint is useful for testing metadata URIs before creating CIMD clients. |
| 259 | + */ |
| 260 | + public CompletableFuture<PreviewCimdMetadataResponseContent> previewCimdMetadata( |
| 261 | + PreviewCimdMetadataRequestContent request, RequestOptions requestOptions) { |
| 262 | + return this.rawClient.previewCimdMetadata(request, requestOptions).thenApply(response -> response.body()); |
| 263 | + } |
| 264 | + |
| 265 | + /** |
| 266 | + * Idempotent registration for Client ID Metadata Document (CIMD) clients. |
| 267 | + * Uses external_client_id as the unique identifier for upsert operations. |
| 268 | + * <strong>Create:</strong> Returns 201 when a new client is created (requires \ |
| 269 | + */ |
| 270 | + public CompletableFuture<RegisterCimdClientResponseContent> registerCimdClient( |
| 271 | + RegisterCimdClientRequestContent request) { |
| 272 | + return this.rawClient.registerCimdClient(request).thenApply(response -> response.body()); |
| 273 | + } |
| 274 | + |
| 275 | + /** |
| 276 | + * Idempotent registration for Client ID Metadata Document (CIMD) clients. |
| 277 | + * Uses external_client_id as the unique identifier for upsert operations. |
| 278 | + * <strong>Create:</strong> Returns 201 when a new client is created (requires \ |
| 279 | + */ |
| 280 | + public CompletableFuture<RegisterCimdClientResponseContent> registerCimdClient( |
| 281 | + RegisterCimdClientRequestContent request, RequestOptions requestOptions) { |
| 282 | + return this.rawClient.registerCimdClient(request, requestOptions).thenApply(response -> response.body()); |
| 283 | + } |
| 284 | + |
241 | 285 | /** |
242 | 286 | * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. |
243 | 287 | * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. |
|
0 commit comments