diff --git a/reference.md b/reference.md index b5155fec4..1f58e0516 100644 --- a/reference.md +++ b/reference.md @@ -1449,7 +1449,7 @@ client.clients().create(
-**oidcBackchannelLogout:** `Optional` +**oidcBackchannelLogout:** `Optional` — Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
@@ -2093,7 +2093,7 @@ client.clients().update(
-**oidcBackchannelLogout:** `Optional` +**oidcBackchannelLogout:** `Optional` — Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
@@ -2157,7 +2157,7 @@ client.clients().update(
-**jwtConfiguration:** `Optional` +**jwtConfiguration:** `Optional` — An object that holds settings related to how JWTs are created
@@ -2165,7 +2165,7 @@ client.clients().update(
-**encryptionKey:** `Optional` +**encryptionKey:** `Optional` — The client's encryption key
@@ -2301,7 +2301,7 @@ client.clients().update(
-**mobile:** `Optional` +**mobile:** `Optional` — Configuration related to native mobile apps
@@ -3991,7 +3991,7 @@ client.customDomains().update(
-**tlsPolicy:** `Optional` +**tlsPolicy:** `Optional` — recommended includes TLS 1.2
@@ -6504,7 +6504,7 @@ client.hooks().create(
-**triggerId:** `HookTriggerIdEnum` +**triggerId:** `HookTriggerIdEnum` — Execution stage of this rule. Can be `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, or `send-phone-message`.
@@ -8873,7 +8873,7 @@ client.refreshTokens().update(
-**refreshTokenMetadata:** `Optional>` +**refreshTokenMetadata:** `Optional>` — Metadata associated with the refresh token. Pass null or {} to remove all metadata.
@@ -10958,7 +10958,7 @@ client.sessions().update(
-**sessionMetadata:** `Optional>` +**sessionMetadata:** `Optional>` — Metadata associated with the session. Pass null or {} to remove all session_metadata.
@@ -13295,7 +13295,7 @@ client.users().update(
-**userMetadata:** `Optional>` +**userMetadata:** `Optional>` — User metadata to which this user has read/write access.
@@ -13303,7 +13303,7 @@ client.users().update(
-**appMetadata:** `Optional>` +**appMetadata:** `Optional>` — User metadata to which this user has read-only access.
@@ -16954,7 +16954,7 @@ client.branding().phone().templates().test(
-**deliveryMethod:** `Optional` +**deliveryMethod:** `Optional` — Medium to use to send the notification
@@ -17926,8 +17926,8 @@ client.connections().directoryProvisioning().getDefaultMapping("id"); -## Connections Clients -
client.connections.clients.get(id) -> SyncPagingIterable<ConnectionEnabledClient> +## Connections ScimConfiguration +
client.connections.scimConfiguration.list() -> SyncPagingIterable<ScimConfiguration>
@@ -17939,9 +17939,7 @@ client.connections().directoryProvisioning().getDefaultMapping("id");
-Retrieve all clients that have the specified connection enabled. - -Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. +Retrieve a list of SCIM configurations of a tenant.
@@ -17956,16 +17954,15 @@ Retrieve all clients that have the specified
-**id:** `String` — The id of the connection for which enabled clients are to be retrieved +**from:** `Optional` — Optional Id from which to start selection.
@@ -17994,11 +17991,57 @@ client.connections().clients().get( + + + + + + +
+
client.connections.scimConfiguration.get(id) -> GetScimConfigurationResponseContent
-**from:** `Optional` — Optional Id from which to start selection. +#### 📝 Description + +
+
+ +
+
+ +Retrieves a scim configuration by its connectionId. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.connections().scimConfiguration().get("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the connection to retrieve its SCIM configuration
@@ -18010,10 +18053,24 @@ client.connections().clients().get(
-
client.connections.clients.update(id, request) +
client.connections.scimConfiguration.create(id, request) -> CreateScimConfigurationResponseContent
+#### 📝 Description + +
+
+ +
+
+ +Create a scim configuration for a connection. +
+
+
+
+ #### 🔌 Usage
@@ -18023,15 +18080,9 @@ client.connections().clients().get(
```java -client.connections().clients().update( +client.connections().scimConfiguration().create( "id", - Arrays.asList( - UpdateEnabledClientConnectionsRequestContentItem - .builder() - .clientId("client_id") - .status(true) - .build() - ) + OptionalNullable.absent() ); ```
@@ -18047,7 +18098,7 @@ client.connections().clients().update(
-**id:** `String` — The id of the connection to modify +**id:** `String` — The id of the connection to create its SCIM configuration
@@ -18055,7 +18106,7 @@ client.connections().clients().update(
-**request:** `List` +**request:** `Optional`
@@ -18067,8 +18118,7 @@ client.connections().clients().update(
-## Connections Keys -
client.connections.keys.get(id) -> List<ConnectionKey> +
client.connections.scimConfiguration.delete(id)
@@ -18080,7 +18130,7 @@ client.connections().clients().update(
-Gets the connection keys for the Okta or OIDC connection strategy. +Deletes a scim configuration by its connectionId.
@@ -18095,7 +18145,7 @@ Gets the connection keys for the Okta or OIDC connection strategy.
```java -client.connections().keys().get("id"); +client.connections().scimConfiguration().delete("id"); ```
@@ -18110,7 +18160,7 @@ client.connections().keys().get("id");
-**id:** `String` — ID of the connection +**id:** `String` — The id of the connection to delete its SCIM configuration
@@ -18122,7 +18172,7 @@ client.connections().keys().get("id");
-
client.connections.keys.rotate(id, request) -> RotateConnectionsKeysResponseContent +
client.connections.scimConfiguration.update(id, request) -> UpdateScimConfigurationResponseContent
@@ -18134,7 +18184,7 @@ client.connections().keys().get("id");
-Rotates the connection keys for the Okta or OIDC connection strategies. +Update a scim configuration by its connectionId.
@@ -18149,9 +18199,19 @@ Rotates the connection keys for the Okta or OIDC connection strategies.
```java -client.connections().keys().rotate( +client.connections().scimConfiguration().update( "id", - OptionalNullable.absent() + UpdateScimConfigurationRequestContent + .builder() + .userIdAttribute("user_id_attribute") + .mapping( + Arrays.asList( + ScimMappingItem + .builder() + .build() + ) + ) + .build() ); ```
@@ -18167,7 +18227,7 @@ client.connections().keys().rotate(
-**id:** `String` — ID of the connection +**id:** `String` — The id of the connection to update its SCIM configuration
@@ -18175,7 +18235,15 @@ client.connections().keys().rotate(
-**request:** `Optional` +**userIdAttribute:** `String` — User ID attribute for generating unique user ids + +
+
+ +
+
+ +**mapping:** `List` — The mapping between auth0 and SCIM
@@ -18187,8 +18255,7 @@ client.connections().keys().rotate(
-## Connections ScimConfiguration -
client.connections.scimConfiguration.get(id) -> GetScimConfigurationResponseContent +
client.connections.scimConfiguration.getDefaultMapping(id) -> GetScimConfigurationDefaultMappingResponseContent
@@ -18200,7 +18267,7 @@ client.connections().keys().rotate(
-Retrieves a scim configuration by its connectionId. +Retrieves a scim configuration's default mapping by its connectionId.
@@ -18215,7 +18282,7 @@ Retrieves a scim configuration by its connectionId.
```java -client.connections().scimConfiguration().get("id"); +client.connections().scimConfiguration().getDefaultMapping("id"); ```
@@ -18230,7 +18297,7 @@ client.connections().scimConfiguration().get("id");
-**id:** `String` — The id of the connection to retrieve its SCIM configuration +**id:** `String` — The id of the connection to retrieve its default SCIM mapping
@@ -18242,7 +18309,8 @@ client.connections().scimConfiguration().get("id");
-
client.connections.scimConfiguration.create(id, request) -> CreateScimConfigurationResponseContent +## Connections Clients +
client.connections.clients.get(id) -> SyncPagingIterable<ConnectionEnabledClient>
@@ -18254,7 +18322,9 @@ client.connections().scimConfiguration().get("id");
-Create a scim configuration for a connection. +Retrieve all clients that have the specified connection enabled. + +Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.
@@ -18269,9 +18339,17 @@ Create a scim configuration for a connection.
```java -client.connections().scimConfiguration().create( +client.connections().clients().get( "id", - OptionalNullable.absent() + GetConnectionEnabledClientsRequestParameters + .builder() + .take( + OptionalNullable.of(1) + ) + .from( + OptionalNullable.of("from") + ) + .build() ); ```
@@ -18287,7 +18365,7 @@ client.connections().scimConfiguration().create(
-**id:** `String` — The id of the connection to create its SCIM configuration +**id:** `String` — The id of the connection for which enabled clients are to be retrieved
@@ -18295,7 +18373,15 @@ client.connections().scimConfiguration().create(
-**request:** `Optional` +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection.
@@ -18307,7 +18393,65 @@ client.connections().scimConfiguration().create(
-
client.connections.scimConfiguration.delete(id) +
client.connections.clients.update(id, request) +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.connections().clients().update( + "id", + Arrays.asList( + UpdateEnabledClientConnectionsRequestContentItem + .builder() + .clientId("client_id") + .status(true) + .build() + ) +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the connection to modify + +
+
+ +
+
+ +**request:** `List` + +
+
+
+
+ + +
+
+
+ +## Connections Keys +
client.connections.keys.get(id) -> List<ConnectionKey>
@@ -18319,7 +18463,7 @@ client.connections().scimConfiguration().create(
-Deletes a scim configuration by its connectionId. +Gets the connection keys for the Okta or OIDC connection strategy.
@@ -18334,7 +18478,7 @@ Deletes a scim configuration by its connectionId.
```java -client.connections().scimConfiguration().delete("id"); +client.connections().keys().get("id"); ```
@@ -18349,7 +18493,7 @@ client.connections().scimConfiguration().delete("id");
-**id:** `String` — The id of the connection to delete its SCIM configuration +**id:** `String` — ID of the connection
@@ -18361,7 +18505,7 @@ client.connections().scimConfiguration().delete("id");
-
client.connections.scimConfiguration.update(id, request) -> UpdateScimConfigurationResponseContent +
client.connections.keys.create(id, request) -> List<PostConnectionsKeysResponseContentItem>
@@ -18373,7 +18517,7 @@ client.connections().scimConfiguration().delete("id");
-Update a scim configuration by its connectionId. +Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
@@ -18388,19 +18532,9 @@ Update a scim configuration by its connectionId.
```java -client.connections().scimConfiguration().update( +client.connections().keys().create( "id", - UpdateScimConfigurationRequestContent - .builder() - .userIdAttribute("user_id_attribute") - .mapping( - Arrays.asList( - ScimMappingItem - .builder() - .build() - ) - ) - .build() + OptionalNullable.absent() ); ```
@@ -18416,15 +18550,7 @@ client.connections().scimConfiguration().update(
-**id:** `String` — The id of the connection to update its SCIM configuration - -
-
- -
-
- -**userIdAttribute:** `String` — User ID attribute for generating unique user ids +**id:** `String` — ID of the connection
@@ -18432,7 +18558,7 @@ client.connections().scimConfiguration().update(
-**mapping:** `List` — The mapping between auth0 and SCIM +**request:** `Optional`
@@ -18444,7 +18570,7 @@ client.connections().scimConfiguration().update(
-
client.connections.scimConfiguration.getDefaultMapping(id) -> GetScimConfigurationDefaultMappingResponseContent +
client.connections.keys.rotate(id, request) -> RotateConnectionsKeysResponseContent
@@ -18456,7 +18582,7 @@ client.connections().scimConfiguration().update(
-Retrieves a scim configuration's default mapping by its connectionId. +Rotates the connection keys for the Okta or OIDC connection strategies.
@@ -18471,7 +18597,10 @@ Retrieves a scim configuration's default mapping by its connectionId ```java -client.connections().scimConfiguration().getDefaultMapping("id"); +client.connections().keys().rotate( + "id", + OptionalNullable.absent() +); ```
@@ -18486,7 +18615,15 @@ client.connections().scimConfiguration().getDefaultMapping("id");
-**id:** `String` — The id of the connection to retrieve its default SCIM mapping +**id:** `String` — ID of the connection + +
+
+ +
+
+ +**request:** `Optional`
@@ -25691,7 +25828,7 @@ client.prompts().rendering().update(
-**renderingMode:** `Optional` +**renderingMode:** `Optional` — Rendering mode
@@ -27089,7 +27226,7 @@ client.tenants().settings().update(
-**deviceFlow:** `Optional` +**deviceFlow:** `Optional` — Device Flow configuration.
@@ -27894,7 +28031,7 @@ client.users().authenticationMethods().update(
-**preferredAuthenticationMethod:** `Optional` +**preferredAuthenticationMethod:** `Optional` — Preferred phone authentication method
@@ -28388,7 +28525,7 @@ client.users().identities().link(
-**provider:** `Optional` +**provider:** `Optional` — Identity provider of the secondary user account being linked.
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncConnectionsClient.java index 4a7068a58..298fa3dc6 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncConnectionsClient.java @@ -30,21 +30,21 @@ public class AsyncConnectionsClient { protected final Supplier directoryProvisioningClient; + protected final Supplier scimConfigurationClient; + protected final Supplier clientsClient; protected final Supplier keysClient; - protected final Supplier scimConfigurationClient; - protected final Supplier usersClient; public AsyncConnectionsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.rawClient = new AsyncRawConnectionsClient(clientOptions); this.directoryProvisioningClient = Suppliers.memoize(() -> new AsyncDirectoryProvisioningClient(clientOptions)); + this.scimConfigurationClient = Suppliers.memoize(() -> new AsyncScimConfigurationClient(clientOptions)); this.clientsClient = Suppliers.memoize(() -> new AsyncClientsClient(clientOptions)); this.keysClient = Suppliers.memoize(() -> new AsyncKeysClient(clientOptions)); - this.scimConfigurationClient = Suppliers.memoize(() -> new AsyncScimConfigurationClient(clientOptions)); this.usersClient = Suppliers.memoize(() -> new AsyncUsersClient(clientOptions)); } @@ -250,6 +250,10 @@ public AsyncDirectoryProvisioningClient directoryProvisioning() { return this.directoryProvisioningClient.get(); } + public AsyncScimConfigurationClient scimConfiguration() { + return this.scimConfigurationClient.get(); + } + public AsyncClientsClient clients() { return this.clientsClient.get(); } @@ -258,10 +262,6 @@ public AsyncKeysClient keys() { return this.keysClient.get(); } - public AsyncScimConfigurationClient scimConfiguration() { - return this.scimConfigurationClient.get(); - } - public AsyncUsersClient users() { return this.usersClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java index c2c3897b0..574ea3272 100644 --- a/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java @@ -29,21 +29,21 @@ public class ConnectionsClient { protected final Supplier directoryProvisioningClient; + protected final Supplier scimConfigurationClient; + protected final Supplier clientsClient; protected final Supplier keysClient; - protected final Supplier scimConfigurationClient; - protected final Supplier usersClient; public ConnectionsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.rawClient = new RawConnectionsClient(clientOptions); this.directoryProvisioningClient = Suppliers.memoize(() -> new DirectoryProvisioningClient(clientOptions)); + this.scimConfigurationClient = Suppliers.memoize(() -> new ScimConfigurationClient(clientOptions)); this.clientsClient = Suppliers.memoize(() -> new ClientsClient(clientOptions)); this.keysClient = Suppliers.memoize(() -> new KeysClient(clientOptions)); - this.scimConfigurationClient = Suppliers.memoize(() -> new ScimConfigurationClient(clientOptions)); this.usersClient = Suppliers.memoize(() -> new UsersClient(clientOptions)); } @@ -248,6 +248,10 @@ public DirectoryProvisioningClient directoryProvisioning() { return this.directoryProvisioningClient.get(); } + public ScimConfigurationClient scimConfiguration() { + return this.scimConfigurationClient.get(); + } + public ClientsClient clients() { return this.clientsClient.get(); } @@ -256,10 +260,6 @@ public KeysClient keys() { return this.keysClient.get(); } - public ScimConfigurationClient scimConfiguration() { - return this.scimConfigurationClient.get(); - } - public UsersClient users() { return this.usersClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java index 30aba30f5..fc07009bf 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java @@ -45,6 +45,9 @@ public String getTo() { return to; } + /** + * @return Medium to use to send the notification + */ @JsonProperty("delivery_method") public Optional getDeliveryMethod() { return deliveryMethod; @@ -96,6 +99,9 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + /** + *

Medium to use to send the notification

+ */ _FinalStage deliveryMethod(Optional deliveryMethod); _FinalStage deliveryMethod(PhoneProviderDeliveryMethodEnum deliveryMethod); @@ -131,12 +137,19 @@ public _FinalStage to(@NotNull String to) { return this; } + /** + *

Medium to use to send the notification

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage deliveryMethod(PhoneProviderDeliveryMethodEnum deliveryMethod) { this.deliveryMethod = Optional.ofNullable(deliveryMethod); return this; } + /** + *

Medium to use to send the notification

+ */ @java.lang.Override @JsonSetter(value = "delivery_method", nulls = Nulls.SKIP) public _FinalStage deliveryMethod(Optional deliveryMethod) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java index 81e274dd3..598c653fe 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java @@ -7,6 +7,8 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.types.ConnectionKey; +import com.auth0.client.mgmt.types.PostConnectionKeysRequestContent; +import com.auth0.client.mgmt.types.PostConnectionsKeysResponseContentItem; import com.auth0.client.mgmt.types.RotateConnectionKeysRequestContent; import com.auth0.client.mgmt.types.RotateConnectionsKeysResponseContent; import java.util.List; @@ -43,6 +45,37 @@ public CompletableFuture> get(String id, RequestOptions requ return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); } + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public CompletableFuture> create(String id) { + return this.rawClient.create(id).thenApply(response -> response.body()); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public CompletableFuture> create( + String id, OptionalNullable request) { + return this.rawClient.create(id, request).thenApply(response -> response.body()); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public CompletableFuture> create( + String id, OptionalNullable request, RequestOptions requestOptions) { + return this.rawClient.create(id, request, requestOptions).thenApply(response -> response.body()); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java index 8b2cc1994..a779cf9de 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java @@ -12,11 +12,14 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.ConnectionKey; +import com.auth0.client.mgmt.types.PostConnectionKeysRequestContent; +import com.auth0.client.mgmt.types.PostConnectionsKeysResponseContentItem; import com.auth0.client.mgmt.types.RotateConnectionKeysRequestContent; import com.auth0.client.mgmt.types.RotateConnectionsKeysResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; @@ -135,6 +138,134 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { return future; } + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public CompletableFuture>> create( + String id) { + return create(id, OptionalNullable.absent()); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public CompletableFuture>> create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public CompletableFuture>> create( + String id, OptionalNullable request) { + return create(id, request, null); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public CompletableFuture>> create( + String id, OptionalNullable request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("connections") + .addPathSegment(id) + .addPathSegments("keys"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create("", null); + if (request.isPresent()) { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture>> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, + new TypeReference>() {}), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 409: + future.completeExceptionally(new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java index a2eea86cf..f67aa36fd 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.connections; +import com.auth0.client.mgmt.connections.types.ListScimConfigurationsRequestParameters; import com.auth0.client.mgmt.connections.types.UpdateScimConfigurationRequestContent; import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.ManagementApiException; @@ -11,17 +12,27 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.CreateScimConfigurationRequestContent; import com.auth0.client.mgmt.types.CreateScimConfigurationResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationResponseContent; +import com.auth0.client.mgmt.types.ListScimConfigurationsResponseContent; +import com.auth0.client.mgmt.types.ScimConfiguration; import com.auth0.client.mgmt.types.UpdateScimConfigurationResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; +import java.util.List; +import java.util.Optional; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; import okhttp3.Call; import okhttp3.Callback; import okhttp3.Headers; @@ -40,6 +51,131 @@ public AsyncRawScimConfigurationClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; } + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public CompletableFuture>> list() { + return list(ListScimConfigurationsRequestParameters.builder().build()); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListScimConfigurationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public CompletableFuture>> list( + ListScimConfigurationsRequestParameters request) { + return list(request, null); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public CompletableFuture>> list( + ListScimConfigurationsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("connections-scim-configurations"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture>> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListScimConfigurationsResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListScimConfigurationsResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListScimConfigurationsRequestParameters nextRequest = + ListScimConfigurationsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getScimConfigurations(); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return list(nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + /** * Retrieves a scim configuration by its connectionId. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java index f05c008ed..72cbb0111 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java @@ -4,15 +4,18 @@ package com.auth0.client.mgmt.connections; import com.auth0.client.mgmt.connections.scimconfiguration.AsyncTokensClient; +import com.auth0.client.mgmt.connections.types.ListScimConfigurationsRequestParameters; import com.auth0.client.mgmt.connections.types.UpdateScimConfigurationRequestContent; import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.Suppliers; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateScimConfigurationRequestContent; import com.auth0.client.mgmt.types.CreateScimConfigurationResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationResponseContent; +import com.auth0.client.mgmt.types.ScimConfiguration; import com.auth0.client.mgmt.types.UpdateScimConfigurationResponseContent; import java.util.concurrent.CompletableFuture; import java.util.function.Supplier; @@ -37,6 +40,36 @@ public AsyncRawScimConfigurationClient withRawResponse() { return this.rawClient; } + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public CompletableFuture> list() { + return this.rawClient.list().thenApply(response -> response.body()); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public CompletableFuture> list( + ListScimConfigurationsRequestParameters request) { + return this.rawClient.list(request).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public CompletableFuture> list( + ListScimConfigurationsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieves a scim configuration by its connectionId. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java index 9f41240b3..ae24514f8 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java @@ -7,6 +7,8 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.types.ConnectionKey; +import com.auth0.client.mgmt.types.PostConnectionKeysRequestContent; +import com.auth0.client.mgmt.types.PostConnectionsKeysResponseContentItem; import com.auth0.client.mgmt.types.RotateConnectionKeysRequestContent; import com.auth0.client.mgmt.types.RotateConnectionsKeysResponseContent; import java.util.List; @@ -42,6 +44,36 @@ public List get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); } + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public List create(String id) { + return this.rawClient.create(id).body(); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public List create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public List create( + String id, OptionalNullable request) { + return this.rawClient.create(id, request).body(); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public List create( + String id, OptionalNullable request, RequestOptions requestOptions) { + return this.rawClient.create(id, request, requestOptions).body(); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java index c1f436fa4..bc12dcb99 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java @@ -12,11 +12,14 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.ConnectionKey; +import com.auth0.client.mgmt.types.PostConnectionKeysRequestContent; +import com.auth0.client.mgmt.types.PostConnectionsKeysResponseContentItem; import com.auth0.client.mgmt.types.RotateConnectionKeysRequestContent; import com.auth0.client.mgmt.types.RotateConnectionsKeysResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; @@ -107,6 +110,107 @@ public ManagementApiHttpResponse> get(String id, RequestOpti } } + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public ManagementApiHttpResponse> create(String id) { + return create(id, OptionalNullable.absent()); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public ManagementApiHttpResponse> create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public ManagementApiHttpResponse> create( + String id, OptionalNullable request) { + return create(id, request, null); + } + + /** + * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. + */ + public ManagementApiHttpResponse> create( + String id, OptionalNullable request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("connections") + .addPathSegment(id) + .addPathSegments("keys"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create("", null); + if (request.isPresent()) { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, + new TypeReference>() {}), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 409: + throw new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java index f0a2c3811..7836a8672 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.connections; +import com.auth0.client.mgmt.connections.types.ListScimConfigurationsRequestParameters; import com.auth0.client.mgmt.connections.types.UpdateScimConfigurationRequestContent; import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.ManagementApiException; @@ -11,16 +12,25 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.CreateScimConfigurationRequestContent; import com.auth0.client.mgmt.types.CreateScimConfigurationResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationResponseContent; +import com.auth0.client.mgmt.types.ListScimConfigurationsResponseContent; +import com.auth0.client.mgmt.types.ScimConfiguration; import com.auth0.client.mgmt.types.UpdateScimConfigurationResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; +import java.util.List; +import java.util.Optional; import okhttp3.Headers; import okhttp3.HttpUrl; import okhttp3.OkHttpClient; @@ -36,6 +46,101 @@ public RawScimConfigurationClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; } + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public ManagementApiHttpResponse> list() { + return list(ListScimConfigurationsRequestParameters.builder().build()); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListScimConfigurationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public ManagementApiHttpResponse> list( + ListScimConfigurationsRequestParameters request) { + return list(request, null); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public ManagementApiHttpResponse> list( + ListScimConfigurationsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("connections-scim-configurations"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListScimConfigurationsResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListScimConfigurationsResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListScimConfigurationsRequestParameters nextRequest = ListScimConfigurationsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getScimConfigurations(); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> list( + nextRequest, requestOptions) + .body()), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + /** * Retrieves a scim configuration by its connectionId. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java index 1d5d6e217..67da350b4 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java @@ -4,15 +4,18 @@ package com.auth0.client.mgmt.connections; import com.auth0.client.mgmt.connections.scimconfiguration.TokensClient; +import com.auth0.client.mgmt.connections.types.ListScimConfigurationsRequestParameters; import com.auth0.client.mgmt.connections.types.UpdateScimConfigurationRequestContent; import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.Suppliers; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateScimConfigurationRequestContent; import com.auth0.client.mgmt.types.CreateScimConfigurationResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationResponseContent; +import com.auth0.client.mgmt.types.ScimConfiguration; import com.auth0.client.mgmt.types.UpdateScimConfigurationResponseContent; import java.util.function.Supplier; @@ -36,6 +39,35 @@ public RawScimConfigurationClient withRawResponse() { return this.rawClient; } + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public SyncPagingIterable list() { + return this.rawClient.list().body(); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public SyncPagingIterable list(ListScimConfigurationsRequestParameters request) { + return this.rawClient.list(request).body(); + } + + /** + * Retrieve a list of SCIM configurations of a tenant. + */ + public SyncPagingIterable list( + ListScimConfigurationsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).body(); + } + /** * Retrieves a scim configuration by its connectionId. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java new file mode 100644 index 000000000..1da91e12f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java @@ -0,0 +1,195 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.connections.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListScimConfigurationsRequestParameters.Builder.class) +public final class ListScimConfigurationsRequestParameters { + private final OptionalNullable from; + + private final OptionalNullable take; + + private final Map additionalProperties; + + private ListScimConfigurationsRequestParameters( + OptionalNullable from, OptionalNullable take, Map additionalProperties) { + this.from = from; + this.take = take; + this.additionalProperties = additionalProperties; + } + + /** + * @return Optional Id from which to start selection. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + public OptionalNullable getFrom() { + if (from == null) { + return OptionalNullable.absent(); + } + return from; + } + + /** + * @return Number of results per page. Defaults to 50. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + public OptionalNullable getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListScimConfigurationsRequestParameters + && equalTo((ListScimConfigurationsRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListScimConfigurationsRequestParameters other) { + return from.equals(other.from) && take.equals(other.take); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.from, this.take); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private OptionalNullable from = OptionalNullable.absent(); + + private OptionalNullable take = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListScimConfigurationsRequestParameters other) { + from(other.getFrom()); + take(other.getTake()); + return this; + } + + /** + *

Optional Id from which to start selection.

+ */ + @JsonSetter(value = "from", nulls = Nulls.SKIP) + public Builder from(@Nullable OptionalNullable from) { + this.from = from; + return this; + } + + public Builder from(String from) { + this.from = OptionalNullable.of(from); + return this; + } + + public Builder from(Optional from) { + if (from.isPresent()) { + this.from = OptionalNullable.of(from.get()); + } else { + this.from = OptionalNullable.absent(); + } + return this; + } + + public Builder from(com.auth0.client.mgmt.core.Nullable from) { + if (from.isNull()) { + this.from = OptionalNullable.ofNull(); + } else if (from.isEmpty()) { + this.from = OptionalNullable.absent(); + } else { + this.from = OptionalNullable.of(from.get()); + } + return this; + } + + /** + *

Number of results per page. Defaults to 50.

+ */ + @JsonSetter(value = "take", nulls = Nulls.SKIP) + public Builder take(OptionalNullable take) { + this.take = take; + return this; + } + + public Builder take(Integer take) { + this.take = OptionalNullable.of(take); + return this; + } + + public Builder take(Optional take) { + if (take.isPresent()) { + this.take = OptionalNullable.of(take.get()); + } else { + this.take = OptionalNullable.absent(); + } + return this; + } + + public Builder take(com.auth0.client.mgmt.core.Nullable take) { + if (take.isNull()) { + this.take = OptionalNullable.ofNull(); + } else if (take.isEmpty()) { + this.take = OptionalNullable.absent(); + } else { + this.take = OptionalNullable.of(take.get()); + } + return this; + } + + public ListScimConfigurationsRequestParameters build() { + return new ListScimConfigurationsRequestParameters(from, take, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java b/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java index 811341901..ae81ec03a 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java @@ -59,6 +59,9 @@ private UpdateAculRequestContent( this.additionalProperties = additionalProperties; } + /** + * @return Rendering mode + */ @JsonProperty("rendering_mode") public Optional getRenderingMode() { return renderingMode; @@ -197,6 +200,9 @@ public Builder from(UpdateAculRequestContent other) { return this; } + /** + *

Rendering mode

+ */ @JsonSetter(value = "rendering_mode", nulls = Nulls.SKIP) public Builder renderingMode(Optional renderingMode) { this.renderingMode = renderingMode; diff --git a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java index c5df12183..e11c6112d 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java @@ -188,6 +188,9 @@ public OptionalNullable getChangePassword() { return changePassword; } + /** + * @return Device Flow configuration. + */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("device_flow") public OptionalNullable getDeviceFlow() { @@ -792,6 +795,9 @@ public Builder changePassword(com.auth0.client.mgmt.core.NullableDevice Flow configuration.

+ */ @JsonSetter(value = "device_flow", nulls = Nulls.SKIP) public Builder deviceFlow(@Nullable OptionalNullable deviceFlow) { this.deviceFlow = deviceFlow; diff --git a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java index 6a073600c..49255784e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java @@ -74,6 +74,9 @@ public ScreenGroupNameEnum getScreen() { return screen; } + /** + * @return Rendering mode + */ @JsonProperty("rendering_mode") public Optional getRenderingMode() { return renderingMode; @@ -204,6 +207,9 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + /** + *

Rendering mode

+ */ _FinalStage renderingMode(Optional renderingMode); _FinalStage renderingMode(AculRenderingModeEnum renderingMode); @@ -469,12 +475,19 @@ public _FinalStage contextConfiguration(OptionalRendering mode

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage renderingMode(AculRenderingModeEnum renderingMode) { this.renderingMode = Optional.ofNullable(renderingMode); return this; } + /** + *

Rendering mode

+ */ @java.lang.Override @JsonSetter(value = "rendering_mode", nulls = Nulls.SKIP) public _FinalStage renderingMode(Optional renderingMode) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionIdTokenSignedResponseAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionIdTokenSignedResponseAlgEnum.java index 2aea939e9..f151df032 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionIdTokenSignedResponseAlgEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionIdTokenSignedResponseAlgEnum.java @@ -10,15 +10,24 @@ public final class ConnectionIdTokenSignedResponseAlgEnum { public static final ConnectionIdTokenSignedResponseAlgEnum RS512 = new ConnectionIdTokenSignedResponseAlgEnum(Value.RS512, "RS512"); + public static final ConnectionIdTokenSignedResponseAlgEnum ES256 = + new ConnectionIdTokenSignedResponseAlgEnum(Value.ES256, "ES256"); + public static final ConnectionIdTokenSignedResponseAlgEnum PS256 = new ConnectionIdTokenSignedResponseAlgEnum(Value.PS256, "PS256"); - public static final ConnectionIdTokenSignedResponseAlgEnum ES256 = - new ConnectionIdTokenSignedResponseAlgEnum(Value.ES256, "ES256"); + public static final ConnectionIdTokenSignedResponseAlgEnum ES384 = + new ConnectionIdTokenSignedResponseAlgEnum(Value.ES384, "ES384"); + + public static final ConnectionIdTokenSignedResponseAlgEnum PS384 = + new ConnectionIdTokenSignedResponseAlgEnum(Value.PS384, "PS384"); public static final ConnectionIdTokenSignedResponseAlgEnum RS256 = new ConnectionIdTokenSignedResponseAlgEnum(Value.RS256, "RS256"); + public static final ConnectionIdTokenSignedResponseAlgEnum RS384 = + new ConnectionIdTokenSignedResponseAlgEnum(Value.RS384, "RS384"); + private final Value value; private final String string; @@ -54,12 +63,18 @@ public T visit(Visitor visitor) { switch (value) { case RS512: return visitor.visitRs512(); - case PS256: - return visitor.visitPs256(); case ES256: return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); case RS256: return visitor.visitRs256(); + case RS384: + return visitor.visitRs384(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -71,37 +86,55 @@ public static ConnectionIdTokenSignedResponseAlgEnum valueOf(String value) { switch (value) { case "RS512": return RS512; - case "PS256": - return PS256; case "ES256": return ES256; + case "PS256": + return PS256; + case "ES384": + return ES384; + case "PS384": + return PS384; case "RS256": return RS256; + case "RS384": + return RS384; default: return new ConnectionIdTokenSignedResponseAlgEnum(Value.UNKNOWN, value); } } public enum Value { - RS256, + ES256, - RS512, + ES384, PS256, - ES256, + PS384, + + RS256, + + RS384, + + RS512, UNKNOWN } public interface Visitor { - T visitRs256(); + T visitEs256(); - T visitRs512(); + T visitEs384(); T visitPs256(); - T visitEs256(); + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java index ea623a0e0..ed6b910ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java @@ -23,82 +23,112 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionOptionsLinkedin.Builder.class) -public final class ConnectionOptionsLinkedin implements IConnectionOptionsOAuth2Common, IConnectionOptionsCommon { +public final class ConnectionOptionsLinkedin implements IConnectionOptionsCommon { + private final Optional> nonPersistentAttrs; + private final Optional clientId; private final Optional clientSecret; - private final Optional scope; + private final Optional> freeformScopes; + + private final Optional> scope; private final Optional setUserRootAttributes; + private final Optional strategyVersion; + private final OptionalNullable>> upstreamParams; - private final Optional> nonPersistentAttrs; - - private final Optional strategyVersion; - private final Optional basicProfile; private final Optional email; + private final Optional fullProfile; + + private final Optional network; + + private final Optional openid; + private final Optional profile; private final Map additionalProperties; private ConnectionOptionsLinkedin( + Optional> nonPersistentAttrs, Optional clientId, Optional clientSecret, - Optional scope, + Optional> freeformScopes, + Optional> scope, Optional setUserRootAttributes, - OptionalNullable>> upstreamParams, - Optional> nonPersistentAttrs, Optional strategyVersion, + OptionalNullable>> upstreamParams, Optional basicProfile, Optional email, + Optional fullProfile, + Optional network, + Optional openid, Optional profile, Map additionalProperties) { + this.nonPersistentAttrs = nonPersistentAttrs; this.clientId = clientId; this.clientSecret = clientSecret; + this.freeformScopes = freeformScopes; this.scope = scope; this.setUserRootAttributes = setUserRootAttributes; - this.upstreamParams = upstreamParams; - this.nonPersistentAttrs = nonPersistentAttrs; this.strategyVersion = strategyVersion; + this.upstreamParams = upstreamParams; this.basicProfile = basicProfile; this.email = email; + this.fullProfile = fullProfile; + this.network = network; + this.openid = openid; this.profile = profile; this.additionalProperties = additionalProperties; } - @JsonProperty("client_id") + @JsonProperty("non_persistent_attrs") @java.lang.Override + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("client_id") public Optional getClientId() { return clientId; } @JsonProperty("client_secret") - @java.lang.Override public Optional getClientSecret() { return clientSecret; } + @JsonProperty("freeform_scopes") + public Optional> getFreeformScopes() { + return freeformScopes; + } + @JsonProperty("scope") - @java.lang.Override - public Optional getScope() { + public Optional> getScope() { return scope; } @JsonProperty("set_user_root_attributes") - @java.lang.Override public Optional getSetUserRootAttributes() { return setUserRootAttributes; } + /** + * @return The strategy_version property determines which LinkedIn API version and OAuth scopes are used for authentication. Version 1 uses legacy scopes (r_basicprofile, r_fullprofile, r_network), Version 2 uses updated scopes (r_liteprofile, r_basicprofile), and Version 3 uses OpenID Connect scopes (profile, email, openid). If not specified, the connection defaults to Version 3. + */ + @JsonProperty("strategy_version") + public Optional getStrategyVersion() { + return strategyVersion; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("upstream_params") - @java.lang.Override public OptionalNullable>> getUpstreamParams() { if (upstreamParams == null) { return OptionalNullable.absent(); @@ -106,19 +136,8 @@ public OptionalNullable> getNonPersistentAttrs() { - return nonPersistentAttrs; - } - - @JsonProperty("strategy_version") - public Optional getStrategyVersion() { - return strategyVersion; - } - /** - * @return When enabled, requests the basic_profile scope from LinkedIn to access basic profile information. + * @return Request the LinkedIn lite profile scope (r_liteprofile) to retrieve member id, localized first/last name, and profile picture. Off by default. */ @JsonProperty("basic_profile") public Optional getBasicProfile() { @@ -126,7 +145,7 @@ public Optional getBasicProfile() { } /** - * @return When enabled, requests the email scope from LinkedIn to access the user's email address. + * @return Request the email address scope (r_emailaddress) to return the member's primary email. Off by default. */ @JsonProperty("email") public Optional getEmail() { @@ -134,7 +153,31 @@ public Optional getEmail() { } /** - * @return When enabled, requests the profile scope from LinkedIn to access profile information. + * @return Request the legacy full profile scope (r_fullprofile) for extended attributes. Deprecated by LinkedIn; use only if enabled for your app. Off by default. + */ + @JsonProperty("full_profile") + public Optional getFullProfile() { + return fullProfile; + } + + /** + * @return Request legacy network access (first-degree connections). Deprecated by LinkedIn and typically unavailable to new apps. Off by default. + */ + @JsonProperty("network") + public Optional getNetwork() { + return network; + } + + /** + * @return Request OpenID Connect authentication support (openid scope). When enabled, the connection will request the 'openid' scope from LinkedIn, allowing the use of OpenID Connect flows for authentication and enabling the issuance of ID tokens. This is off by default and should only be enabled if your LinkedIn application is configured for OpenID Connect. + */ + @JsonProperty("openid") + public Optional getOpenid() { + return openid; + } + + /** + * @return Always-true flag that ensures the LinkedIn profile scope (r_basicprofile/r_liteprofile/profile) is requested. */ @JsonProperty("profile") public Optional getProfile() { @@ -160,30 +203,38 @@ public Map getAdditionalProperties() { } private boolean equalTo(ConnectionOptionsLinkedin other) { - return clientId.equals(other.clientId) + return nonPersistentAttrs.equals(other.nonPersistentAttrs) + && clientId.equals(other.clientId) && clientSecret.equals(other.clientSecret) + && freeformScopes.equals(other.freeformScopes) && scope.equals(other.scope) && setUserRootAttributes.equals(other.setUserRootAttributes) - && upstreamParams.equals(other.upstreamParams) - && nonPersistentAttrs.equals(other.nonPersistentAttrs) && strategyVersion.equals(other.strategyVersion) + && upstreamParams.equals(other.upstreamParams) && basicProfile.equals(other.basicProfile) && email.equals(other.email) + && fullProfile.equals(other.fullProfile) + && network.equals(other.network) + && openid.equals(other.openid) && profile.equals(other.profile); } @java.lang.Override public int hashCode() { return Objects.hash( + this.nonPersistentAttrs, this.clientId, this.clientSecret, + this.freeformScopes, this.scope, this.setUserRootAttributes, - this.upstreamParams, - this.nonPersistentAttrs, this.strategyVersion, + this.upstreamParams, this.basicProfile, this.email, + this.fullProfile, + this.network, + this.openid, this.profile); } @@ -198,25 +249,33 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { + private Optional> nonPersistentAttrs = Optional.empty(); + private Optional clientId = Optional.empty(); private Optional clientSecret = Optional.empty(); - private Optional scope = Optional.empty(); + private Optional> freeformScopes = Optional.empty(); + + private Optional> scope = Optional.empty(); private Optional setUserRootAttributes = Optional.empty(); + private Optional strategyVersion = Optional.empty(); + private OptionalNullable>> upstreamParams = OptionalNullable.absent(); - private Optional> nonPersistentAttrs = Optional.empty(); - - private Optional strategyVersion = Optional.empty(); - private Optional basicProfile = Optional.empty(); private Optional email = Optional.empty(); + private Optional fullProfile = Optional.empty(); + + private Optional network = Optional.empty(); + + private Optional openid = Optional.empty(); + private Optional profile = Optional.empty(); @JsonAnySetter @@ -225,19 +284,34 @@ public static final class Builder { private Builder() {} public Builder from(ConnectionOptionsLinkedin other) { + nonPersistentAttrs(other.getNonPersistentAttrs()); clientId(other.getClientId()); clientSecret(other.getClientSecret()); + freeformScopes(other.getFreeformScopes()); scope(other.getScope()); setUserRootAttributes(other.getSetUserRootAttributes()); - upstreamParams(other.getUpstreamParams()); - nonPersistentAttrs(other.getNonPersistentAttrs()); strategyVersion(other.getStrategyVersion()); + upstreamParams(other.getUpstreamParams()); basicProfile(other.getBasicProfile()); email(other.getEmail()); + fullProfile(other.getFullProfile()); + network(other.getNetwork()); + openid(other.getOpenid()); profile(other.getProfile()); return this; } + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) public Builder clientId(Optional clientId) { this.clientId = clientId; @@ -260,13 +334,24 @@ public Builder clientSecret(String clientSecret) { return this; } + @JsonSetter(value = "freeform_scopes", nulls = Nulls.SKIP) + public Builder freeformScopes(Optional> freeformScopes) { + this.freeformScopes = freeformScopes; + return this; + } + + public Builder freeformScopes(List freeformScopes) { + this.freeformScopes = Optional.ofNullable(freeformScopes); + return this; + } + @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional scope) { + public Builder scope(Optional> scope) { this.scope = scope; return this; } - public Builder scope(ConnectionScopeOAuth2 scope) { + public Builder scope(List scope) { this.scope = Optional.ofNullable(scope); return this; } @@ -282,6 +367,20 @@ public Builder setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUser return this; } + /** + *

The strategy_version property determines which LinkedIn API version and OAuth scopes are used for authentication. Version 1 uses legacy scopes (r_basicprofile, r_fullprofile, r_network), Version 2 uses updated scopes (r_liteprofile, r_basicprofile), and Version 3 uses OpenID Connect scopes (profile, email, openid). If not specified, the connection defaults to Version 3.

+ */ + @JsonSetter(value = "strategy_version", nulls = Nulls.SKIP) + public Builder strategyVersion(Optional strategyVersion) { + this.strategyVersion = strategyVersion; + return this; + } + + public Builder strategyVersion(Integer strategyVersion) { + this.strategyVersion = Optional.ofNullable(strategyVersion); + return this; + } + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) public Builder upstreamParams( @Nullable @@ -321,58 +420,78 @@ public Builder upstreamParams( return this; } - @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) - public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { - this.nonPersistentAttrs = nonPersistentAttrs; + /** + *

Request the LinkedIn lite profile scope (r_liteprofile) to retrieve member id, localized first/last name, and profile picture. Off by default.

+ */ + @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) + public Builder basicProfile(Optional basicProfile) { + this.basicProfile = basicProfile; return this; } - public Builder nonPersistentAttrs(List nonPersistentAttrs) { - this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + public Builder basicProfile(Boolean basicProfile) { + this.basicProfile = Optional.ofNullable(basicProfile); return this; } - @JsonSetter(value = "strategy_version", nulls = Nulls.SKIP) - public Builder strategyVersion(Optional strategyVersion) { - this.strategyVersion = strategyVersion; + /** + *

Request the email address scope (r_emailaddress) to return the member's primary email. Off by default.

+ */ + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public Builder email(Optional email) { + this.email = email; return this; } - public Builder strategyVersion(Integer strategyVersion) { - this.strategyVersion = Optional.ofNullable(strategyVersion); + public Builder email(Boolean email) { + this.email = Optional.ofNullable(email); return this; } /** - *

When enabled, requests the basic_profile scope from LinkedIn to access basic profile information.

+ *

Request the legacy full profile scope (r_fullprofile) for extended attributes. Deprecated by LinkedIn; use only if enabled for your app. Off by default.

*/ - @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) - public Builder basicProfile(Optional basicProfile) { - this.basicProfile = basicProfile; + @JsonSetter(value = "full_profile", nulls = Nulls.SKIP) + public Builder fullProfile(Optional fullProfile) { + this.fullProfile = fullProfile; return this; } - public Builder basicProfile(Boolean basicProfile) { - this.basicProfile = Optional.ofNullable(basicProfile); + public Builder fullProfile(Boolean fullProfile) { + this.fullProfile = Optional.ofNullable(fullProfile); return this; } /** - *

When enabled, requests the email scope from LinkedIn to access the user's email address.

+ *

Request legacy network access (first-degree connections). Deprecated by LinkedIn and typically unavailable to new apps. Off by default.

*/ - @JsonSetter(value = "email", nulls = Nulls.SKIP) - public Builder email(Optional email) { - this.email = email; + @JsonSetter(value = "network", nulls = Nulls.SKIP) + public Builder network(Optional network) { + this.network = network; return this; } - public Builder email(Boolean email) { - this.email = Optional.ofNullable(email); + public Builder network(Boolean network) { + this.network = Optional.ofNullable(network); + return this; + } + + /** + *

Request OpenID Connect authentication support (openid scope). When enabled, the connection will request the 'openid' scope from LinkedIn, allowing the use of OpenID Connect flows for authentication and enabling the issuance of ID tokens. This is off by default and should only be enabled if your LinkedIn application is configured for OpenID Connect.

+ */ + @JsonSetter(value = "openid", nulls = Nulls.SKIP) + public Builder openid(Optional openid) { + this.openid = openid; + return this; + } + + public Builder openid(Boolean openid) { + this.openid = Optional.ofNullable(openid); return this; } /** - *

When enabled, requests the profile scope from LinkedIn to access profile information.

+ *

Always-true flag that ensures the LinkedIn profile scope (r_basicprofile/r_liteprofile/profile) is requested.

*/ @JsonSetter(value = "profile", nulls = Nulls.SKIP) public Builder profile(Optional profile) { @@ -387,15 +506,19 @@ public Builder profile(Boolean profile) { public ConnectionOptionsLinkedin build() { return new ConnectionOptionsLinkedin( + nonPersistentAttrs, clientId, clientSecret, + freeformScopes, scope, setUserRootAttributes, - upstreamParams, - nonPersistentAttrs, strategyVersion, + upstreamParams, basicProfile, email, + fullProfile, + network, + openid, profile, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionTokenEndpointAuthSigningAlgEnum.java index eb8565203..792a55219 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionTokenEndpointAuthSigningAlgEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionTokenEndpointAuthSigningAlgEnum.java @@ -16,9 +16,18 @@ public final class ConnectionTokenEndpointAuthSigningAlgEnum { public static final ConnectionTokenEndpointAuthSigningAlgEnum PS256 = new ConnectionTokenEndpointAuthSigningAlgEnum(Value.PS256, "PS256"); + public static final ConnectionTokenEndpointAuthSigningAlgEnum ES384 = + new ConnectionTokenEndpointAuthSigningAlgEnum(Value.ES384, "ES384"); + + public static final ConnectionTokenEndpointAuthSigningAlgEnum PS384 = + new ConnectionTokenEndpointAuthSigningAlgEnum(Value.PS384, "PS384"); + public static final ConnectionTokenEndpointAuthSigningAlgEnum RS256 = new ConnectionTokenEndpointAuthSigningAlgEnum(Value.RS256, "RS256"); + public static final ConnectionTokenEndpointAuthSigningAlgEnum RS384 = + new ConnectionTokenEndpointAuthSigningAlgEnum(Value.RS384, "RS384"); + private final Value value; private final String string; @@ -58,8 +67,14 @@ public T visit(Visitor visitor) { return visitor.visitEs256(); case PS256: return visitor.visitPs256(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); case RS256: return visitor.visitRs256(); + case RS384: + return visitor.visitRs384(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -75,8 +90,14 @@ public static ConnectionTokenEndpointAuthSigningAlgEnum valueOf(String value) { return ES256; case "PS256": return PS256; + case "ES384": + return ES384; + case "PS384": + return PS384; case "RS256": return RS256; + case "RS384": + return RS384; default: return new ConnectionTokenEndpointAuthSigningAlgEnum(Value.UNKNOWN, value); } @@ -85,10 +106,16 @@ public static ConnectionTokenEndpointAuthSigningAlgEnum valueOf(String value) { public enum Value { ES256, + ES384, + PS256, + PS384, + RS256, + RS384, + RS512, UNKNOWN @@ -97,10 +124,16 @@ public enum Value { public interface Visitor { T visitEs256(); + T visitEs384(); + T visitPs256(); + T visitPs384(); + T visitRs256(); + T visitRs384(); + T visitRs512(); T visitUnknown(String unknownType); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java index 317749917..505a2cf76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java @@ -269,6 +269,9 @@ public Optional getOidcLogout() { return oidcLogout; } + /** + * @return Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) + */ @JsonProperty("oidc_backchannel_logout") public Optional getOidcBackchannelLogout() { return oidcBackchannelLogout; @@ -798,6 +801,9 @@ public interface _FinalStage { _FinalStage oidcLogout(ClientOidcBackchannelLogoutSettings oidcLogout); + /** + *

Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)

+ */ _FinalStage oidcBackchannelLogout(Optional oidcBackchannelLogout); _FinalStage oidcBackchannelLogout(ClientOidcBackchannelLogoutSettings oidcBackchannelLogout); @@ -2161,12 +2167,19 @@ public _FinalStage sessionTransfer( return this; } + /** + *

Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage oidcBackchannelLogout(ClientOidcBackchannelLogoutSettings oidcBackchannelLogout) { this.oidcBackchannelLogout = Optional.ofNullable(oidcBackchannelLogout); return this; } + /** + *

Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)

+ */ @java.lang.Override @JsonSetter(value = "oidc_backchannel_logout", nulls = Nulls.SKIP) public _FinalStage oidcBackchannelLogout(Optional oidcBackchannelLogout) { diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java index 821c0efed..679c70b37 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java @@ -77,6 +77,9 @@ public Optional> getDependencies() { return dependencies; } + /** + * @return Execution stage of this rule. Can be credentials-exchange, pre-user-registration, post-user-registration, post-change-password, or send-phone-message. + */ @JsonProperty("triggerId") public HookTriggerIdEnum getTriggerId() { return triggerId; @@ -132,6 +135,9 @@ public interface ScriptStage { } public interface TriggerIdStage { + /** + *

Execution stage of this rule. Can be credentials-exchange, pre-user-registration, post-user-registration, post-change-password, or send-phone-message.

+ */ _FinalStage triggerId(@NotNull HookTriggerIdEnum triggerId); } @@ -205,6 +211,11 @@ public TriggerIdStage script(@NotNull String script) { return this; } + /** + *

Execution stage of this rule. Can be credentials-exchange, pre-user-registration, post-user-registration, post-change-password, or send-phone-message.

+ *

Execution stage of this rule. Can be credentials-exchange, pre-user-registration, post-user-registration, post-change-password, or send-phone-message.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override @JsonSetter("triggerId") public _FinalStage triggerId(@NotNull HookTriggerIdEnum triggerId) { diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java index 8174a9881..6a60aeffb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java @@ -12,42 +12,44 @@ import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateScimConfigurationResponseContent.Builder.class) public final class CreateScimConfigurationResponseContent { - private final Optional connectionId; + private final String connectionId; - private final Optional connectionName; + private final String connectionName; - private final Optional strategy; + private final String strategy; - private final Optional tenantName; + private final String tenantName; - private final Optional userIdAttribute; + private final String userIdAttribute; - private final Optional> mapping; + private final List mapping; - private final Optional createdAt; + private final OffsetDateTime createdAt; - private final Optional updatedOn; + private final OffsetDateTime updatedOn; private final Map additionalProperties; private CreateScimConfigurationResponseContent( - Optional connectionId, - Optional connectionName, - Optional strategy, - Optional tenantName, - Optional userIdAttribute, - Optional> mapping, - Optional createdAt, - Optional updatedOn, + String connectionId, + String connectionName, + String strategy, + String tenantName, + String userIdAttribute, + List mapping, + OffsetDateTime createdAt, + OffsetDateTime updatedOn, Map additionalProperties) { this.connectionId = connectionId; this.connectionName = connectionName; @@ -64,15 +66,15 @@ private CreateScimConfigurationResponseContent( * @return The connection's identifier */ @JsonProperty("connection_id") - public Optional getConnectionId() { + public String getConnectionId() { return connectionId; } /** - * @return The connection's identifier + * @return The connection's name */ @JsonProperty("connection_name") - public Optional getConnectionName() { + public String getConnectionName() { return connectionName; } @@ -80,7 +82,7 @@ public Optional getConnectionName() { * @return The connection's strategy */ @JsonProperty("strategy") - public Optional getStrategy() { + public String getStrategy() { return strategy; } @@ -88,7 +90,7 @@ public Optional getStrategy() { * @return The tenant's name */ @JsonProperty("tenant_name") - public Optional getTenantName() { + public String getTenantName() { return tenantName; } @@ -96,7 +98,7 @@ public Optional getTenantName() { * @return User ID attribute for generating unique user ids */ @JsonProperty("user_id_attribute") - public Optional getUserIdAttribute() { + public String getUserIdAttribute() { return userIdAttribute; } @@ -104,23 +106,23 @@ public Optional getUserIdAttribute() { * @return The mapping between auth0 and SCIM */ @JsonProperty("mapping") - public Optional> getMapping() { + public List getMapping() { return mapping; } /** - * @return The Date Time Scim Configuration was created + * @return The ISO 8601 date and time the SCIM configuration was created at */ @JsonProperty("created_at") - public Optional getCreatedAt() { + public OffsetDateTime getCreatedAt() { return createdAt; } /** - * @return The Date Time Scim Configuration was last updated + * @return The ISO 8601 date and time the SCIM configuration was last updated on */ @JsonProperty("updated_on") - public Optional getUpdatedOn() { + public OffsetDateTime getUpdatedOn() { return updatedOn; } @@ -165,33 +167,110 @@ public String toString() { return ObjectMappers.stringify(this); } - public static Builder builder() { + public static ConnectionIdStage builder() { return new Builder(); } + public interface ConnectionIdStage { + /** + *

The connection's identifier

+ */ + ConnectionNameStage connectionId(@NotNull String connectionId); + + Builder from(CreateScimConfigurationResponseContent other); + } + + public interface ConnectionNameStage { + /** + *

The connection's name

+ */ + StrategyStage connectionName(@NotNull String connectionName); + } + + public interface StrategyStage { + /** + *

The connection's strategy

+ */ + TenantNameStage strategy(@NotNull String strategy); + } + + public interface TenantNameStage { + /** + *

The tenant's name

+ */ + UserIdAttributeStage tenantName(@NotNull String tenantName); + } + + public interface UserIdAttributeStage { + /** + *

User ID attribute for generating unique user ids

+ */ + CreatedAtStage userIdAttribute(@NotNull String userIdAttribute); + } + + public interface CreatedAtStage { + /** + *

The ISO 8601 date and time the SCIM configuration was created at

+ */ + UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface UpdatedOnStage { + /** + *

The ISO 8601 date and time the SCIM configuration was last updated on

+ */ + _FinalStage updatedOn(@NotNull OffsetDateTime updatedOn); + } + + public interface _FinalStage { + CreateScimConfigurationResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The mapping between auth0 and SCIM

+ */ + _FinalStage mapping(List mapping); + + _FinalStage addMapping(ScimMappingItem mapping); + + _FinalStage addAllMapping(List mapping); + } + @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional connectionId = Optional.empty(); + public static final class Builder + implements ConnectionIdStage, + ConnectionNameStage, + StrategyStage, + TenantNameStage, + UserIdAttributeStage, + CreatedAtStage, + UpdatedOnStage, + _FinalStage { + private String connectionId; - private Optional connectionName = Optional.empty(); + private String connectionName; - private Optional strategy = Optional.empty(); + private String strategy; - private Optional tenantName = Optional.empty(); + private String tenantName; - private Optional userIdAttribute = Optional.empty(); + private String userIdAttribute; - private Optional> mapping = Optional.empty(); + private OffsetDateTime createdAt; - private Optional createdAt = Optional.empty(); + private OffsetDateTime updatedOn; - private Optional updatedOn = Optional.empty(); + private List mapping = new ArrayList<>(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); private Builder() {} + @java.lang.Override public Builder from(CreateScimConfigurationResponseContent other) { connectionId(other.getConnectionId()); connectionName(other.getConnectionName()); @@ -206,116 +285,124 @@ public Builder from(CreateScimConfigurationResponseContent other) { /** *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "connection_id", nulls = Nulls.SKIP) - public Builder connectionId(Optional connectionId) { - this.connectionId = connectionId; - return this; - } - - public Builder connectionId(String connectionId) { - this.connectionId = Optional.ofNullable(connectionId); + @java.lang.Override + @JsonSetter("connection_id") + public ConnectionNameStage connectionId(@NotNull String connectionId) { + this.connectionId = Objects.requireNonNull(connectionId, "connectionId must not be null"); return this; } /** - *

The connection's identifier

+ *

The connection's name

+ *

The connection's name

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "connection_name", nulls = Nulls.SKIP) - public Builder connectionName(Optional connectionName) { - this.connectionName = connectionName; - return this; - } - - public Builder connectionName(String connectionName) { - this.connectionName = Optional.ofNullable(connectionName); + @java.lang.Override + @JsonSetter("connection_name") + public StrategyStage connectionName(@NotNull String connectionName) { + this.connectionName = Objects.requireNonNull(connectionName, "connectionName must not be null"); return this; } /** *

The connection's strategy

+ *

The connection's strategy

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "strategy", nulls = Nulls.SKIP) - public Builder strategy(Optional strategy) { - this.strategy = strategy; - return this; - } - - public Builder strategy(String strategy) { - this.strategy = Optional.ofNullable(strategy); + @java.lang.Override + @JsonSetter("strategy") + public TenantNameStage strategy(@NotNull String strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); return this; } /** *

The tenant's name

+ *

The tenant's name

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "tenant_name", nulls = Nulls.SKIP) - public Builder tenantName(Optional tenantName) { - this.tenantName = tenantName; - return this; - } - - public Builder tenantName(String tenantName) { - this.tenantName = Optional.ofNullable(tenantName); + @java.lang.Override + @JsonSetter("tenant_name") + public UserIdAttributeStage tenantName(@NotNull String tenantName) { + this.tenantName = Objects.requireNonNull(tenantName, "tenantName must not be null"); return this; } /** *

User ID attribute for generating unique user ids

+ *

User ID attribute for generating unique user ids

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) - public Builder userIdAttribute(Optional userIdAttribute) { - this.userIdAttribute = userIdAttribute; - return this; - } - - public Builder userIdAttribute(String userIdAttribute) { - this.userIdAttribute = Optional.ofNullable(userIdAttribute); + @java.lang.Override + @JsonSetter("user_id_attribute") + public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { + this.userIdAttribute = Objects.requireNonNull(userIdAttribute, "userIdAttribute must not be null"); return this; } /** - *

The mapping between auth0 and SCIM

+ *

The ISO 8601 date and time the SCIM configuration was created at

+ *

The ISO 8601 date and time the SCIM configuration was created at

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "mapping", nulls = Nulls.SKIP) - public Builder mapping(Optional> mapping) { - this.mapping = mapping; - return this; - } - - public Builder mapping(List mapping) { - this.mapping = Optional.ofNullable(mapping); + @java.lang.Override + @JsonSetter("created_at") + public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } /** - *

The Date Time Scim Configuration was created

+ *

The ISO 8601 date and time the SCIM configuration was last updated on

+ *

The ISO 8601 date and time the SCIM configuration was last updated on

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "created_at", nulls = Nulls.SKIP) - public Builder createdAt(Optional createdAt) { - this.createdAt = createdAt; + @java.lang.Override + @JsonSetter("updated_on") + public _FinalStage updatedOn(@NotNull OffsetDateTime updatedOn) { + this.updatedOn = Objects.requireNonNull(updatedOn, "updatedOn must not be null"); return this; } - public Builder createdAt(String createdAt) { - this.createdAt = Optional.ofNullable(createdAt); + /** + *

The mapping between auth0 and SCIM

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllMapping(List mapping) { + if (mapping != null) { + this.mapping.addAll(mapping); + } return this; } /** - *

The Date Time Scim Configuration was last updated

+ *

The mapping between auth0 and SCIM

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "updated_on", nulls = Nulls.SKIP) - public Builder updatedOn(Optional updatedOn) { - this.updatedOn = updatedOn; + @java.lang.Override + public _FinalStage addMapping(ScimMappingItem mapping) { + this.mapping.add(mapping); return this; } - public Builder updatedOn(String updatedOn) { - this.updatedOn = Optional.ofNullable(updatedOn); + /** + *

The mapping between auth0 and SCIM

+ */ + @java.lang.Override + @JsonSetter(value = "mapping", nulls = Nulls.SKIP) + public _FinalStage mapping(List mapping) { + this.mapping.clear(); + if (mapping != null) { + this.mapping.addAll(mapping); + } return this; } + @java.lang.Override public CreateScimConfigurationResponseContent build() { return new CreateScimConfigurationResponseContent( connectionId, @@ -329,11 +416,13 @@ public CreateScimConfigurationResponseContent build() { additionalProperties); } + @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } + @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java index 82e170ebd..d59bfd931 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java @@ -132,6 +132,9 @@ public Optional> getAuthenticationMetho return authenticationMethods; } + /** + * @return Preferred phone authentication method + */ @JsonProperty("preferred_authentication_method") public Optional getPreferredAuthenticationMethod() { return preferredAuthenticationMethod; @@ -284,6 +287,9 @@ public interface _FinalStage { _FinalStage authenticationMethods(List authenticationMethods); + /** + *

Preferred phone authentication method

+ */ _FinalStage preferredAuthenticationMethod( Optional preferredAuthenticationMethod); @@ -483,6 +489,10 @@ public _FinalStage keyId(Optional keyId) { return this; } + /** + *

Preferred phone authentication method

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage preferredAuthenticationMethod( PreferredAuthenticationMethodEnum preferredAuthenticationMethod) { @@ -490,6 +500,9 @@ public _FinalStage preferredAuthenticationMethod( return this; } + /** + *

Preferred phone authentication method

+ */ @java.lang.Override @JsonSetter(value = "preferred_authentication_method", nulls = Nulls.SKIP) public _FinalStage preferredAuthenticationMethod( diff --git a/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java b/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java index 2d411b18c..49611292a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java @@ -75,6 +75,9 @@ public Optional getDeviceId() { return deviceId; } + /** + * @return Type of credential. Can be public_key, refresh_token, or rotating_refresh_token. + */ @JsonProperty("type") public Optional getType() { return type; @@ -201,6 +204,9 @@ public Builder deviceId(String deviceId) { return this; } + /** + *

Type of credential. Can be public_key, refresh_token, or rotating_refresh_token.

+ */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java index 9b1d46964..ccda69509 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java @@ -91,6 +91,9 @@ public Optional getScreen() { return screen; } + /** + * @return Rendering mode + */ @JsonProperty("rendering_mode") public Optional getRenderingMode() { return renderingMode; @@ -286,6 +289,9 @@ public Builder screen(String screen) { return this; } + /** + *

Rendering mode

+ */ @JsonSetter(value = "rendering_mode", nulls = Nulls.SKIP) public Builder renderingMode(Optional renderingMode) { this.renderingMode = renderingMode; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java index 7f026d52c..9e45660ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java @@ -12,42 +12,44 @@ import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetScimConfigurationResponseContent.Builder.class) public final class GetScimConfigurationResponseContent { - private final Optional connectionId; + private final String connectionId; - private final Optional connectionName; + private final String connectionName; - private final Optional strategy; + private final String strategy; - private final Optional tenantName; + private final String tenantName; - private final Optional userIdAttribute; + private final String userIdAttribute; - private final Optional> mapping; + private final List mapping; - private final Optional createdAt; + private final OffsetDateTime createdAt; - private final Optional updatedOn; + private final OffsetDateTime updatedOn; private final Map additionalProperties; private GetScimConfigurationResponseContent( - Optional connectionId, - Optional connectionName, - Optional strategy, - Optional tenantName, - Optional userIdAttribute, - Optional> mapping, - Optional createdAt, - Optional updatedOn, + String connectionId, + String connectionName, + String strategy, + String tenantName, + String userIdAttribute, + List mapping, + OffsetDateTime createdAt, + OffsetDateTime updatedOn, Map additionalProperties) { this.connectionId = connectionId; this.connectionName = connectionName; @@ -64,15 +66,15 @@ private GetScimConfigurationResponseContent( * @return The connection's identifier */ @JsonProperty("connection_id") - public Optional getConnectionId() { + public String getConnectionId() { return connectionId; } /** - * @return The connection's identifier + * @return The connection's name */ @JsonProperty("connection_name") - public Optional getConnectionName() { + public String getConnectionName() { return connectionName; } @@ -80,7 +82,7 @@ public Optional getConnectionName() { * @return The connection's strategy */ @JsonProperty("strategy") - public Optional getStrategy() { + public String getStrategy() { return strategy; } @@ -88,7 +90,7 @@ public Optional getStrategy() { * @return The tenant's name */ @JsonProperty("tenant_name") - public Optional getTenantName() { + public String getTenantName() { return tenantName; } @@ -96,7 +98,7 @@ public Optional getTenantName() { * @return User ID attribute for generating unique user ids */ @JsonProperty("user_id_attribute") - public Optional getUserIdAttribute() { + public String getUserIdAttribute() { return userIdAttribute; } @@ -104,23 +106,23 @@ public Optional getUserIdAttribute() { * @return The mapping between auth0 and SCIM */ @JsonProperty("mapping") - public Optional> getMapping() { + public List getMapping() { return mapping; } /** - * @return The Date Time Scim Configuration was created + * @return The ISO 8601 date and time the SCIM configuration was created at */ @JsonProperty("created_at") - public Optional getCreatedAt() { + public OffsetDateTime getCreatedAt() { return createdAt; } /** - * @return The Date Time Scim Configuration was last updated + * @return The ISO 8601 date and time the SCIM configuration was last updated on */ @JsonProperty("updated_on") - public Optional getUpdatedOn() { + public OffsetDateTime getUpdatedOn() { return updatedOn; } @@ -165,33 +167,110 @@ public String toString() { return ObjectMappers.stringify(this); } - public static Builder builder() { + public static ConnectionIdStage builder() { return new Builder(); } + public interface ConnectionIdStage { + /** + *

The connection's identifier

+ */ + ConnectionNameStage connectionId(@NotNull String connectionId); + + Builder from(GetScimConfigurationResponseContent other); + } + + public interface ConnectionNameStage { + /** + *

The connection's name

+ */ + StrategyStage connectionName(@NotNull String connectionName); + } + + public interface StrategyStage { + /** + *

The connection's strategy

+ */ + TenantNameStage strategy(@NotNull String strategy); + } + + public interface TenantNameStage { + /** + *

The tenant's name

+ */ + UserIdAttributeStage tenantName(@NotNull String tenantName); + } + + public interface UserIdAttributeStage { + /** + *

User ID attribute for generating unique user ids

+ */ + CreatedAtStage userIdAttribute(@NotNull String userIdAttribute); + } + + public interface CreatedAtStage { + /** + *

The ISO 8601 date and time the SCIM configuration was created at

+ */ + UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface UpdatedOnStage { + /** + *

The ISO 8601 date and time the SCIM configuration was last updated on

+ */ + _FinalStage updatedOn(@NotNull OffsetDateTime updatedOn); + } + + public interface _FinalStage { + GetScimConfigurationResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The mapping between auth0 and SCIM

+ */ + _FinalStage mapping(List mapping); + + _FinalStage addMapping(ScimMappingItem mapping); + + _FinalStage addAllMapping(List mapping); + } + @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional connectionId = Optional.empty(); + public static final class Builder + implements ConnectionIdStage, + ConnectionNameStage, + StrategyStage, + TenantNameStage, + UserIdAttributeStage, + CreatedAtStage, + UpdatedOnStage, + _FinalStage { + private String connectionId; - private Optional connectionName = Optional.empty(); + private String connectionName; - private Optional strategy = Optional.empty(); + private String strategy; - private Optional tenantName = Optional.empty(); + private String tenantName; - private Optional userIdAttribute = Optional.empty(); + private String userIdAttribute; - private Optional> mapping = Optional.empty(); + private OffsetDateTime createdAt; - private Optional createdAt = Optional.empty(); + private OffsetDateTime updatedOn; - private Optional updatedOn = Optional.empty(); + private List mapping = new ArrayList<>(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); private Builder() {} + @java.lang.Override public Builder from(GetScimConfigurationResponseContent other) { connectionId(other.getConnectionId()); connectionName(other.getConnectionName()); @@ -206,116 +285,124 @@ public Builder from(GetScimConfigurationResponseContent other) { /** *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "connection_id", nulls = Nulls.SKIP) - public Builder connectionId(Optional connectionId) { - this.connectionId = connectionId; - return this; - } - - public Builder connectionId(String connectionId) { - this.connectionId = Optional.ofNullable(connectionId); + @java.lang.Override + @JsonSetter("connection_id") + public ConnectionNameStage connectionId(@NotNull String connectionId) { + this.connectionId = Objects.requireNonNull(connectionId, "connectionId must not be null"); return this; } /** - *

The connection's identifier

+ *

The connection's name

+ *

The connection's name

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "connection_name", nulls = Nulls.SKIP) - public Builder connectionName(Optional connectionName) { - this.connectionName = connectionName; - return this; - } - - public Builder connectionName(String connectionName) { - this.connectionName = Optional.ofNullable(connectionName); + @java.lang.Override + @JsonSetter("connection_name") + public StrategyStage connectionName(@NotNull String connectionName) { + this.connectionName = Objects.requireNonNull(connectionName, "connectionName must not be null"); return this; } /** *

The connection's strategy

+ *

The connection's strategy

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "strategy", nulls = Nulls.SKIP) - public Builder strategy(Optional strategy) { - this.strategy = strategy; - return this; - } - - public Builder strategy(String strategy) { - this.strategy = Optional.ofNullable(strategy); + @java.lang.Override + @JsonSetter("strategy") + public TenantNameStage strategy(@NotNull String strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); return this; } /** *

The tenant's name

+ *

The tenant's name

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "tenant_name", nulls = Nulls.SKIP) - public Builder tenantName(Optional tenantName) { - this.tenantName = tenantName; - return this; - } - - public Builder tenantName(String tenantName) { - this.tenantName = Optional.ofNullable(tenantName); + @java.lang.Override + @JsonSetter("tenant_name") + public UserIdAttributeStage tenantName(@NotNull String tenantName) { + this.tenantName = Objects.requireNonNull(tenantName, "tenantName must not be null"); return this; } /** *

User ID attribute for generating unique user ids

+ *

User ID attribute for generating unique user ids

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) - public Builder userIdAttribute(Optional userIdAttribute) { - this.userIdAttribute = userIdAttribute; - return this; - } - - public Builder userIdAttribute(String userIdAttribute) { - this.userIdAttribute = Optional.ofNullable(userIdAttribute); + @java.lang.Override + @JsonSetter("user_id_attribute") + public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { + this.userIdAttribute = Objects.requireNonNull(userIdAttribute, "userIdAttribute must not be null"); return this; } /** - *

The mapping between auth0 and SCIM

+ *

The ISO 8601 date and time the SCIM configuration was created at

+ *

The ISO 8601 date and time the SCIM configuration was created at

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "mapping", nulls = Nulls.SKIP) - public Builder mapping(Optional> mapping) { - this.mapping = mapping; - return this; - } - - public Builder mapping(List mapping) { - this.mapping = Optional.ofNullable(mapping); + @java.lang.Override + @JsonSetter("created_at") + public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } /** - *

The Date Time Scim Configuration was created

+ *

The ISO 8601 date and time the SCIM configuration was last updated on

+ *

The ISO 8601 date and time the SCIM configuration was last updated on

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "created_at", nulls = Nulls.SKIP) - public Builder createdAt(Optional createdAt) { - this.createdAt = createdAt; + @java.lang.Override + @JsonSetter("updated_on") + public _FinalStage updatedOn(@NotNull OffsetDateTime updatedOn) { + this.updatedOn = Objects.requireNonNull(updatedOn, "updatedOn must not be null"); return this; } - public Builder createdAt(String createdAt) { - this.createdAt = Optional.ofNullable(createdAt); + /** + *

The mapping between auth0 and SCIM

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllMapping(List mapping) { + if (mapping != null) { + this.mapping.addAll(mapping); + } return this; } /** - *

The Date Time Scim Configuration was last updated

+ *

The mapping between auth0 and SCIM

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "updated_on", nulls = Nulls.SKIP) - public Builder updatedOn(Optional updatedOn) { - this.updatedOn = updatedOn; + @java.lang.Override + public _FinalStage addMapping(ScimMappingItem mapping) { + this.mapping.add(mapping); return this; } - public Builder updatedOn(String updatedOn) { - this.updatedOn = Optional.ofNullable(updatedOn); + /** + *

The mapping between auth0 and SCIM

+ */ + @java.lang.Override + @JsonSetter(value = "mapping", nulls = Nulls.SKIP) + public _FinalStage mapping(List mapping) { + this.mapping.clear(); + if (mapping != null) { + this.mapping.addAll(mapping); + } return this; } + @java.lang.Override public GetScimConfigurationResponseContent build() { return new GetScimConfigurationResponseContent( connectionId, @@ -329,11 +416,13 @@ public GetScimConfigurationResponseContent build() { additionalProperties); } + @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } + @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java index 470b7a2d0..c3f670065 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java @@ -91,6 +91,9 @@ public Optional getScreen() { return screen; } + /** + * @return Rendering mode + */ @JsonProperty("rendering_mode") public Optional getRenderingMode() { return renderingMode; @@ -286,6 +289,9 @@ public Builder screen(String screen) { return this; } + /** + *

Rendering mode

+ */ @JsonSetter(value = "rendering_mode", nulls = Nulls.SKIP) public Builder renderingMode(Optional renderingMode) { this.renderingMode = renderingMode; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListScimConfigurationsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListScimConfigurationsResponseContent.java new file mode 100644 index 000000000..01beada00 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListScimConfigurationsResponseContent.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListScimConfigurationsResponseContent.Builder.class) +public final class ListScimConfigurationsResponseContent { + private final List scimConfigurations; + + private final Optional next; + + private final Map additionalProperties; + + private ListScimConfigurationsResponseContent( + List scimConfigurations, + Optional next, + Map additionalProperties) { + this.scimConfigurations = scimConfigurations; + this.next = next; + this.additionalProperties = additionalProperties; + } + + /** + * @return List of SCIM configurations + */ + @JsonProperty("scim_configurations") + public List getScimConfigurations() { + return scimConfigurations; + } + + /** + * @return The cursor to be used as the "from" query parameter for the next page of results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListScimConfigurationsResponseContent + && equalTo((ListScimConfigurationsResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListScimConfigurationsResponseContent other) { + return scimConfigurations.equals(other.scimConfigurations) && next.equals(other.next); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.scimConfigurations, this.next); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private List scimConfigurations = new ArrayList<>(); + + private Optional next = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListScimConfigurationsResponseContent other) { + scimConfigurations(other.getScimConfigurations()); + next(other.getNext()); + return this; + } + + /** + *

List of SCIM configurations

+ */ + @JsonSetter(value = "scim_configurations", nulls = Nulls.SKIP) + public Builder scimConfigurations(List scimConfigurations) { + this.scimConfigurations.clear(); + if (scimConfigurations != null) { + this.scimConfigurations.addAll(scimConfigurations); + } + return this; + } + + public Builder addScimConfigurations(ScimConfiguration scimConfigurations) { + this.scimConfigurations.add(scimConfigurations); + return this; + } + + public Builder addAllScimConfigurations(List scimConfigurations) { + if (scimConfigurations != null) { + this.scimConfigurations.addAll(scimConfigurations); + } + return this; + } + + /** + *

The cursor to be used as the "from" query parameter for the next page of results.

+ */ + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public Builder next(Optional next) { + this.next = next; + return this; + } + + public Builder next(String next) { + this.next = Optional.ofNullable(next); + return this; + } + + public ListScimConfigurationsResponseContent build() { + return new ListScimConfigurationsResponseContent(scimConfigurations, next, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java index 2b988d3e7..8e3ec0caf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java @@ -23,6 +23,8 @@ public final class NetworkAclMatch { private final Optional> asns; + private final Optional> auth0Managed; + private final Optional> geoCountryCodes; private final Optional> geoSubdivisionCodes; @@ -41,6 +43,7 @@ public final class NetworkAclMatch { private NetworkAclMatch( Optional> asns, + Optional> auth0Managed, Optional> geoCountryCodes, Optional> geoSubdivisionCodes, Optional> ipv4Cidrs, @@ -50,6 +53,7 @@ private NetworkAclMatch( Optional> userAgents, Map additionalProperties) { this.asns = asns; + this.auth0Managed = auth0Managed; this.geoCountryCodes = geoCountryCodes; this.geoSubdivisionCodes = geoSubdivisionCodes; this.ipv4Cidrs = ipv4Cidrs; @@ -65,6 +69,11 @@ public Optional> getAsns() { return asns; } + @JsonProperty("auth0_managed") + public Optional> getAuth0Managed() { + return auth0Managed; + } + @JsonProperty("geo_country_codes") public Optional> getGeoCountryCodes() { return geoCountryCodes; @@ -113,6 +122,7 @@ public Map getAdditionalProperties() { private boolean equalTo(NetworkAclMatch other) { return asns.equals(other.asns) + && auth0Managed.equals(other.auth0Managed) && geoCountryCodes.equals(other.geoCountryCodes) && geoSubdivisionCodes.equals(other.geoSubdivisionCodes) && ipv4Cidrs.equals(other.ipv4Cidrs) @@ -126,6 +136,7 @@ private boolean equalTo(NetworkAclMatch other) { public int hashCode() { return Objects.hash( this.asns, + this.auth0Managed, this.geoCountryCodes, this.geoSubdivisionCodes, this.ipv4Cidrs, @@ -148,6 +159,8 @@ public static Builder builder() { public static final class Builder { private Optional> asns = Optional.empty(); + private Optional> auth0Managed = Optional.empty(); + private Optional> geoCountryCodes = Optional.empty(); private Optional> geoSubdivisionCodes = Optional.empty(); @@ -169,6 +182,7 @@ private Builder() {} public Builder from(NetworkAclMatch other) { asns(other.getAsns()); + auth0Managed(other.getAuth0Managed()); geoCountryCodes(other.getGeoCountryCodes()); geoSubdivisionCodes(other.getGeoSubdivisionCodes()); ipv4Cidrs(other.getIpv4Cidrs()); @@ -190,6 +204,17 @@ public Builder asns(List asns) { return this; } + @JsonSetter(value = "auth0_managed", nulls = Nulls.SKIP) + public Builder auth0Managed(Optional> auth0Managed) { + this.auth0Managed = auth0Managed; + return this; + } + + public Builder auth0Managed(List auth0Managed) { + this.auth0Managed = Optional.ofNullable(auth0Managed); + return this; + } + @JsonSetter(value = "geo_country_codes", nulls = Nulls.SKIP) public Builder geoCountryCodes(Optional> geoCountryCodes) { this.geoCountryCodes = geoCountryCodes; @@ -270,6 +295,7 @@ public Builder userAgents(List userAgents) { public NetworkAclMatch build() { return new NetworkAclMatch( asns, + auth0Managed, geoCountryCodes, geoSubdivisionCodes, ipv4Cidrs, diff --git a/src/main/java/com/auth0/client/mgmt/types/PostConnectionKeysAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/PostConnectionKeysAlgEnum.java new file mode 100644 index 000000000..061807054 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PostConnectionKeysAlgEnum.java @@ -0,0 +1,134 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class PostConnectionKeysAlgEnum { + public static final PostConnectionKeysAlgEnum RS512 = new PostConnectionKeysAlgEnum(Value.RS512, "RS512"); + + public static final PostConnectionKeysAlgEnum PS256 = new PostConnectionKeysAlgEnum(Value.PS256, "PS256"); + + public static final PostConnectionKeysAlgEnum ES256 = new PostConnectionKeysAlgEnum(Value.ES256, "ES256"); + + public static final PostConnectionKeysAlgEnum PS384 = new PostConnectionKeysAlgEnum(Value.PS384, "PS384"); + + public static final PostConnectionKeysAlgEnum ES384 = new PostConnectionKeysAlgEnum(Value.ES384, "ES384"); + + public static final PostConnectionKeysAlgEnum RS256 = new PostConnectionKeysAlgEnum(Value.RS256, "RS256"); + + public static final PostConnectionKeysAlgEnum RS384 = new PostConnectionKeysAlgEnum(Value.RS384, "RS384"); + + private final Value value; + + private final String string; + + PostConnectionKeysAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof PostConnectionKeysAlgEnum + && this.string.equals(((PostConnectionKeysAlgEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case PS256: + return visitor.visitPs256(); + case ES256: + return visitor.visitEs256(); + case PS384: + return visitor.visitPs384(); + case ES384: + return visitor.visitEs384(); + case RS256: + return visitor.visitRs256(); + case RS384: + return visitor.visitRs384(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static PostConnectionKeysAlgEnum valueOf(String value) { + switch (value) { + case "RS512": + return RS512; + case "PS256": + return PS256; + case "ES256": + return ES256; + case "PS384": + return PS384; + case "ES384": + return ES384; + case "RS256": + return RS256; + case "RS384": + return RS384; + default: + return new PostConnectionKeysAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + RS256, + + RS384, + + RS512, + + PS256, + + PS384, + + ES256, + + ES384, + + UNKNOWN + } + + public interface Visitor { + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitPs256(); + + T visitPs384(); + + T visitEs256(); + + T visitEs384(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PostConnectionKeysRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/PostConnectionKeysRequestContent.java new file mode 100644 index 000000000..69e04e76c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PostConnectionKeysRequestContent.java @@ -0,0 +1,106 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PostConnectionKeysRequestContent.Builder.class) +public final class PostConnectionKeysRequestContent { + private final Optional signingAlg; + + private final Map additionalProperties; + + private PostConnectionKeysRequestContent( + Optional signingAlg, Map additionalProperties) { + this.signingAlg = signingAlg; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("signing_alg") + public Optional getSigningAlg() { + return signingAlg; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PostConnectionKeysRequestContent && equalTo((PostConnectionKeysRequestContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PostConnectionKeysRequestContent other) { + return signingAlg.equals(other.signingAlg); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.signingAlg); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional signingAlg = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(PostConnectionKeysRequestContent other) { + signingAlg(other.getSigningAlg()); + return this; + } + + @JsonSetter(value = "signing_alg", nulls = Nulls.SKIP) + public Builder signingAlg(Optional signingAlg) { + this.signingAlg = signingAlg; + return this; + } + + public Builder signingAlg(PostConnectionKeysAlgEnum signingAlg) { + this.signingAlg = Optional.ofNullable(signingAlg); + return this; + } + + public PostConnectionKeysRequestContent build() { + return new PostConnectionKeysRequestContent(signingAlg, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java new file mode 100644 index 000000000..042ede4e7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java @@ -0,0 +1,537 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PostConnectionsKeysResponseContentItem.Builder.class) +public final class PostConnectionsKeysResponseContentItem { + private final String kid; + + private final String cert; + + private final Optional pkcs; + + private final Optional current; + + private final Optional next; + + private final Optional currentSince; + + private final String fingerprint; + + private final String thumbprint; + + private final Optional algorithm; + + private final Optional keyUse; + + private final Optional subjectDn; + + private final Map additionalProperties; + + private PostConnectionsKeysResponseContentItem( + String kid, + String cert, + Optional pkcs, + Optional current, + Optional next, + Optional currentSince, + String fingerprint, + String thumbprint, + Optional algorithm, + Optional keyUse, + Optional subjectDn, + Map additionalProperties) { + this.kid = kid; + this.cert = cert; + this.pkcs = pkcs; + this.current = current; + this.next = next; + this.currentSince = currentSince; + this.fingerprint = fingerprint; + this.thumbprint = thumbprint; + this.algorithm = algorithm; + this.keyUse = keyUse; + this.subjectDn = subjectDn; + this.additionalProperties = additionalProperties; + } + + /** + * @return The key id of the signing key + */ + @JsonProperty("kid") + public String getKid() { + return kid; + } + + /** + * @return The public certificate of the signing key + */ + @JsonProperty("cert") + public String getCert() { + return cert; + } + + /** + * @return The public certificate of the signing key in pkcs7 format + */ + @JsonProperty("pkcs") + public Optional getPkcs() { + return pkcs; + } + + /** + * @return True if the key is the current key + */ + @JsonProperty("current") + public Optional getCurrent() { + return current; + } + + /** + * @return True if the key is the next key + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + /** + * @return The date and time when the key became the current key + */ + @JsonProperty("current_since") + public Optional getCurrentSince() { + return currentSince; + } + + /** + * @return The cert fingerprint + */ + @JsonProperty("fingerprint") + public String getFingerprint() { + return fingerprint; + } + + /** + * @return The cert thumbprint + */ + @JsonProperty("thumbprint") + public String getThumbprint() { + return thumbprint; + } + + /** + * @return Signing key algorithm + */ + @JsonProperty("algorithm") + public Optional getAlgorithm() { + return algorithm; + } + + @JsonProperty("key_use") + public Optional getKeyUse() { + return keyUse; + } + + @JsonProperty("subject_dn") + public Optional getSubjectDn() { + return subjectDn; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PostConnectionsKeysResponseContentItem + && equalTo((PostConnectionsKeysResponseContentItem) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PostConnectionsKeysResponseContentItem other) { + return kid.equals(other.kid) + && cert.equals(other.cert) + && pkcs.equals(other.pkcs) + && current.equals(other.current) + && next.equals(other.next) + && currentSince.equals(other.currentSince) + && fingerprint.equals(other.fingerprint) + && thumbprint.equals(other.thumbprint) + && algorithm.equals(other.algorithm) + && keyUse.equals(other.keyUse) + && subjectDn.equals(other.subjectDn); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.kid, + this.cert, + this.pkcs, + this.current, + this.next, + this.currentSince, + this.fingerprint, + this.thumbprint, + this.algorithm, + this.keyUse, + this.subjectDn); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static KidStage builder() { + return new Builder(); + } + + public interface KidStage { + /** + *

The key id of the signing key

+ */ + CertStage kid(@NotNull String kid); + + Builder from(PostConnectionsKeysResponseContentItem other); + } + + public interface CertStage { + /** + *

The public certificate of the signing key

+ */ + FingerprintStage cert(@NotNull String cert); + } + + public interface FingerprintStage { + /** + *

The cert fingerprint

+ */ + ThumbprintStage fingerprint(@NotNull String fingerprint); + } + + public interface ThumbprintStage { + /** + *

The cert thumbprint

+ */ + _FinalStage thumbprint(@NotNull String thumbprint); + } + + public interface _FinalStage { + PostConnectionsKeysResponseContentItem build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The public certificate of the signing key in pkcs7 format

+ */ + _FinalStage pkcs(Optional pkcs); + + _FinalStage pkcs(String pkcs); + + /** + *

True if the key is the current key

+ */ + _FinalStage current(Optional current); + + _FinalStage current(Boolean current); + + /** + *

True if the key is the next key

+ */ + _FinalStage next(Optional next); + + _FinalStage next(Boolean next); + + /** + *

The date and time when the key became the current key

+ */ + _FinalStage currentSince(Optional currentSince); + + _FinalStage currentSince(String currentSince); + + /** + *

Signing key algorithm

+ */ + _FinalStage algorithm(Optional algorithm); + + _FinalStage algorithm(String algorithm); + + _FinalStage keyUse(Optional keyUse); + + _FinalStage keyUse(ConnectionKeyUseEnum keyUse); + + _FinalStage subjectDn(Optional subjectDn); + + _FinalStage subjectDn(String subjectDn); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements KidStage, CertStage, FingerprintStage, ThumbprintStage, _FinalStage { + private String kid; + + private String cert; + + private String fingerprint; + + private String thumbprint; + + private Optional subjectDn = Optional.empty(); + + private Optional keyUse = Optional.empty(); + + private Optional algorithm = Optional.empty(); + + private Optional currentSince = Optional.empty(); + + private Optional next = Optional.empty(); + + private Optional current = Optional.empty(); + + private Optional pkcs = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(PostConnectionsKeysResponseContentItem other) { + kid(other.getKid()); + cert(other.getCert()); + pkcs(other.getPkcs()); + current(other.getCurrent()); + next(other.getNext()); + currentSince(other.getCurrentSince()); + fingerprint(other.getFingerprint()); + thumbprint(other.getThumbprint()); + algorithm(other.getAlgorithm()); + keyUse(other.getKeyUse()); + subjectDn(other.getSubjectDn()); + return this; + } + + /** + *

The key id of the signing key

+ *

The key id of the signing key

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("kid") + public CertStage kid(@NotNull String kid) { + this.kid = Objects.requireNonNull(kid, "kid must not be null"); + return this; + } + + /** + *

The public certificate of the signing key

+ *

The public certificate of the signing key

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("cert") + public FingerprintStage cert(@NotNull String cert) { + this.cert = Objects.requireNonNull(cert, "cert must not be null"); + return this; + } + + /** + *

The cert fingerprint

+ *

The cert fingerprint

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("fingerprint") + public ThumbprintStage fingerprint(@NotNull String fingerprint) { + this.fingerprint = Objects.requireNonNull(fingerprint, "fingerprint must not be null"); + return this; + } + + /** + *

The cert thumbprint

+ *

The cert thumbprint

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("thumbprint") + public _FinalStage thumbprint(@NotNull String thumbprint) { + this.thumbprint = Objects.requireNonNull(thumbprint, "thumbprint must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage subjectDn(String subjectDn) { + this.subjectDn = Optional.ofNullable(subjectDn); + return this; + } + + @java.lang.Override + @JsonSetter(value = "subject_dn", nulls = Nulls.SKIP) + public _FinalStage subjectDn(Optional subjectDn) { + this.subjectDn = subjectDn; + return this; + } + + @java.lang.Override + public _FinalStage keyUse(ConnectionKeyUseEnum keyUse) { + this.keyUse = Optional.ofNullable(keyUse); + return this; + } + + @java.lang.Override + @JsonSetter(value = "key_use", nulls = Nulls.SKIP) + public _FinalStage keyUse(Optional keyUse) { + this.keyUse = keyUse; + return this; + } + + /** + *

Signing key algorithm

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithm(String algorithm) { + this.algorithm = Optional.ofNullable(algorithm); + return this; + } + + /** + *

Signing key algorithm

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm", nulls = Nulls.SKIP) + public _FinalStage algorithm(Optional algorithm) { + this.algorithm = algorithm; + return this; + } + + /** + *

The date and time when the key became the current key

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage currentSince(String currentSince) { + this.currentSince = Optional.ofNullable(currentSince); + return this; + } + + /** + *

The date and time when the key became the current key

+ */ + @java.lang.Override + @JsonSetter(value = "current_since", nulls = Nulls.SKIP) + public _FinalStage currentSince(Optional currentSince) { + this.currentSince = currentSince; + return this; + } + + /** + *

True if the key is the next key

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage next(Boolean next) { + this.next = Optional.ofNullable(next); + return this; + } + + /** + *

True if the key is the next key

+ */ + @java.lang.Override + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public _FinalStage next(Optional next) { + this.next = next; + return this; + } + + /** + *

True if the key is the current key

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage current(Boolean current) { + this.current = Optional.ofNullable(current); + return this; + } + + /** + *

True if the key is the current key

+ */ + @java.lang.Override + @JsonSetter(value = "current", nulls = Nulls.SKIP) + public _FinalStage current(Optional current) { + this.current = current; + return this; + } + + /** + *

The public certificate of the signing key in pkcs7 format

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage pkcs(String pkcs) { + this.pkcs = Optional.ofNullable(pkcs); + return this; + } + + /** + *

The public certificate of the signing key in pkcs7 format

+ */ + @java.lang.Override + @JsonSetter(value = "pkcs", nulls = Nulls.SKIP) + public _FinalStage pkcs(Optional pkcs) { + this.pkcs = pkcs; + return this; + } + + @java.lang.Override + public PostConnectionsKeysResponseContentItem build() { + return new PostConnectionsKeysResponseContentItem( + kid, + cert, + pkcs, + current, + next, + currentSince, + fingerprint, + thumbprint, + algorithm, + keyUse, + subjectDn, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysSigningAlgEnum.java index 912cd24f4..0977570d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysSigningAlgEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysSigningAlgEnum.java @@ -16,9 +16,18 @@ public final class RotateConnectionKeysSigningAlgEnum { public static final RotateConnectionKeysSigningAlgEnum ES256 = new RotateConnectionKeysSigningAlgEnum(Value.ES256, "ES256"); + public static final RotateConnectionKeysSigningAlgEnum PS384 = + new RotateConnectionKeysSigningAlgEnum(Value.PS384, "PS384"); + + public static final RotateConnectionKeysSigningAlgEnum ES384 = + new RotateConnectionKeysSigningAlgEnum(Value.ES384, "ES384"); + public static final RotateConnectionKeysSigningAlgEnum RS256 = new RotateConnectionKeysSigningAlgEnum(Value.RS256, "RS256"); + public static final RotateConnectionKeysSigningAlgEnum RS384 = + new RotateConnectionKeysSigningAlgEnum(Value.RS384, "RS384"); + private final Value value; private final String string; @@ -58,8 +67,14 @@ public T visit(Visitor visitor) { return visitor.visitPs256(); case ES256: return visitor.visitEs256(); + case PS384: + return visitor.visitPs384(); + case ES384: + return visitor.visitEs384(); case RS256: return visitor.visitRs256(); + case RS384: + return visitor.visitRs384(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -75,8 +90,14 @@ public static RotateConnectionKeysSigningAlgEnum valueOf(String value) { return PS256; case "ES256": return ES256; + case "PS384": + return PS384; + case "ES384": + return ES384; case "RS256": return RS256; + case "RS384": + return RS384; default: return new RotateConnectionKeysSigningAlgEnum(Value.UNKNOWN, value); } @@ -85,24 +106,36 @@ public static RotateConnectionKeysSigningAlgEnum valueOf(String value) { public enum Value { RS256, + RS384, + RS512, PS256, + PS384, + ES256, + ES384, + UNKNOWN } public interface Visitor { T visitRs256(); + T visitRs384(); + T visitRs512(); T visitPs256(); + T visitPs384(); + T visitEs256(); + T visitEs384(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java new file mode 100644 index 000000000..1b6d6684a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java @@ -0,0 +1,430 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ScimConfiguration.Builder.class) +public final class ScimConfiguration { + private final String connectionId; + + private final String connectionName; + + private final String strategy; + + private final String tenantName; + + private final String userIdAttribute; + + private final List mapping; + + private final OffsetDateTime createdAt; + + private final OffsetDateTime updatedOn; + + private final Map additionalProperties; + + private ScimConfiguration( + String connectionId, + String connectionName, + String strategy, + String tenantName, + String userIdAttribute, + List mapping, + OffsetDateTime createdAt, + OffsetDateTime updatedOn, + Map additionalProperties) { + this.connectionId = connectionId; + this.connectionName = connectionName; + this.strategy = strategy; + this.tenantName = tenantName; + this.userIdAttribute = userIdAttribute; + this.mapping = mapping; + this.createdAt = createdAt; + this.updatedOn = updatedOn; + this.additionalProperties = additionalProperties; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + /** + * @return The connection's name + */ + @JsonProperty("connection_name") + public String getConnectionName() { + return connectionName; + } + + /** + * @return The connection's strategy + */ + @JsonProperty("strategy") + public String getStrategy() { + return strategy; + } + + /** + * @return The tenant's name + */ + @JsonProperty("tenant_name") + public String getTenantName() { + return tenantName; + } + + /** + * @return User ID attribute for generating unique user ids + */ + @JsonProperty("user_id_attribute") + public String getUserIdAttribute() { + return userIdAttribute; + } + + /** + * @return The mapping between auth0 and SCIM + */ + @JsonProperty("mapping") + public List getMapping() { + return mapping; + } + + /** + * @return The ISO 8601 date and time the SCIM configuration was created at + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * @return The ISO 8601 date and time the SCIM configuration was last updated on + */ + @JsonProperty("updated_on") + public OffsetDateTime getUpdatedOn() { + return updatedOn; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ScimConfiguration && equalTo((ScimConfiguration) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ScimConfiguration other) { + return connectionId.equals(other.connectionId) + && connectionName.equals(other.connectionName) + && strategy.equals(other.strategy) + && tenantName.equals(other.tenantName) + && userIdAttribute.equals(other.userIdAttribute) + && mapping.equals(other.mapping) + && createdAt.equals(other.createdAt) + && updatedOn.equals(other.updatedOn); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.connectionId, + this.connectionName, + this.strategy, + this.tenantName, + this.userIdAttribute, + this.mapping, + this.createdAt, + this.updatedOn); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionIdStage builder() { + return new Builder(); + } + + public interface ConnectionIdStage { + /** + *

The connection's identifier

+ */ + ConnectionNameStage connectionId(@NotNull String connectionId); + + Builder from(ScimConfiguration other); + } + + public interface ConnectionNameStage { + /** + *

The connection's name

+ */ + StrategyStage connectionName(@NotNull String connectionName); + } + + public interface StrategyStage { + /** + *

The connection's strategy

+ */ + TenantNameStage strategy(@NotNull String strategy); + } + + public interface TenantNameStage { + /** + *

The tenant's name

+ */ + UserIdAttributeStage tenantName(@NotNull String tenantName); + } + + public interface UserIdAttributeStage { + /** + *

User ID attribute for generating unique user ids

+ */ + CreatedAtStage userIdAttribute(@NotNull String userIdAttribute); + } + + public interface CreatedAtStage { + /** + *

The ISO 8601 date and time the SCIM configuration was created at

+ */ + UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface UpdatedOnStage { + /** + *

The ISO 8601 date and time the SCIM configuration was last updated on

+ */ + _FinalStage updatedOn(@NotNull OffsetDateTime updatedOn); + } + + public interface _FinalStage { + ScimConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The mapping between auth0 and SCIM

+ */ + _FinalStage mapping(List mapping); + + _FinalStage addMapping(ScimMappingItem mapping); + + _FinalStage addAllMapping(List mapping); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionIdStage, + ConnectionNameStage, + StrategyStage, + TenantNameStage, + UserIdAttributeStage, + CreatedAtStage, + UpdatedOnStage, + _FinalStage { + private String connectionId; + + private String connectionName; + + private String strategy; + + private String tenantName; + + private String userIdAttribute; + + private OffsetDateTime createdAt; + + private OffsetDateTime updatedOn; + + private List mapping = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ScimConfiguration other) { + connectionId(other.getConnectionId()); + connectionName(other.getConnectionName()); + strategy(other.getStrategy()); + tenantName(other.getTenantName()); + userIdAttribute(other.getUserIdAttribute()); + mapping(other.getMapping()); + createdAt(other.getCreatedAt()); + updatedOn(other.getUpdatedOn()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection_id") + public ConnectionNameStage connectionId(@NotNull String connectionId) { + this.connectionId = Objects.requireNonNull(connectionId, "connectionId must not be null"); + return this; + } + + /** + *

The connection's name

+ *

The connection's name

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection_name") + public StrategyStage connectionName(@NotNull String connectionName) { + this.connectionName = Objects.requireNonNull(connectionName, "connectionName must not be null"); + return this; + } + + /** + *

The connection's strategy

+ *

The connection's strategy

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("strategy") + public TenantNameStage strategy(@NotNull String strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

The tenant's name

+ *

The tenant's name

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("tenant_name") + public UserIdAttributeStage tenantName(@NotNull String tenantName) { + this.tenantName = Objects.requireNonNull(tenantName, "tenantName must not be null"); + return this; + } + + /** + *

User ID attribute for generating unique user ids

+ *

User ID attribute for generating unique user ids

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("user_id_attribute") + public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { + this.userIdAttribute = Objects.requireNonNull(userIdAttribute, "userIdAttribute must not be null"); + return this; + } + + /** + *

The ISO 8601 date and time the SCIM configuration was created at

+ *

The ISO 8601 date and time the SCIM configuration was created at

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + /** + *

The ISO 8601 date and time the SCIM configuration was last updated on

+ *

The ISO 8601 date and time the SCIM configuration was last updated on

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("updated_on") + public _FinalStage updatedOn(@NotNull OffsetDateTime updatedOn) { + this.updatedOn = Objects.requireNonNull(updatedOn, "updatedOn must not be null"); + return this; + } + + /** + *

The mapping between auth0 and SCIM

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllMapping(List mapping) { + if (mapping != null) { + this.mapping.addAll(mapping); + } + return this; + } + + /** + *

The mapping between auth0 and SCIM

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addMapping(ScimMappingItem mapping) { + this.mapping.add(mapping); + return this; + } + + /** + *

The mapping between auth0 and SCIM

+ */ + @java.lang.Override + @JsonSetter(value = "mapping", nulls = Nulls.SKIP) + public _FinalStage mapping(List mapping) { + this.mapping.clear(); + if (mapping != null) { + this.mapping.addAll(mapping); + } + return this; + } + + @java.lang.Override + public ScimConfiguration build() { + return new ScimConfiguration( + connectionId, + connectionName, + strategy, + tenantName, + userIdAttribute, + mapping, + createdAt, + updatedOn, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningScopeEnum.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningScopeEnum.java index ec9fada64..ab374f842 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningScopeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningScopeEnum.java @@ -13,6 +13,12 @@ public final class SelfServiceProfileSsoTicketProvisioningScopeEnum { public static final SelfServiceProfileSsoTicketProvisioningScopeEnum DELETE_USERS = new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.DELETE_USERS, "delete:users"); + public static final SelfServiceProfileSsoTicketProvisioningScopeEnum GET_GROUPS = + new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.GET_GROUPS, "get:groups"); + + public static final SelfServiceProfileSsoTicketProvisioningScopeEnum DELETE_GROUPS = + new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.DELETE_GROUPS, "delete:groups"); + public static final SelfServiceProfileSsoTicketProvisioningScopeEnum GET_USERS = new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.GET_USERS, "get:users"); @@ -22,6 +28,15 @@ public final class SelfServiceProfileSsoTicketProvisioningScopeEnum { public static final SelfServiceProfileSsoTicketProvisioningScopeEnum POST_USERS = new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.POST_USERS, "post:users"); + public static final SelfServiceProfileSsoTicketProvisioningScopeEnum POST_GROUPS = + new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.POST_GROUPS, "post:groups"); + + public static final SelfServiceProfileSsoTicketProvisioningScopeEnum PATCH_GROUPS = + new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.PATCH_GROUPS, "patch:groups"); + + public static final SelfServiceProfileSsoTicketProvisioningScopeEnum PUT_GROUPS = + new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.PUT_GROUPS, "put:groups"); + private final Value value; private final String string; @@ -59,12 +74,22 @@ public T visit(Visitor visitor) { return visitor.visitPatchUsers(); case DELETE_USERS: return visitor.visitDeleteUsers(); + case GET_GROUPS: + return visitor.visitGetGroups(); + case DELETE_GROUPS: + return visitor.visitDeleteGroups(); case GET_USERS: return visitor.visitGetUsers(); case PUT_USERS: return visitor.visitPutUsers(); case POST_USERS: return visitor.visitPostUsers(); + case POST_GROUPS: + return visitor.visitPostGroups(); + case PATCH_GROUPS: + return visitor.visitPatchGroups(); + case PUT_GROUPS: + return visitor.visitPutGroups(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -78,12 +103,22 @@ public static SelfServiceProfileSsoTicketProvisioningScopeEnum valueOf(String va return PATCH_USERS; case "delete:users": return DELETE_USERS; + case "get:groups": + return GET_GROUPS; + case "delete:groups": + return DELETE_GROUPS; case "get:users": return GET_USERS; case "put:users": return PUT_USERS; case "post:users": return POST_USERS; + case "post:groups": + return POST_GROUPS; + case "patch:groups": + return PATCH_GROUPS; + case "put:groups": + return PUT_GROUPS; default: return new SelfServiceProfileSsoTicketProvisioningScopeEnum(Value.UNKNOWN, value); } @@ -100,6 +135,16 @@ public enum Value { DELETE_USERS, + GET_GROUPS, + + POST_GROUPS, + + PUT_GROUPS, + + PATCH_GROUPS, + + DELETE_GROUPS, + UNKNOWN } @@ -114,6 +159,16 @@ public interface Visitor { T visitDeleteUsers(); + T visitGetGroups(); + + T visitPostGroups(); + + T visitPutGroups(); + + T visitPatchGroups(); + + T visitDeleteGroups(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java index 7721cad9e..b4306e1e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java @@ -132,6 +132,9 @@ public Optional> getAuthenticationMetho return authenticationMethods; } + /** + * @return Preferred phone authentication method + */ @JsonProperty("preferred_authentication_method") public Optional getPreferredAuthenticationMethod() { return preferredAuthenticationMethod; @@ -284,6 +287,9 @@ public interface _FinalStage { _FinalStage authenticationMethods(List authenticationMethods); + /** + *

Preferred phone authentication method

+ */ _FinalStage preferredAuthenticationMethod( Optional preferredAuthenticationMethod); @@ -483,6 +489,10 @@ public _FinalStage keyId(Optional keyId) { return this; } + /** + *

Preferred phone authentication method

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage preferredAuthenticationMethod( PreferredAuthenticationMethodEnum preferredAuthenticationMethod) { @@ -490,6 +500,9 @@ public _FinalStage preferredAuthenticationMethod( return this; } + /** + *

Preferred phone authentication method

+ */ @java.lang.Override @JsonSetter(value = "preferred_authentication_method", nulls = Nulls.SKIP) public _FinalStage preferredAuthenticationMethod( diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java index bd4b8c218..09dcad641 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java @@ -55,6 +55,9 @@ private UpdateAculResponseContent( this.additionalProperties = additionalProperties; } + /** + * @return Rendering mode + */ @JsonProperty("rendering_mode") public Optional getRenderingMode() { return renderingMode; @@ -193,6 +196,9 @@ public Builder from(UpdateAculResponseContent other) { return this; } + /** + *

Rendering mode

+ */ @JsonSetter(value = "rendering_mode", nulls = Nulls.SKIP) public Builder renderingMode(Optional renderingMode) { this.renderingMode = renderingMode; diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java index 9357fcd94..1fc60b7cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java @@ -276,6 +276,9 @@ public Optional getOidcLogout() { return oidcLogout; } + /** + * @return Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) + */ @JsonProperty("oidc_backchannel_logout") public Optional getOidcBackchannelLogout() { return oidcBackchannelLogout; @@ -338,11 +341,17 @@ public Optional> getAllowedLogoutUrls() { return allowedLogoutUrls; } + /** + * @return An object that holds settings related to how JWTs are created + */ @JsonProperty("jwt_configuration") public Optional getJwtConfiguration() { return jwtConfiguration; } + /** + * @return The client's encryption key + */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("encryption_key") public OptionalNullable getEncryptionKey() { @@ -474,6 +483,9 @@ public Optional> getClientMetadata() { return clientMetadata; } + /** + * @return Configuration related to native mobile apps + */ @JsonProperty("mobile") public Optional getMobile() { return mobile; @@ -1088,6 +1100,9 @@ public Builder oidcLogout(ClientOidcBackchannelLogoutSettings oidcLogout) { return this; } + /** + *

Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)

+ */ @JsonSetter(value = "oidc_backchannel_logout", nulls = Nulls.SKIP) public Builder oidcBackchannelLogout(Optional oidcBackchannelLogout) { this.oidcBackchannelLogout = oidcBackchannelLogout; @@ -1215,6 +1230,9 @@ public Builder allowedLogoutUrls(List allowedLogoutUrls) { return this; } + /** + *

An object that holds settings related to how JWTs are created

+ */ @JsonSetter(value = "jwt_configuration", nulls = Nulls.SKIP) public Builder jwtConfiguration(Optional jwtConfiguration) { this.jwtConfiguration = jwtConfiguration; @@ -1226,6 +1244,9 @@ public Builder jwtConfiguration(ClientJwtConfiguration jwtConfiguration) { return this; } + /** + *

The client's encryption key

+ */ @JsonSetter(value = "encryption_key", nulls = Nulls.SKIP) public Builder encryptionKey(@Nullable OptionalNullable encryptionKey) { this.encryptionKey = encryptionKey; @@ -1526,6 +1547,9 @@ public Builder clientMetadata(Map clientMetadata) { return this; } + /** + *

Configuration related to native mobile apps

+ */ @JsonSetter(value = "mobile", nulls = Nulls.SKIP) public Builder mobile(Optional mobile) { this.mobile = mobile; diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java index d23d711ea..8b67001ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java @@ -46,6 +46,9 @@ private UpdateCustomDomainRequestContent( this.additionalProperties = additionalProperties; } + /** + * @return recommended includes TLS 1.2 + */ @JsonProperty("tls_policy") public Optional getTlsPolicy() { return tlsPolicy; @@ -136,6 +139,9 @@ public Builder from(UpdateCustomDomainRequestContent other) { return this; } + /** + *

recommended includes TLS 1.2

+ */ @JsonSetter(value = "tls_policy", nulls = Nulls.SKIP) public Builder tlsPolicy(Optional tlsPolicy) { this.tlsPolicy = tlsPolicy; diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java index 2f84a2f0f..0cb6f8190 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java @@ -33,6 +33,9 @@ private UpdateRefreshTokenRequestContent( this.additionalProperties = additionalProperties; } + /** + * @return Metadata associated with the refresh token. Pass null or {} to remove all metadata. + */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("refresh_token_metadata") public OptionalNullable> getRefreshTokenMetadata() { @@ -91,6 +94,9 @@ public Builder from(UpdateRefreshTokenRequestContent other) { return this; } + /** + *

Metadata associated with the refresh token. Pass null or {} to remove all metadata.

+ */ @JsonSetter(value = "refresh_token_metadata", nulls = Nulls.SKIP) public Builder refreshTokenMetadata(@Nullable OptionalNullable> refreshTokenMetadata) { this.refreshTokenMetadata = refreshTokenMetadata; diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java index f73c0e131..7852ae67e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java @@ -12,42 +12,44 @@ import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateScimConfigurationResponseContent.Builder.class) public final class UpdateScimConfigurationResponseContent { - private final Optional connectionId; + private final String connectionId; - private final Optional connectionName; + private final String connectionName; - private final Optional strategy; + private final String strategy; - private final Optional tenantName; + private final String tenantName; - private final Optional userIdAttribute; + private final String userIdAttribute; - private final Optional> mapping; + private final List mapping; - private final Optional createdAt; + private final OffsetDateTime createdAt; - private final Optional updatedOn; + private final OffsetDateTime updatedOn; private final Map additionalProperties; private UpdateScimConfigurationResponseContent( - Optional connectionId, - Optional connectionName, - Optional strategy, - Optional tenantName, - Optional userIdAttribute, - Optional> mapping, - Optional createdAt, - Optional updatedOn, + String connectionId, + String connectionName, + String strategy, + String tenantName, + String userIdAttribute, + List mapping, + OffsetDateTime createdAt, + OffsetDateTime updatedOn, Map additionalProperties) { this.connectionId = connectionId; this.connectionName = connectionName; @@ -64,15 +66,15 @@ private UpdateScimConfigurationResponseContent( * @return The connection's identifier */ @JsonProperty("connection_id") - public Optional getConnectionId() { + public String getConnectionId() { return connectionId; } /** - * @return The connection's identifier + * @return The connection's name */ @JsonProperty("connection_name") - public Optional getConnectionName() { + public String getConnectionName() { return connectionName; } @@ -80,7 +82,7 @@ public Optional getConnectionName() { * @return The connection's strategy */ @JsonProperty("strategy") - public Optional getStrategy() { + public String getStrategy() { return strategy; } @@ -88,7 +90,7 @@ public Optional getStrategy() { * @return The tenant's name */ @JsonProperty("tenant_name") - public Optional getTenantName() { + public String getTenantName() { return tenantName; } @@ -96,7 +98,7 @@ public Optional getTenantName() { * @return User ID attribute for generating unique user ids */ @JsonProperty("user_id_attribute") - public Optional getUserIdAttribute() { + public String getUserIdAttribute() { return userIdAttribute; } @@ -104,23 +106,23 @@ public Optional getUserIdAttribute() { * @return The mapping between auth0 and SCIM */ @JsonProperty("mapping") - public Optional> getMapping() { + public List getMapping() { return mapping; } /** - * @return The Date Time Scim Configuration was created + * @return The ISO 8601 date and time the SCIM configuration was created at */ @JsonProperty("created_at") - public Optional getCreatedAt() { + public OffsetDateTime getCreatedAt() { return createdAt; } /** - * @return The Date Time Scim Configuration was last updated + * @return The ISO 8601 date and time the SCIM configuration was last updated on */ @JsonProperty("updated_on") - public Optional getUpdatedOn() { + public OffsetDateTime getUpdatedOn() { return updatedOn; } @@ -165,33 +167,110 @@ public String toString() { return ObjectMappers.stringify(this); } - public static Builder builder() { + public static ConnectionIdStage builder() { return new Builder(); } + public interface ConnectionIdStage { + /** + *

The connection's identifier

+ */ + ConnectionNameStage connectionId(@NotNull String connectionId); + + Builder from(UpdateScimConfigurationResponseContent other); + } + + public interface ConnectionNameStage { + /** + *

The connection's name

+ */ + StrategyStage connectionName(@NotNull String connectionName); + } + + public interface StrategyStage { + /** + *

The connection's strategy

+ */ + TenantNameStage strategy(@NotNull String strategy); + } + + public interface TenantNameStage { + /** + *

The tenant's name

+ */ + UserIdAttributeStage tenantName(@NotNull String tenantName); + } + + public interface UserIdAttributeStage { + /** + *

User ID attribute for generating unique user ids

+ */ + CreatedAtStage userIdAttribute(@NotNull String userIdAttribute); + } + + public interface CreatedAtStage { + /** + *

The ISO 8601 date and time the SCIM configuration was created at

+ */ + UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface UpdatedOnStage { + /** + *

The ISO 8601 date and time the SCIM configuration was last updated on

+ */ + _FinalStage updatedOn(@NotNull OffsetDateTime updatedOn); + } + + public interface _FinalStage { + UpdateScimConfigurationResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The mapping between auth0 and SCIM

+ */ + _FinalStage mapping(List mapping); + + _FinalStage addMapping(ScimMappingItem mapping); + + _FinalStage addAllMapping(List mapping); + } + @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional connectionId = Optional.empty(); + public static final class Builder + implements ConnectionIdStage, + ConnectionNameStage, + StrategyStage, + TenantNameStage, + UserIdAttributeStage, + CreatedAtStage, + UpdatedOnStage, + _FinalStage { + private String connectionId; - private Optional connectionName = Optional.empty(); + private String connectionName; - private Optional strategy = Optional.empty(); + private String strategy; - private Optional tenantName = Optional.empty(); + private String tenantName; - private Optional userIdAttribute = Optional.empty(); + private String userIdAttribute; - private Optional> mapping = Optional.empty(); + private OffsetDateTime createdAt; - private Optional createdAt = Optional.empty(); + private OffsetDateTime updatedOn; - private Optional updatedOn = Optional.empty(); + private List mapping = new ArrayList<>(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); private Builder() {} + @java.lang.Override public Builder from(UpdateScimConfigurationResponseContent other) { connectionId(other.getConnectionId()); connectionName(other.getConnectionName()); @@ -206,116 +285,124 @@ public Builder from(UpdateScimConfigurationResponseContent other) { /** *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "connection_id", nulls = Nulls.SKIP) - public Builder connectionId(Optional connectionId) { - this.connectionId = connectionId; - return this; - } - - public Builder connectionId(String connectionId) { - this.connectionId = Optional.ofNullable(connectionId); + @java.lang.Override + @JsonSetter("connection_id") + public ConnectionNameStage connectionId(@NotNull String connectionId) { + this.connectionId = Objects.requireNonNull(connectionId, "connectionId must not be null"); return this; } /** - *

The connection's identifier

+ *

The connection's name

+ *

The connection's name

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "connection_name", nulls = Nulls.SKIP) - public Builder connectionName(Optional connectionName) { - this.connectionName = connectionName; - return this; - } - - public Builder connectionName(String connectionName) { - this.connectionName = Optional.ofNullable(connectionName); + @java.lang.Override + @JsonSetter("connection_name") + public StrategyStage connectionName(@NotNull String connectionName) { + this.connectionName = Objects.requireNonNull(connectionName, "connectionName must not be null"); return this; } /** *

The connection's strategy

+ *

The connection's strategy

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "strategy", nulls = Nulls.SKIP) - public Builder strategy(Optional strategy) { - this.strategy = strategy; - return this; - } - - public Builder strategy(String strategy) { - this.strategy = Optional.ofNullable(strategy); + @java.lang.Override + @JsonSetter("strategy") + public TenantNameStage strategy(@NotNull String strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); return this; } /** *

The tenant's name

+ *

The tenant's name

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "tenant_name", nulls = Nulls.SKIP) - public Builder tenantName(Optional tenantName) { - this.tenantName = tenantName; - return this; - } - - public Builder tenantName(String tenantName) { - this.tenantName = Optional.ofNullable(tenantName); + @java.lang.Override + @JsonSetter("tenant_name") + public UserIdAttributeStage tenantName(@NotNull String tenantName) { + this.tenantName = Objects.requireNonNull(tenantName, "tenantName must not be null"); return this; } /** *

User ID attribute for generating unique user ids

+ *

User ID attribute for generating unique user ids

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) - public Builder userIdAttribute(Optional userIdAttribute) { - this.userIdAttribute = userIdAttribute; - return this; - } - - public Builder userIdAttribute(String userIdAttribute) { - this.userIdAttribute = Optional.ofNullable(userIdAttribute); + @java.lang.Override + @JsonSetter("user_id_attribute") + public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { + this.userIdAttribute = Objects.requireNonNull(userIdAttribute, "userIdAttribute must not be null"); return this; } /** - *

The mapping between auth0 and SCIM

+ *

The ISO 8601 date and time the SCIM configuration was created at

+ *

The ISO 8601 date and time the SCIM configuration was created at

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "mapping", nulls = Nulls.SKIP) - public Builder mapping(Optional> mapping) { - this.mapping = mapping; - return this; - } - - public Builder mapping(List mapping) { - this.mapping = Optional.ofNullable(mapping); + @java.lang.Override + @JsonSetter("created_at") + public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } /** - *

The Date Time Scim Configuration was created

+ *

The ISO 8601 date and time the SCIM configuration was last updated on

+ *

The ISO 8601 date and time the SCIM configuration was last updated on

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "created_at", nulls = Nulls.SKIP) - public Builder createdAt(Optional createdAt) { - this.createdAt = createdAt; + @java.lang.Override + @JsonSetter("updated_on") + public _FinalStage updatedOn(@NotNull OffsetDateTime updatedOn) { + this.updatedOn = Objects.requireNonNull(updatedOn, "updatedOn must not be null"); return this; } - public Builder createdAt(String createdAt) { - this.createdAt = Optional.ofNullable(createdAt); + /** + *

The mapping between auth0 and SCIM

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllMapping(List mapping) { + if (mapping != null) { + this.mapping.addAll(mapping); + } return this; } /** - *

The Date Time Scim Configuration was last updated

+ *

The mapping between auth0 and SCIM

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "updated_on", nulls = Nulls.SKIP) - public Builder updatedOn(Optional updatedOn) { - this.updatedOn = updatedOn; + @java.lang.Override + public _FinalStage addMapping(ScimMappingItem mapping) { + this.mapping.add(mapping); return this; } - public Builder updatedOn(String updatedOn) { - this.updatedOn = Optional.ofNullable(updatedOn); + /** + *

The mapping between auth0 and SCIM

+ */ + @java.lang.Override + @JsonSetter(value = "mapping", nulls = Nulls.SKIP) + public _FinalStage mapping(List mapping) { + this.mapping.clear(); + if (mapping != null) { + this.mapping.addAll(mapping); + } return this; } + @java.lang.Override public UpdateScimConfigurationResponseContent build() { return new UpdateScimConfigurationResponseContent( connectionId, @@ -329,11 +416,13 @@ public UpdateScimConfigurationResponseContent build() { additionalProperties); } + @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } + @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java index 383d4746d..98671625f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java @@ -33,6 +33,9 @@ private UpdateSessionRequestContent( this.additionalProperties = additionalProperties; } + /** + * @return Metadata associated with the session. Pass null or {} to remove all session_metadata. + */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_metadata") public OptionalNullable> getSessionMetadata() { @@ -91,6 +94,9 @@ public Builder from(UpdateSessionRequestContent other) { return this; } + /** + *

Metadata associated with the session. Pass null or {} to remove all session_metadata.

+ */ @JsonSetter(value = "session_metadata", nulls = Nulls.SKIP) public Builder sessionMetadata(@Nullable OptionalNullable> sessionMetadata) { this.sessionMetadata = sessionMetadata; diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java index 622be7c67..6f2d7cecd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java @@ -150,11 +150,17 @@ public Optional getPhoneVerified() { return phoneVerified; } + /** + * @return User metadata to which this user has read/write access. + */ @JsonProperty("user_metadata") public Optional> getUserMetadata() { return userMetadata; } + /** + * @return User metadata to which this user has read-only access. + */ @JsonProperty("app_metadata") public Optional> getAppMetadata() { return appMetadata; @@ -569,6 +575,9 @@ public Builder phoneVerified(Boolean phoneVerified) { return this; } + /** + *

User metadata to which this user has read/write access.

+ */ @JsonSetter(value = "user_metadata", nulls = Nulls.SKIP) public Builder userMetadata(Optional> userMetadata) { this.userMetadata = userMetadata; @@ -580,6 +589,9 @@ public Builder userMetadata(Map userMetadata) { return this; } + /** + *

User metadata to which this user has read-only access.

+ */ @JsonSetter(value = "app_metadata", nulls = Nulls.SKIP) public Builder appMetadata(Optional> appMetadata) { this.appMetadata = appMetadata; diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java index ad325f744..e4cf7c439 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java @@ -40,6 +40,9 @@ private UserAttributeProfileStrategyOverridesMapping( this.additionalProperties = additionalProperties; } + /** + * @return OIDC mapping override for this strategy + */ @JsonProperty("oidc_mapping") public Optional getOidcMapping() { return oidcMapping; @@ -110,6 +113,9 @@ public Builder from(UserAttributeProfileStrategyOverridesMapping other) { return this; } + /** + *

OIDC mapping override for this strategy

+ */ @JsonSetter(value = "oidc_mapping", nulls = Nulls.SKIP) public Builder oidcMapping(Optional oidcMapping) { this.oidcMapping = oidcMapping; diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java index 41ac29146..37fb0d77e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java @@ -98,6 +98,9 @@ public Optional getOidcMapping() { return oidcMapping; } + /** + * @return SAML mapping for this attribute + */ @JsonProperty("saml_mapping") public Optional> getSamlMapping() { return samlMapping; @@ -202,6 +205,9 @@ public interface _FinalStage { _FinalStage oidcMapping(UserAttributeProfileOidcMapping oidcMapping); + /** + *

SAML mapping for this attribute

+ */ _FinalStage samlMapping(Optional> samlMapping); _FinalStage samlMapping(List samlMapping); @@ -336,12 +342,19 @@ public _FinalStage scimMapping(Optional scimMapping) { return this; } + /** + *

SAML mapping for this attribute

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage samlMapping(List samlMapping) { this.samlMapping = Optional.ofNullable(samlMapping); return this; } + /** + *

SAML mapping for this attribute

+ */ @java.lang.Override @JsonSetter(value = "saml_mapping", nulls = Nulls.SKIP) public _FinalStage samlMapping(Optional> samlMapping) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java index ae6fc1547..2669f8a19 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java @@ -68,6 +68,9 @@ public String getConnection() { return connection; } + /** + * @return user_id of this identity. + */ @JsonProperty("user_id") public UserId getUserId() { return userId; @@ -172,6 +175,9 @@ public interface ConnectionStage { } public interface UserIdStage { + /** + *

user_id of this identity.

+ */ ProviderStage userId(@NotNull UserId userId); } @@ -270,6 +276,11 @@ public UserIdStage connection(@NotNull String connection) { return this; } + /** + *

user_id of this identity.

+ *

user_id of this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override @JsonSetter("user_id") public ProviderStage userId(@NotNull UserId userId) { diff --git a/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java index b8ad00339..e232ddfe7 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java @@ -45,6 +45,9 @@ private LinkUserIdentityRequestContent( this.additionalProperties = additionalProperties; } + /** + * @return Identity provider of the secondary user account being linked. + */ @JsonProperty("provider") public Optional getProvider() { return provider; @@ -126,6 +129,9 @@ public Builder from(LinkUserIdentityRequestContent other) { return this; } + /** + *

Identity provider of the secondary user account being linked.

+ */ @JsonSetter(value = "provider", nulls = Nulls.SKIP) public Builder provider(Optional provider) { this.provider = provider; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java index 7378b3b8a..cca04cb91 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java @@ -44,6 +44,9 @@ public Optional getName() { return name; } + /** + * @return Preferred phone authentication method + */ @JsonProperty("preferred_authentication_method") public Optional getPreferredAuthenticationMethod() { return preferredAuthenticationMethod; @@ -110,6 +113,9 @@ public Builder name(String name) { return this; } + /** + *

Preferred phone authentication method

+ */ @JsonSetter(value = "preferred_authentication_method", nulls = Nulls.SKIP) public Builder preferredAuthenticationMethod( Optional preferredAuthenticationMethod) { diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java index 0bcb21e88..54ae99454 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java @@ -3,6 +3,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.ConnectionKey; +import com.auth0.client.mgmt.types.PostConnectionsKeysResponseContentItem; import com.auth0.client.mgmt.types.RotateConnectionsKeysResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; @@ -98,6 +99,69 @@ else if (actualResponseNode.has("kind")) } } + @Test + public void testCreate() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "[{\"kid\":\"kid\",\"cert\":\"cert\",\"pkcs\":\"pkcs\",\"current\":true,\"next\":true,\"current_since\":\"current_since\",\"fingerprint\":\"fingerprint\",\"thumbprint\":\"thumbprint\",\"algorithm\":\"algorithm\",\"key_use\":\"encryption\",\"subject_dn\":\"subject_dn\"}]")); + List response = + client.connections().keys().create("id", OptionalNullable.absent()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("POST", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "[\n" + + " {\n" + + " \"kid\": \"kid\",\n" + + " \"cert\": \"cert\",\n" + + " \"pkcs\": \"pkcs\",\n" + + " \"current\": true,\n" + + " \"next\": true,\n" + + " \"current_since\": \"current_since\",\n" + + " \"fingerprint\": \"fingerprint\",\n" + + " \"thumbprint\": \"thumbprint\",\n" + + " \"algorithm\": \"algorithm\",\n" + + " \"key_use\": \"encryption\",\n" + + " \"subject_dn\": \"subject_dn\"\n" + + " }\n" + + "]"; + JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); + JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); + Assertions.assertTrue( + jsonEquals(expectedResponseNode, actualResponseNode), + "Response body structure does not match expected"); + if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { + String discriminator = null; + if (actualResponseNode.has("type")) + discriminator = actualResponseNode.get("type").asText(); + else if (actualResponseNode.has("_type")) + discriminator = actualResponseNode.get("_type").asText(); + else if (actualResponseNode.has("kind")) + discriminator = actualResponseNode.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualResponseNode.isNull()) { + Assertions.assertTrue( + actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), + "response should be a valid JSON value"); + } + + if (actualResponseNode.isArray()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); + } + if (actualResponseNode.isObject()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); + } + } + @Test public void testRotate() throws Exception { server.enqueue( diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java index d71466634..c20dc9372 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java @@ -1,11 +1,14 @@ package com.auth0.client.mgmt; +import com.auth0.client.mgmt.connections.types.ListScimConfigurationsRequestParameters; import com.auth0.client.mgmt.connections.types.UpdateScimConfigurationRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateScimConfigurationResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationResponseContent; +import com.auth0.client.mgmt.types.ScimConfiguration; import com.auth0.client.mgmt.types.ScimMappingItem; import com.auth0.client.mgmt.types.UpdateScimConfigurationResponseContent; import com.fasterxml.jackson.databind.JsonNode; @@ -39,13 +42,36 @@ public void teardown() throws Exception { server.shutdown(); } + @Test + public void testList() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"scim_configurations\":[{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_on\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\"}")); + SyncPagingIterable response = client.connections() + .scimConfiguration() + .list(ListScimConfigurationsRequestParameters.builder() + .from(OptionalNullable.of("from")) + .take(OptionalNullable.of(1)) + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + // Pagination response validated via MockWebServer + // The SDK correctly parses the response into a SyncPagingIterable + } + @Test public void testGet() throws Exception { server.enqueue( new MockResponse() .setResponseCode(200) .setBody( - "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{\"auth0\":\"auth0\",\"scim\":\"scim\"}],\"created_at\":\"created_at\",\"updated_on\":\"updated_on\"}")); + "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{\"auth0\":\"auth0\",\"scim\":\"scim\"}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_on\":\"2024-01-15T09:30:00Z\"}")); GetScimConfigurationResponseContent response = client.connections().scimConfiguration().get("id"); RecordedRequest request = server.takeRequest(); @@ -68,8 +94,8 @@ public void testGet() throws Exception { + " \"scim\": \"scim\"\n" + " }\n" + " ],\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_on\": \"updated_on\"\n" + + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + + " \"updated_on\": \"2024-01-15T09:30:00Z\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); @@ -108,7 +134,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{\"auth0\":\"auth0\",\"scim\":\"scim\"}],\"created_at\":\"created_at\",\"updated_on\":\"updated_on\"}")); + "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{\"auth0\":\"auth0\",\"scim\":\"scim\"}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_on\":\"2024-01-15T09:30:00Z\"}")); CreateScimConfigurationResponseContent response = client.connections().scimConfiguration().create("id", OptionalNullable.absent()); RecordedRequest request = server.takeRequest(); @@ -131,8 +157,8 @@ public void testCreate() throws Exception { + " \"scim\": \"scim\"\n" + " }\n" + " ],\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_on\": \"updated_on\"\n" + + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + + " \"updated_on\": \"2024-01-15T09:30:00Z\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); @@ -180,7 +206,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{\"auth0\":\"auth0\",\"scim\":\"scim\"}],\"created_at\":\"created_at\",\"updated_on\":\"updated_on\"}")); + "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{\"auth0\":\"auth0\",\"scim\":\"scim\"}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_on\":\"2024-01-15T09:30:00Z\"}")); UpdateScimConfigurationResponseContent response = client.connections() .scimConfiguration() .update( @@ -244,8 +270,8 @@ else if (actualJson.has("kind")) + " \"scim\": \"scim\"\n" + " }\n" + " ],\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_on\": \"updated_on\"\n" + + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + + " \"updated_on\": \"2024-01-15T09:30:00Z\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); diff --git a/src/test/resources/action.json b/src/test/resources/action.json deleted file mode 100644 index e2b26f353..000000000 --- a/src/test/resources/action.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "id": "b430c838-7530-483b-9906-09aea2f8973a", - "name": "my action", - "supported_triggers": [ - { - "id": "post-login", - "version": "v2" - } - ], - "created_at": "2021-08-11T15:44:05.330221459Z", - "updated_at": "2021-08-16T20:24:57.108759345Z", - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "dependencies": [ - { - "name": "slack-notify", - "version": "0.1.7" - } - ], - "runtime": "node16", - "status": "built", - "secrets": [ - { - "name": "secret-key-1", - "updated_at": "2021-08-12T17:09:42.071504554Z" - } - ], - "current_version": { - "id": "c4d1c41e-a14d-441a-bbbe-da50871f0ce90", - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "runtime": "node16", - "status": "BUILT", - "number": 18, - "build_time": "2021-08-16T20:26:42.425146135Z", - "created_at": "2021-08-16T20:26:42.253086110Z", - "updated_at": "2021-08-16T20:26:42.427338891Z" - }, - "deployed_version": { - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "dependencies": [ - { - "name": "slack-notify", - "version": "0.1.7" - } - ], - "id": "c4d1c41e-a14d-441a-77be-da51dbf0ce90", - "deployed": true, - "number": 18, - "built_at": "2021-08-16T20:26:42.425146135Z", - "secrets": [ - { - "name": "secret-key-1", - "updated_at": "2021-08-12T17:09:42.071504554Z" - } - ], - "status": "built", - "created_at": "2021-08-16T20:26:42.253086110Z", - "updated_at": "2021-08-16T20:26:42.427338891Z", - "runtime": "node16" - }, - "all_changes_deployed": true -} diff --git a/src/test/resources/action_execution.json b/src/test/resources/action_execution.json deleted file mode 100644 index c55d15446..000000000 --- a/src/test/resources/action_execution.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "id": "SBMzFjrcQ-uZMaaTkQ_EsTIwMjEwODE2", - "trigger_id": "post-login", - "status": "partial", - "results": [ - { - "binding_id": "18490d5b-7d34-42c5-a21d-37cb77c666a5", - "version_id": "fbc0chac-2863-4c47-8445-11c2881fd1e9", - "action_name": "first action - Updated - Updated", - "response": { - "error": { - "message": "oops", - "name": "Error" - }, - "stats": { - "total_request_duration_ms": 383, - "total_runtime_execution_duration_ms": 377, - "runtime_processing_duration_ms": 6, - "action_duration_ms": 40, - "runtime_external_call_duration_ms": 331, - "boot_duration_ms": 337, - "network_duration_ms": 6 - } - }, - "error": { - "id": "invalid_argument", - "msg": "Invalid Argument" - }, - "started_at": "2021-08-16T19:14:04.218396333Z", - "ended_at": "2021-08-16T19:14:04.602232335Z" - } - ], - "created_at": "2021-08-16T19:14:04.218386241Z", - "updated_at": "2021-08-16T19:14:04.218386241Z" -} diff --git a/src/test/resources/action_trigger_bindings.json b/src/test/resources/action_trigger_bindings.json deleted file mode 100644 index 681989abe..000000000 --- a/src/test/resources/action_trigger_bindings.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "bindings": [ - { - "id": "f6a992d9-d5f4-4e99-a869-6f1b43ed1955", - "trigger_id": "post-login", - "action": { - "id": "b430c838-7530-483b-b806-09aea2f8973a", - "name": "first action - Updated - Updated", - "supported_triggers": [ - { - "id": "post-login", - "version": "v2" - } - ], - "created_at": "2021-08-11T15:44:05.330221459Z", - "updated_at": "2021-08-16T20:24:57.101751726Z", - "current_version": { - "id": "1bfc9d7e-49db-4e3f-b026-3c1a77dc9a99", - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "runtime": "node16", - "status": "BUILT", - "number": 19, - "build_time": "2021-08-17T20:34:25.421459622Z", - "created_at": "2021-08-17T20:34:25.304585709Z", - "updated_at": "2021-08-17T20:34:25.422251817Z" - }, - "deployed_version": { - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "dependencies": [ - { - "name": "slack-notify", - "version": "0.1.7" - } - ], - "id": "1bfc9d7e-49db-4e3f-b026-3c1a77dc9a99", - "deployed": true, - "number": 19, - "built_at": "2021-08-17T20:34:25.421459622Z", - "secrets": [ - { - "name": "secret-key-1", - "updated_at": "2021-08-12T17:09:42.071504554Z" - } - ], - "status": "built", - "created_at": "2021-08-17T20:34:25.304585709Z", - "updated_at": "2021-08-17T20:34:25.422251817Z", - "runtime": "node16" - }, - "all_changes_deployed": false - }, - "created_at": "2021-08-16T20:21:06.548275270Z", - "updated_at": "2021-08-16T20:21:06.548275270Z", - "display_name": "first action - Updated - Updated" - } - ], - "total": 1, - "per_page": 20 -} diff --git a/src/test/resources/action_triggers.json b/src/test/resources/action_triggers.json deleted file mode 100644 index b5e82a34d..000000000 --- a/src/test/resources/action_triggers.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "triggers": [ - { - "id": "post-login", - "version": "v1", - "status": "DEPRECATED", - "runtimes": [ - "node12" - ], - "default_runtime": "node12" - }, - { - "id": "post-login", - "version": "v2", - "status": "CURRENT", - "runtimes": [ - "node12", - "node16" - ], - "default_runtime": "node16" - }, - { - "id": "credentials-exchange", - "version": "v1", - "status": "DEPRECATED", - "runtimes": [ - "node12" - ], - "default_runtime": "node12" - }, - { - "id": "credentials-exchange", - "version": "v2", - "status": "CURRENT", - "runtimes": [ - "node12", - "node16" - ], - "default_runtime": "node16" - }, - { - "id": "pre-user-registration", - "version": "v1", - "status": "DEPRECATED", - "runtimes": [ - "node12" - ], - "default_runtime": "node12" - }, - { - "id": "pre-user-registration", - "version": "v2", - "status": "CURRENT", - "runtimes": [ - "node12", - "node16" - ], - "default_runtime": "node16" - }, - { - "id": "post-user-registration", - "version": "v1", - "status": "DEPRECATED", - "runtimes": [ - "node12" - ], - "default_runtime": "node12" - }, - { - "id": "post-user-registration", - "version": "v2", - "status": "CURRENT", - "runtimes": [ - "node12", - "node16" - ], - "default_runtime": "node16" - }, - { - "id": "post-change-password", - "version": "v1", - "status": "DEPRECATED", - "runtimes": [ - "node12" - ], - "default_runtime": "node12" - }, - { - "id": "post-change-password", - "version": "v2", - "status": "CURRENT", - "runtimes": [ - "node12", - "node16" - ], - "default_runtime": "node16" - }, - { - "id": "send-phone-message", - "version": "v1", - "status": "DEPRECATED", - "runtimes": [ - "node12" - ] - }, - { - "id": "send-phone-message", - "version": "v2", - "status": "CURRENT", - "runtimes": [ - "node12", - "node16" - ], - "default_runtime": "node16" - } - ] -} diff --git a/src/test/resources/action_version.json b/src/test/resources/action_version.json deleted file mode 100644 index 71e7339a0..000000000 --- a/src/test/resources/action_version.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "dependencies": [ - { - "name": "slack-notify", - "version": "0.1.7" - } - ], - "id": "1bfc9d7e-49db-dd3f-b026-3c1a77dc9a99", - "deployed": false, - "number": 19, - "secrets": [ - { - "name": "secret-key-1", - "updated_at": "2021-08-12T17:09:42.071504554Z" - } - ], - "status": "built", - "created_at": "2021-08-17T20:34:25.304585709Z", - "updated_at": "2021-08-17T20:34:25.304585709Z", - "runtime": "node16", - "action": { - "id": "b430c838-7530-aa3b-b806-09aea2f8973a", - "name": "first action - Updated - Updated", - "supported_triggers": [ - { - "id": "post-login", - "version": "v2" - } - ], - "created_at": "2021-08-11T15:44:05.330221459Z", - "updated_at": "2021-08-16T20:24:57.101751726Z", - "current_version": { - "id": "f69a8376-580b-463a-a1fe-3a08bdd5153e", - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "runtime": "node16", - "status": "BUILT", - "number": 15, - "build_time": "2021-08-16T20:24:10.450936369Z", - "created_at": "2021-08-16T20:24:10.269996405Z", - "updated_at": "2021-08-16T20:24:10.452885076Z" - }, - "deployed_version": { - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "dependencies": [ - { - "name": "slack-notify", - "version": "0.1.7" - } - ], - "id": "f69a8376-580b-463a-a1fe-3a0ae6a5153e", - "deployed": true, - "number": 15, - "built_at": "2021-08-16T20:24:10.450936369Z", - "secrets": [ - { - "name": "secret-key-1", - "updated_at": "2021-08-12T17:09:42.071504554Z" - } - ], - "status": "built", - "created_at": "2021-08-16T20:24:10.269996405Z", - "updated_at": "2021-08-16T20:24:10.452885076Z", - "runtime": "node16" - }, - "all_changes_deployed": false - } -} diff --git a/src/test/resources/action_versions_list.json b/src/test/resources/action_versions_list.json deleted file mode 100644 index 739e33723..000000000 --- a/src/test/resources/action_versions_list.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "versions": [ - { - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "dependencies": [], - "id": "a1fcaa98-1199-4403-8a45-9f3b6bf32a6e", - "deployed": true, - "number": 1, - "built_at": "2021-08-16T19:39:37.789535383Z", - "secrets": [], - "status": "built", - "created_at": "2021-08-16T19:39:37.655559720Z", - "updated_at": "2021-08-16T19:39:37.791508099Z", - "runtime": "node16", - "action": { - "id": "a80ae4c9-43c0-4301-9eb7-e9da7852022b", - "name": "new-action", - "supported_triggers": [ - { - "id": "post-login", - "version": "v2" - } - ], - "created_at": "2021-08-16T19:38:33.018980733Z", - "updated_at": "2021-08-16T19:38:33.018980733Z", - "all_changes_deployed": false - } - } - ], - "total": 1, - "per_page": 20 -} diff --git a/src/test/resources/actions_list.json b/src/test/resources/actions_list.json deleted file mode 100644 index 90309d9f0..000000000 --- a/src/test/resources/actions_list.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "actions": [ - { - "id": "b430c838-dd30-483b-b806-09aea2f8973a", - "name": "my action", - "supported_triggers": [ - { - "id": "post-login", - "version": "v2" - } - ], - "created_at": "2021-08-11T15:44:05.330221459Z", - "updated_at": "2021-08-16T20:24:57.108759345Z", - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "dependencies": [ - { - "name": "slack-notify", - "version": "0.1.7" - } - ], - "runtime": "node16", - "status": "built", - "secrets": [ - { - "name": "secret-key-1", - "updated_at": "2021-08-12T17:09:42.071504554Z" - } - ], - "current_version": { - "id": "1bfaad7e-49db-4e3f-b026-3c1a77dc9a99", - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "runtime": "node16", - "status": "BUILT", - "number": 19, - "build_time": "2021-08-17T20:34:25.421459622Z", - "created_at": "2021-08-17T20:34:25.304585709Z", - "updated_at": "2021-08-17T20:34:25.422251817Z" - }, - "deployed_version": { - "code": "/**\n* Handler that will be called during the execution of a PostLogin flow.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\nexports.onExecutePostLogin = async (event, api) => {\n // var a = null;\n // a.boom(;)\n // throw new Error(\"oops\");\n console.log(\"testing updated!\");\n};\n\n\n/**\n* Handler that will be invoked when this action is resuming after an external redirect. If your\n* onExecutePostLogin function does not perform a redirect, this function can be safely ignored.\n*\n* @param {Event} event - Details about the user and the context in which they are logging in.\n* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n*/\n// exports.onContinuePostLogin = async (event, api) => {\n// };\n", - "dependencies": [ - { - "name": "slack-notify", - "version": "0.1.7" - } - ], - "id": "1bfc9d7e-49db-4e3f-b026-3c1a77dc9a99", - "deployed": true, - "number": 19, - "built_at": "2021-08-17T20:34:25.421459622Z", - "secrets": [ - { - "name": "secret-key-1", - "updated_at": "2021-08-12T17:09:42.071504554Z" - } - ], - "status": "built", - "created_at": "2021-08-17T20:34:25.304585709Z", - "updated_at": "2021-08-17T20:34:25.422251817Z", - "runtime": "node16" - }, - "all_changes_deployed": true - }, - { - "id": "723c6134-1aac-4815-8720-5a65fbde2cd5", - "name": "another action", - "supported_triggers": [ - { - "id": "post-login", - "version": "v2" - } - ], - "created_at": "2021-08-12T17:57:21.154835734Z", - "updated_at": "2021-08-12T17:57:21.177990082Z", - "code": "module.exports = () => {}", - "dependencies": [ - { - "name": "lodash", - "version": "1.0.0" - } - ], - "runtime": "node12", - "status": "built", - "secrets": [ - { - "name": "mySecret", - "updated_at": "2021-08-12T17:57:21.177990082Z" - } - ], - "all_changes_deployed": false - } - ], - "total": 2 -} diff --git a/src/test/resources/active_users_count.json b/src/test/resources/active_users_count.json deleted file mode 100644 index d800886d9..000000000 --- a/src/test/resources/active_users_count.json +++ /dev/null @@ -1 +0,0 @@ -123 \ No newline at end of file diff --git a/src/test/resources/authenticator_method_by_id.json b/src/test/resources/authenticator_method_by_id.json deleted file mode 100644 index b76986a1e..000000000 --- a/src/test/resources/authenticator_method_by_id.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "id":"email|dev_7o0sei0Q5FJNLfk1", - "type":"email", - "confirmed":true, - "email":"****@pmes****", - "created_at":"2023-01-19T15:26:28.887Z" -} diff --git a/src/test/resources/authenticator_method_create.json b/src/test/resources/authenticator_method_create.json deleted file mode 100644 index 172cdc4a8..000000000 --- a/src/test/resources/authenticator_method_create.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type":"email", - "created_at":"2023-01-19T15:21:44.014Z", - "email":"temp12@temp.com", - "id":"email|dev_CgJUhSQ6jqPiQAsJ" -} diff --git a/src/test/resources/authenticator_method_list.json b/src/test/resources/authenticator_method_list.json deleted file mode 100644 index 119011a1d..000000000 --- a/src/test/resources/authenticator_method_list.json +++ /dev/null @@ -1,43 +0,0 @@ -[ - { - "id": "phone|123", - "type": "phone", - "confirmed": true, - "phone_number": "XXXXXXXX0000", - "created_at": "2023-02-01T18:44:46.483Z", - "last_auth_at": "2023-02-07T20:29:33.547Z", - "preferred_authentication_method": "sms", - "credential_device_type": "single_device", - "credential_backed_up": true, - "identity_user_id": "identityId", - "user_agent": "userAgent", - "authentication_methods": [ - { - "id": "sms|id", - "type": "sms" - } - ] - }, - { - "id": "webauthn-platform|id", - "type": "webauthn-platform", - "confirmed": true, - "name": "name", - "created_at": "2023-02-01T18:44:50.304Z", - "last_auth_at": "2023-02-01T18:45:10.817Z", - "key_id": "xxxxxx-xxxx_xxxxxxxxxxxxxxx", - "public_key": "pubkey", - "relying_party_identifier": "tenant.auth0.com" - }, - { - "id": "webauthn-platform|id", - "type": "webauthn-platform", - "confirmed": true, - "name": "name", - "created_at": "2023-03-14T20:13:25.541Z", - "last_auth_at": "2023-03-14T20:13:32.834Z", - "key_id": "keyid", - "public_key": "pubkey", - "relying_party_identifier": "tenant.auth0.com" - } -] diff --git a/src/test/resources/authenticator_method_paged_list.json b/src/test/resources/authenticator_method_paged_list.json deleted file mode 100644 index 70ac22333..000000000 --- a/src/test/resources/authenticator_method_paged_list.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "authenticators": [ - { - "id": "phone|id", - "type": "phone", - "confirmed": true, - "phone_number": "XXXXXXXX0000", - "created_at": "2023-02-01T18:44:46.483Z", - "last_auth_at": "2023-02-07T20:29:33.547Z", - "preferred_authentication_method": "sms", - "authentication_methods": [ - { - "id": "sms|id", - "type": "sms" - } - ] - } - ], - "total": 3, - "start": 0, - "limit": 1 -} diff --git a/src/test/resources/authenticator_method_update.json b/src/test/resources/authenticator_method_update.json deleted file mode 100644 index b0e66c214..000000000 --- a/src/test/resources/authenticator_method_update.json +++ /dev/null @@ -1,8 +0,0 @@ -[ - { - "id":"email|dev_o05Io01uPXyvi87E", - "type":"email", - "email":"semp@pmes.com", - "created_at":"2023-01-19T15:23:29.156Z" - } -] diff --git a/src/test/resources/authenticator_method_update_by_id.json b/src/test/resources/authenticator_method_update_by_id.json deleted file mode 100644 index ed18fb154..000000000 --- a/src/test/resources/authenticator_method_update_by_id.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type":"email", - "name":"123temp@temp123.com", - "created_at":"2023-01-19T15:26:28.887Z", - "email":"semp@pmes.com", - "id":"email|dev_7o0sei0Q5FJNLfk1" -} diff --git a/src/test/resources/blacklisted_tokens_list.json b/src/test/resources/blacklisted_tokens_list.json deleted file mode 100644 index d78e92ad5..000000000 --- a/src/test/resources/blacklisted_tokens_list.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "aud": "1", - "jti": "1" - }, - { - "aud": "2", - "jti": "2" - } -] \ No newline at end of file diff --git a/src/test/resources/branding_login_template.json b/src/test/resources/branding_login_template.json deleted file mode 100644 index 1a682c5a2..000000000 --- a/src/test/resources/branding_login_template.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "body": "{%- auth0:head -%}{%- auth0:widget -%}" -} diff --git a/src/test/resources/branding_settings.json b/src/test/resources/branding_settings.json deleted file mode 100644 index 9c34d23f8..000000000 --- a/src/test/resources/branding_settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors": { - "page_background": "#000000", - "primary": "#0E84F2" - }, - "logo_url": "https://test/logo.svg", - "favicon_url": "https://test/favicon.svg", - "font": { - "url": "https://test/font.ttf" - } -} diff --git a/src/test/resources/breached_password_settings.json b/src/test/resources/breached_password_settings.json deleted file mode 100644 index b3c1bce9f..000000000 --- a/src/test/resources/breached_password_settings.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "enabled": true, - "shields": [ - "block", - "admin_notification" - ], - "admin_notification_frequency": [ - "immediately", - "weekly" - ], - "method": "standard", - "stage": { - "pre-user-registration": { - "shields": [ - "admin_notification" - ] - } - } -} diff --git a/src/test/resources/brute_force_configuration.json b/src/test/resources/brute_force_configuration.json deleted file mode 100644 index 5295d1907..000000000 --- a/src/test/resources/brute_force_configuration.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "enabled": false, - "shields": [ - "block", - "user_notification" - ], - "allowlist": [ - "143.204.0.105", - "2600:9000:208f:ca00:d:f5f5:b40:93a1" - ], - "mode": "count_per_identifier_and_ip", - "max_attempts": 10 -} diff --git a/src/test/resources/client.json b/src/test/resources/client.json deleted file mode 100644 index 967c9104c..000000000 --- a/src/test/resources/client.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "name": "My 1 application", - "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_secret": "MG_TNT2ver-SylNat-_VeMmd-4m0Waba0jr1troztBniSChEw0glxEmgEi2Kw40H", - "logo_uri": "https://my.logo.com/uri", - "callbacks": [ - "https://domain.auth0.com/callback" - ], - "allowed_origins": [ - "https://domain.auth0.com" - ], - "client_aliases": [ - "https://domain.auth0.com" - ], - "allowed_clients": [ - "clientId1" - ], - "allowed_logout_urls": [ - "https://domain.auth0.com/logout" - ], - "token_endpoint_auth_method": "code", - "app_type": "native", - "oidc_conformant": false, - "jwt_configuration": { - "lifetime_in_seconds": 100, - "secret_encoded": true, - "scopes": {}, - "alg": "HS256" - }, - "encryption_key": { - "pub": "", - "cert": "" - }, - "sso": false, - "sso_disabled": false, - "custom_login_page_on": false, - "custom_login_page": "", - "custom_login_page_preview": "", - "form_template": "", - "is_heroku_app": false, - "addons": { - "rms": {}, - "slack": { - "team": "Auth0" - }, - "mscrm": {}, - "layer": {}, - "zoom": {} - }, - "client_metadata": {}, - "mobile": { - "android": { - "app_package_name": "com.example", - "sha256_cert_fingerprints": [ - "D8:A0:83:..." - ] - }, - "ios": { - "team_id": "9JA89QQLNQ", - "app_bundle_identifier": "com.my.bundle.id" - } - }, - "client_authentication_methods": { - "private_key_jwt": { - "credentials": [ { - "id": "cred_abc" - }] - }, - "self_signed_tls_client_auth": { - "credentials": [ { - "id": "cred_123" - }] - }, - "tls_client_auth": { - "credentials": [ { - "id": "cred_789" - }] - } - }, - "signed_request_object": { - "credentials": [ - { - "id": "cred_id", - "credential_type": "public_key", - "kid": "cred_kid", - "alg": "RS256", - "name": "My JAR credential", - "created_at": "2024-03-14T11:34:28.893Z", - "updated_at": "2024-03-14T11:34:28.893Z" - } - ] - }, - "compliance_level": "fapi1_adv_pkj_par", - "require_proof_of_possession": true, - "token_quota": { - "client_credentials": { - "per_day": 100, - "per_hour": 20, - "enforce": true - } - } -} diff --git a/src/test/resources/client_credential.json b/src/test/resources/client_credential.json deleted file mode 100644 index fa0f0fc2b..000000000 --- a/src/test/resources/client_credential.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "id": "cred_asqwXXXIIadqq2T3zAXPwv", - "name": "new cred", - "credential_type": "public_key", - "kid": "eKtBStP7BN2NiaoVrNGzb0QaRl4HlzyH1Lp00JB6Xj0", - "alg": "RS256", - "thumbprint": "thumb", - "created_at": "2023-04-13T16:18:01.481Z", - "updated_at": "2023-04-13T16:18:01.481Z", - "expires_at": "2023-04-13T16:19:00.349Z" -} diff --git a/src/test/resources/client_credential_list.json b/src/test/resources/client_credential_list.json deleted file mode 100644 index 59fa510de..000000000 --- a/src/test/resources/client_credential_list.json +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "id": "cred_asqwdTaebdqq2T3zAXPwv", - "name": "new cred", - "credential_type": "public_key", - "kid": "eKtBStP7BN2NV1MVrNGzb0QaRp0uHlzyH1Lje9JB6Xj0", - "alg": "RS256", - "thumbprint": "thumb", - "created_at": "2023-04-13T16:18:01.481Z", - "updated_at": "2023-04-13T16:18:01.481Z", - "expires_at": "2023-04-13T16:19:00.349Z" - } -] diff --git a/src/test/resources/client_grant.json b/src/test/resources/client_grant.json deleted file mode 100644 index 6219afec3..000000000 --- a/src/test/resources/client_grant.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "1", - "client_id": "clientId1", - "audience": "audience1", - "scope": [ - "openid", - "profile" - ] -} \ No newline at end of file diff --git a/src/test/resources/client_grants_list.json b/src/test/resources/client_grants_list.json deleted file mode 100644 index 9af244585..000000000 --- a/src/test/resources/client_grants_list.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "id": "1", - "client_id": "clientId1", - "audience": "audience1", - "scope": [ - "openid", - "profile" - ] - }, - { - "id": "2", - "client_id": "clientId2", - "audience": "audience2", - "scope": [ - "openid", - "profile" - ] - } -] \ No newline at end of file diff --git a/src/test/resources/client_grants_paged_list.json b/src/test/resources/client_grants_paged_list.json deleted file mode 100644 index 03f08625f..000000000 --- a/src/test/resources/client_grants_paged_list.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "client_grants": [ - { - "id": "1", - "client_id": "clientId1", - "audience": "audience1", - "scope": [ - "openid", - "profile" - ] - }, - { - "id": "2", - "client_id": "clientId2", - "audience": "audience2", - "scope": [ - "openid", - "profile" - ] - } - ] -} \ No newline at end of file diff --git a/src/test/resources/clients_list.json b/src/test/resources/clients_list.json deleted file mode 100644 index 208b5ff5a..000000000 --- a/src/test/resources/clients_list.json +++ /dev/null @@ -1,153 +0,0 @@ -[ - { - "name": "My 1 application", - "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_secret": "MG_TNT2ver-SylNat-_VeMmd-4m0Waba0jr1troztBniSChEw0glxEmgEi2Kw40H", - "logo_uri": "https://my.logo.com/uri", - "callbacks": [ - "https://domain.auth0.com/callback" - ], - "allowed_origins": [ - "https://domain.auth0.com" - ], - "client_aliases": [ - "https://domain.auth0.com" - ], - "allowed_clients": [ - "clientId1" - ], - "allowed_logout_urls": [ - "https://domain.auth0.com/logout" - ], - "token_endpoint_auth_method": "code", - "app_type": "native", - "oidc_conformant": false, - "jwt_configuration": { - "lifetime_in_seconds": 100, - "secret_encoded": true, - "scopes": {}, - "alg": "HS256" - }, - "encryption_key": { - "pub": "", - "cert": "" - }, - "sso": false, - "sso_disabled": false, - "custom_login_page_on": false, - "custom_login_page": "", - "custom_login_page_preview": "", - "form_template": "", - "is_heroku_app": false, - "tenant": "auth0", - "global": false, - "cross_origin_authentication": false, - "cross_origin_loc": "https://auth0.com/auth/callback-cross-auth", - "addons": { - "rms": {}, - "slack": { - "team": "Auth0" - }, - "mscrm": {}, - "layer": {}, - "zoom": {} - }, - "resource_servers": [ - { - "identifier": "api.tenant.com", - "scopes": [ - "read:something" - ] - } - ], - "client_metadata": {}, - "mobile": { - "android": { - "app_package_name": "com.example", - "sha256_cert_fingerprints": [ - "D8:A0:83:..." - ] - }, - "ios": { - "team_id": "9JA89QQLNQ", - "app_bundle_identifier": "com.my.bundle.id" - } - }, - "token_quota": { - "client_credentials": { - "per_day": 100, - "per_hour": 20, - "enforce": true - } - } - }, - { - "name": "My 2 application", - "client_id": "BbiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_secret": "MG_TNT2ver-SylNat-_VeMmd-4m0Waba0jr1troztBniSChEw0glxEmgEi2Kw40H", - "logo_uri": "https://my.logo.com/uri", - "callbacks": [ - "https://domain.auth0.com/callback" - ], - "allowed_origins": [ - "https://domain.auth0.com" - ], - "client_aliases": [ - "https://domain.auth0.com" - ], - "allowed_clients": [ - "clientId1" - ], - "allowed_logout_urls": [ - "https://domain.auth0.com/logout" - ], - "token_endpoint_auth_method": "code", - "app_type": "native", - "oidc_conformant": false, - "jwt_configuration": { - "lifetime_in_seconds": 100, - "secret_encoded": true, - "scopes": {}, - "alg": "HS256" - }, - "encryption_key": { - "pub": "", - "cert": "" - }, - "sso": false, - "sso_disabled": false, - "custom_login_page_on": false, - "custom_login_page": "", - "custom_login_page_preview": "", - "form_template": "", - "is_heroku_app": false, - "addons": { - "rms": {}, - "slack": {}, - "mscrm": {}, - "layer": {}, - "zoom": {} - }, - "resource_servers": [ - { - "identifier": "api.tenant.com", - "scopes": [ - "read:something" - ] - } - ], - "client_metadata": {}, - "mobile": { - "android": { - "app_package_name": "com.example", - "sha256_cert_fingerprints": [ - "D8:A0:83:..." - ] - }, - "ios": { - "team_id": "9JA89QQLNQ", - "app_bundle_identifier": "com.my.bundle.id" - } - } - } -] diff --git a/src/test/resources/clients_paged_list.json b/src/test/resources/clients_paged_list.json deleted file mode 100644 index 6097405f4..000000000 --- a/src/test/resources/clients_paged_list.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "clients": [ - { - "name": "My 1 application", - "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_secret": "MG_TNT2ver-SylNat-_VeMmd-4m0Waba0jr1troztBniSChEw0glxEmgEi2Kw40H", - "logo_uri": "https://my.logo.com/uri", - "callbacks": [ - "https://domain.auth0.com/callback" - ], - "allowed_origins": [ - "https://domain.auth0.com" - ], - "client_aliases": [ - "https://domain.auth0.com" - ], - "allowed_clients": [ - "clientId1" - ], - "allowed_logout_urls": [ - "https://domain.auth0.com/logout" - ], - "token_endpoint_auth_method": "code", - "app_type": "native", - "oidc_conformant": false, - "jwt_configuration": { - "lifetime_in_seconds": 100, - "secret_encoded": true, - "scopes": {}, - "alg": "HS256" - }, - "encryption_key": { - "pub": "", - "cert": "" - }, - "sso": false, - "sso_disabled": false, - "custom_login_page_on": false, - "custom_login_page": "", - "custom_login_page_preview": "", - "form_template": "", - "is_heroku_app": false, - "addons": { - "rms": {}, - "slack": { - "team": "Auth0" - }, - "mscrm": {}, - "layer": {}, - "zoom": {} - }, - "resource_servers": [ - { - "identifier": "api.tenant.com", - "scopes": [ - "read:something" - ] - } - ], - "client_metadata": {}, - "mobile": { - "android": { - "app_package_name": "com.example", - "sha256_cert_fingerprints": [ - "D8:A0:83:..." - ] - }, - "ios": { - "team_id": "9JA89QQLNQ", - "app_bundle_identifier": "com.my.bundle.id" - } - } - }, - { - "name": "My 2 application", - "client_id": "BbiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_secret": "MG_TNT2ver-SylNat-_VeMmd-4m0Waba0jr1troztBniSChEw0glxEmgEi2Kw40H", - "logo_uri": "https://my.logo.com/uri", - "callbacks": [ - "https://domain.auth0.com/callback" - ], - "allowed_origins": [ - "https://domain.auth0.com" - ], - "client_aliases": [ - "https://domain.auth0.com" - ], - "allowed_clients": [ - "clientId1" - ], - "allowed_logout_urls": [ - "https://domain.auth0.com/logout" - ], - "token_endpoint_auth_method": "code", - "app_type": "native", - "oidc_conformant": false, - "jwt_configuration": { - "lifetime_in_seconds": 100, - "secret_encoded": true, - "scopes": {}, - "alg": "HS256" - }, - "encryption_key": { - "pub": "", - "cert": "" - }, - "sso": false, - "sso_disabled": false, - "custom_login_page_on": false, - "custom_login_page": "", - "custom_login_page_preview": "", - "form_template": "", - "is_heroku_app": false, - "addons": { - "rms": {}, - "slack": {}, - "mscrm": {}, - "layer": {}, - "zoom": {} - }, - "resource_servers": [ - { - "identifier": "api.tenant.com", - "scopes": [ - "read:something" - ] - } - ], - "client_metadata": {}, - "mobile": { - "android": { - "app_package_name": "com.example", - "sha256_cert_fingerprints": [ - "D8:A0:83:..." - ] - }, - "ios": { - "team_id": "9JA89QQLNQ", - "app_bundle_identifier": "com.my.bundle.id" - } - } - } - ] -} \ No newline at end of file diff --git a/src/test/resources/connection.json b/src/test/resources/connection.json deleted file mode 100644 index f2f51e098..000000000 --- a/src/test/resources/connection.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "My connection1", - "options": {}, - "id": "con_0000000000000001", - "strategy": "auth0", - "enabled_clients": [ - "avUAvH1pgnZGgAGlv8guZLPoaOnjVJsM", - "ScKKdrpyUwfkhOQP6KXItH32INgZf7Rb" - ], - "metadata": { - "key": "value" - }, - "is_domain_connection": true, - "show_as_button": true -} diff --git a/src/test/resources/connection_key.json b/src/test/resources/connection_key.json deleted file mode 100644 index 0e4a30720..000000000 --- a/src/test/resources/connection_key.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "kid": "kid-1", - "algorithm": "RS256", - "key_use": "signing", - "subject_dn": "/CN=cajwt", - "cert": "-----BEGIN CERTIFICATE-----\r\ncert-key-1\r\n-----END CERTIFICATE-----\r\n", - "fingerprint": "F1", - "thumbprint": "example-print", - "pkcs": "-----BEGIN PKCS7-----\r\npkcs-1\r\n-----END PKCS7-----\r\n", - "current": true, - "current_since": "2025-05-29T13:17:24.850Z" - }, - { - "kid": "kid-2", - "algorithm": "RS256", - "key_use": "signing", - "subject_dn": "/CN=cajwt", - "cert": "-----BEGIN CERTIFICATE-----\r\ncert-key-2\r\n-----END CERTIFICATE-----\r\n", - "fingerprint": "F2", - "thumbprint": "example-print", - "pkcs": "-----BEGIN PKCS7-----\r\npkcs-2\r\n-----END PKCS7-----\r\n", - "next": true - } -] diff --git a/src/test/resources/connection_scim_configuration.json b/src/test/resources/connection_scim_configuration.json deleted file mode 100644 index e975aba6f..000000000 --- a/src/test/resources/connection_scim_configuration.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "tenant_name": "dev-1", - "connection_id": "con_0000000000000001", - "connection_name": "New Connection", - "strategy": "okta", - "mapping": [ - { - "scim": "userName", - "auth0": "preferred_username" - }, - { - "scim": "emails[primary eq true].value", - "auth0": "email" - } - ], - "updated_on": "2025-01-22T11:56:24.461Z", - "created_at": "2025-01-22T11:56:24.461Z", - "user_id_attribute": "externalId" -} diff --git a/src/test/resources/connection_scim_token.json b/src/test/resources/connection_scim_token.json deleted file mode 100644 index 13de59eed..000000000 --- a/src/test/resources/connection_scim_token.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "token_id": "tok_000000001", - "token": "tok_iwioqiwoqoqiwqoiwqwi", - "scopes": [ - "get:users" - ], - "created_at": "2025-01-23T12:34:46.321Z", - "valid_until": "2025-01-23T12:51:26.321Z" -} diff --git a/src/test/resources/connection_scim_tokens.json b/src/test/resources/connection_scim_tokens.json deleted file mode 100644 index 421689d93..000000000 --- a/src/test/resources/connection_scim_tokens.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "token_id": "tok_000000001", - "created_at": "2025-01-23T12:34:46.321Z", - "scopes": [ - "get:users" - ], - "valid_until": "2025-01-23T12:51:26.321Z" - }, - { - "token_id": "tok_000000002", - "created_at": "2025-01-22T12:09:23.313Z", - "scopes": [ - "get:users", - "post:users", - "patch:users", - "delete:users", - "put:users" - ] - } -] diff --git a/src/test/resources/connections_list.json b/src/test/resources/connections_list.json deleted file mode 100644 index 88c471cc3..000000000 --- a/src/test/resources/connections_list.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "name": "My connection1", - "options": {}, - "id": "con_0000000000000001", - "strategy": "auth0", - "enabled_clients": [ - "avUAvH1pgnZGgAGlv8guZLPoaOnjVJsM", - "ScKKdrpyUwfkhOQP6KXItH32INgZf7Rb" - ], - "metadata": { - "key": "value" - } - }, - { - "name": "My connection2", - "options": {}, - "id": "con_0000000000000002", - "strategy": "auth0", - "enabled_clients": [ - "avUAvH1pgnZGgAGlv8guZLPoaOnjVJsM", - "ScKKdrpyUwfkhOQP6KXItH32INgZf7Rb" - ] - } -] \ No newline at end of file diff --git a/src/test/resources/connections_paged_list.json b/src/test/resources/connections_paged_list.json deleted file mode 100644 index 1c2b8cd38..000000000 --- a/src/test/resources/connections_paged_list.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "connections": [ - { - "name": "My connection1", - "options": {}, - "id": "con_0000000000000001", - "strategy": "auth0", - "enabled_clients": [ - "avUAvH1pgnZGgAGlv8guZLPoaOnjVJsM", - "ScKKdrpyUwfkhOQP6KXItH32INgZf7Rb" - ] - }, - { - "name": "My connection2", - "options": {}, - "id": "con_0000000000000002", - "strategy": "auth0", - "enabled_clients": [ - "avUAvH1pgnZGgAGlv8guZLPoaOnjVJsM", - "ScKKdrpyUwfkhOQP6KXItH32INgZf7Rb" - ] - } - ] -} diff --git a/src/test/resources/custom_text_prompt.json b/src/test/resources/custom_text_prompt.json deleted file mode 100644 index dd14ae925..000000000 --- a/src/test/resources/custom_text_prompt.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "signup": { - "description": "Sign up to access amazing features for my login domain" - } -} diff --git a/src/test/resources/daily_stats_list.json b/src/test/resources/daily_stats_list.json deleted file mode 100644 index 71a42d71c..000000000 --- a/src/test/resources/daily_stats_list.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "date": "2014-01-01T05:00:00.000Z", - "logins": 100 - }, - { - "date": "2014-01-01T05:00:00.000Z", - "logins": 100 - } -] \ No newline at end of file diff --git a/src/test/resources/default_connection_scim_configuration.json b/src/test/resources/default_connection_scim_configuration.json deleted file mode 100644 index ceccc8793..000000000 --- a/src/test/resources/default_connection_scim_configuration.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "mapping": [ - { - "auth0": "preferred_username", - "scim": "userName" - }, - { - "auth0": "email", - "scim": "emails[primary eq true].value" - } - ] -} diff --git a/src/test/resources/device_credentials.json b/src/test/resources/device_credentials.json deleted file mode 100644 index 7e0ececfb..000000000 --- a/src/test/resources/device_credentials.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "id": "dcr_0INpgifmKRm5z", - "device_name": "Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", - "user_id": "auth0|121212", - "type": "refresh_token", - "client_id": "client987" -} \ No newline at end of file diff --git a/src/test/resources/device_credentials_list.json b/src/test/resources/device_credentials_list.json deleted file mode 100644 index 0b7a8edae..000000000 --- a/src/test/resources/device_credentials_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "id": "dcr_03YxCFDQfS7RT", - "device_name": "Google Nexus 4 - 5.1.0 - API 22 - 768x1280", - "user_id": "twitter|323232", - "type": "refresh_token", - "client_id": "client987" - }, - { - "id": "dcr_0INpgifmKRm5z", - "device_name": "Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", - "user_id": "auth0|121212", - "type": "refresh_token", - "client_id": "client987" - } -] \ No newline at end of file diff --git a/src/test/resources/email_provider.json b/src/test/resources/email_provider.json deleted file mode 100644 index 197c7bd5b..000000000 --- a/src/test/resources/email_provider.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "sendgrid", - "enabled": true, - "default_from_address": "", - "credentials": { - "api_user": "", - "api_key": "your_mandrill_api_key", - "accessKeyId": "", - "secretAccessKey": "", - "region": "", - "smtp_host": "", - "smtp_port": 0, - "smtp_user": "", - "smtp_pass": "" - }, - "settings": {} -} \ No newline at end of file diff --git a/src/test/resources/email_template.json b/src/test/resources/email_template.json deleted file mode 100644 index 8871f9239..000000000 --- a/src/test/resources/email_template.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "template": "welcome_email", - "from": "me@auth0.com", - "subject": "Some subject", - "syntax": "liquid", - "body": " ", - "enabled": false -} \ No newline at end of file diff --git a/src/test/resources/email_verification_ticket.json b/src/test/resources/email_verification_ticket.json deleted file mode 100644 index 92d62ad64..000000000 --- a/src/test/resources/email_verification_ticket.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ticket": "https://login.auth0.com/lo/verify_email?client_id=nsaPS2p3cargoFy82WT7betaOPOt3qSh&tenant=mdocs&bewit=bmNlR01CcDNOUE1GeXVzODJXVDdyY1RUT1BPdDNxU2hcMTQzMDY2MjE4MVxuRTcxM0RSeUNlbEpzUUJmaFVaS3A1NEdJbWFzSUZMYzRTdEFtY2NMMXhZPVx7ImVtYWloojoiZGFtaWtww2NoQGhvdG1haWwuY29tIiwidGVuYW50IjoiZHNjaGVua2tjwWFuIiwiY2xpZW50X2lkIjoibmNlR01CcDNOUE1GeXVzODJXVDdyY1RUT1BPiiqxU2giLCJjb25uZWN0aW9uIjoiRGFtaWmsdiwicmVzdWx0VXJsIjoiIn0" -} \ No newline at end of file diff --git a/src/test/resources/empty_list.json b/src/test/resources/empty_list.json deleted file mode 100644 index 0637a088a..000000000 --- a/src/test/resources/empty_list.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/src/test/resources/enabled_clients_for_connection.json b/src/test/resources/enabled_clients_for_connection.json deleted file mode 100644 index d45d04a29..000000000 --- a/src/test/resources/enabled_clients_for_connection.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "clients": [ - { - "client_id": "client-1" - }, - { - "client_id": "client-2" - } - ], - "next": "next" -} diff --git a/src/test/resources/encryption_key.json b/src/test/resources/encryption_key.json deleted file mode 100644 index 8c11c21e2..000000000 --- a/src/test/resources/encryption_key.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "kid": "kid", - "type": "tenant-master-key", - "state": "active", - "created_at": "2024-10-16T10:50:44.107Z", - "updated_at": "2024-10-24T06:47:24.899Z", - "parent_kid": "pkid", - "public_key": "pkey" -} diff --git a/src/test/resources/encryption_keys_list.json b/src/test/resources/encryption_keys_list.json deleted file mode 100644 index fe5fc2d28..000000000 --- a/src/test/resources/encryption_keys_list.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "kid": "kid-1", - "type": "customer-provided-root-key", - "state": "pre-activation", - "created_at": "2024-10-24T08:02:18.029Z", - "updated_at": "2024-10-24T08:02:18.029Z", - "parent_kid": null, - "public_key": null - }, - { - "kid": "kid-2", - "type": "tenant-master-key", - "state": "active", - "created_at": "2024-10-24T06:47:23.749Z", - "updated_at": "2024-10-24T06:47:23.749Z", - "parent_kid": "pkid-1", - "public_key": null - }, - { - "kid": "kid-3", - "type": "tenant-master-key", - "state": "destroyed", - "created_at": "2024-10-16T10:50:44.107Z", - "updated_at": "2024-10-24T06:47:24.899Z", - "parent_kid": "pkid-2", - "public_key": null - } -] diff --git a/src/test/resources/error_with_message.json b/src/test/resources/error_with_message.json deleted file mode 100644 index 8ee33a091..000000000 --- a/src/test/resources/error_with_message.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "statusCode": 400, - "error": "Bad Request", - "message": "Query validation error: 'String 'invalid_field' does not match pattern. Must be a comma separated list of the following values: allowed_logout_urls,change_password.", - "errorCode": "invalid_query_string" -} \ No newline at end of file diff --git a/src/test/resources/event_log.json b/src/test/resources/event_log.json deleted file mode 100644 index 544b54169..000000000 --- a/src/test/resources/event_log.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "date": "2016-02-23T19:57:29.532Z", - "type": "sapi", - "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_name": "My Game", - "ip": "190.257.209.19", - "location_info": {}, - "details": {}, - "user_id": "auth0|56c75c4e42b6359e98374bc2" -} \ No newline at end of file diff --git a/src/test/resources/event_logs_list.json b/src/test/resources/event_logs_list.json deleted file mode 100644 index b4a468272..000000000 --- a/src/test/resources/event_logs_list.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "date": "2016-02-23T19:57:29.532Z", - "type": "sapi", - "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_name": "My Game", - "ip": "190.257.209.19", - "location_info": {}, - "details": {}, - "user_id": "auth0|56c75c4e42b6359e98374bc2" - }, - { - "date": "2016-03-23T19:57:31.532Z", - "type": "lapi", - "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_name": "My Application", - "ip": "190.257.209.29", - "location_info": {}, - "details": {}, - "user_id": "auth0|56c75c4e42b6359e98374bc2" - } -] \ No newline at end of file diff --git a/src/test/resources/event_logs_paged_list.json b/src/test/resources/event_logs_paged_list.json deleted file mode 100644 index 7272b6df2..000000000 --- a/src/test/resources/event_logs_paged_list.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "logs": [ - { - "date": "2016-02-23T19:57:29.532Z", - "type": "sapi", - "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_name": "My Game", - "ip": "190.257.209.19", - "location_info": {}, - "details": {}, - "user_id": "auth0|56c75c4e42b6359e98374bc2" - }, - { - "date": "2016-03-23T19:57:31.532Z", - "type": "lapi", - "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww", - "client_name": "My Application", - "ip": "190.257.209.29", - "location_info": {}, - "details": {}, - "user_id": "auth0|56c75c4e42b6359e98374bc2" - } - ] -} \ No newline at end of file diff --git a/src/test/resources/grants_list.json b/src/test/resources/grants_list.json deleted file mode 100644 index d171bec21..000000000 --- a/src/test/resources/grants_list.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "id": "1", - "clientID": "clientId1", - "audience": "audience1", - "user_id": "userId", - "scope": [ - "openid", - "profile" - ] - }, - { - "id": "2", - "clientID": "clientId2", - "user_id": "userId", - "audience": "audience2", - "scope": [ - "openid", - "profile" - ] - } -] \ No newline at end of file diff --git a/src/test/resources/grants_paged_list.json b/src/test/resources/grants_paged_list.json deleted file mode 100644 index 0b43bf2df..000000000 --- a/src/test/resources/grants_paged_list.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "grants": [ - { - "id": "1", - "clientID": "clientId1", - "audience": "audience1", - "user_id": "userId", - "scope": [ - "openid", - "profile" - ] - }, - { - "id": "2", - "clientID": "clientId2", - "user_id": "userId", - "audience": "audience2", - "scope": [ - "openid", - "profile" - ] - } - ] -} \ No newline at end of file diff --git a/src/test/resources/guardian_authentication_policies_list.json b/src/test/resources/guardian_authentication_policies_list.json deleted file mode 100644 index 152671499..000000000 --- a/src/test/resources/guardian_authentication_policies_list.json +++ /dev/null @@ -1 +0,0 @@ -["all-applications"] diff --git a/src/test/resources/guardian_enrollment.json b/src/test/resources/guardian_enrollment.json deleted file mode 100644 index fdadfd66b..000000000 --- a/src/test/resources/guardian_enrollment.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "id": "dev_3213TGOhu0ea", - "status": "confirmed", - "type": "pn", - "name": "Nexus 5X", - "phone_number": null, - "identifier": "f491f858432059", - "enrolled_at": "2017-01-18T17:45:08.328Z", - "auth_method": "", - "last_auth": "2017-07-12T17:56:26.804Z" -} \ No newline at end of file diff --git a/src/test/resources/guardian_enrollment_ticket.json b/src/test/resources/guardian_enrollment_ticket.json deleted file mode 100644 index a44d8f329..000000000 --- a/src/test/resources/guardian_enrollment_ticket.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "user_id": "u123", - "email": "me@auth0.com", - "send_mail": false, - "ticket_id": "12345679", - "ticket_url": "https://auth0.com/guardian/tickets/123" -} \ No newline at end of file diff --git a/src/test/resources/guardian_enrollments_list.json b/src/test/resources/guardian_enrollments_list.json deleted file mode 100644 index 44fb1612e..000000000 --- a/src/test/resources/guardian_enrollments_list.json +++ /dev/null @@ -1,24 +0,0 @@ -[ - { - "id": "dev_3213TGOhu0ea", - "status": "confirmed", - "type": "pn", - "name": "Nexus 5X", - "phone_number": null, - "identifier": "f491f858432059", - "enrolled_at": "2017-01-18T17:45:08.328Z", - "auth_method": "", - "last_auth": "" - }, - { - "id": "dev_3213TGOhu0ea", - "status": "confirmed", - "type": "pn", - "name": "Nexus 5X", - "phone_number": null, - "identifier": "f491f858432059", - "enrolled_at": "2017-01-18T17:45:08.328Z", - "auth_method": "", - "last_auth": "" - } -] \ No newline at end of file diff --git a/src/test/resources/guardian_factor.json b/src/test/resources/guardian_factor.json deleted file mode 100644 index 18fc5c475..000000000 --- a/src/test/resources/guardian_factor.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "enabled": false, - "trial_expired": false, - "name": "Second" -} \ No newline at end of file diff --git a/src/test/resources/guardian_factors_list.json b/src/test/resources/guardian_factors_list.json deleted file mode 100644 index d03d983e2..000000000 --- a/src/test/resources/guardian_factors_list.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "enabled": true, - "trial_expired": true, - "name": "First" - }, - { - "enabled": false, - "trial_expired": false, - "name": "Second" - } -] \ No newline at end of file diff --git a/src/test/resources/guardian_sns_factor_provider.json b/src/test/resources/guardian_sns_factor_provider.json deleted file mode 100644 index f40625d8e..000000000 --- a/src/test/resources/guardian_sns_factor_provider.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "aws_access_key_id": "123123132", - "aws_secret_access_key": "aac", - "aws_region": "us", - "sns_apns_platform_application_arn": "132", - "sns_gcm_platform_application_arn": "3123" -} \ No newline at end of file diff --git a/src/test/resources/guardian_sns_factor_provider_empty.json b/src/test/resources/guardian_sns_factor_provider_empty.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/test/resources/guardian_sns_factor_provider_empty.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/test/resources/guardian_templates.json b/src/test/resources/guardian_templates.json deleted file mode 100644 index f96402114..000000000 --- a/src/test/resources/guardian_templates.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "enrollment_message": "Enroll using..", - "verification_message": "Verify your number.." -} \ No newline at end of file diff --git a/src/test/resources/guardian_twilio_factor_provider_empty.json b/src/test/resources/guardian_twilio_factor_provider_empty.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/test/resources/guardian_twilio_factor_provider_empty.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/test/resources/guardian_twilio_factor_provider_with_from.json b/src/test/resources/guardian_twilio_factor_provider_with_from.json deleted file mode 100644 index e16dfd70e..000000000 --- a/src/test/resources/guardian_twilio_factor_provider_with_from.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "from": "+156789", - "messaging_service_sid": null, - "auth_token": "aToKen", - "sid": "3123" -} \ No newline at end of file diff --git a/src/test/resources/guardian_twilio_factor_provider_with_messaging_service_sid.json b/src/test/resources/guardian_twilio_factor_provider_with_messaging_service_sid.json deleted file mode 100644 index 1b577d2de..000000000 --- a/src/test/resources/guardian_twilio_factor_provider_with_messaging_service_sid.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "from": null, - "messaging_service_sid": "aac", - "auth_token": "aToKen", - "sid": "3123" -} \ No newline at end of file diff --git a/src/test/resources/identities_list.json b/src/test/resources/identities_list.json deleted file mode 100644 index 329ef0273..000000000 --- a/src/test/resources/identities_list.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "connection": "Someconnetion", - "user_id": "5457edea1b8f22891a000002", - "provider": "facebook", - "isSocial": true - }, - { - "connection": "Initial-Connection", - "user_id": "5457edea1b8f22891a000004", - "provider": "auth0", - "isSocial": false - } -] \ No newline at end of file diff --git a/src/test/resources/invitation.json b/src/test/resources/invitation.json deleted file mode 100644 index 01ccff852..000000000 --- a/src/test/resources/invitation.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "uinv_Q3lgZXkis997Rqs3", - "client_id": "klCnbSD1U1YAIeLRdvEAFMwDoOX5bfsb", - "inviter": { - "name": "timmy" - }, - "invitee": { - "email": "timmy@domain.com" - }, - "invitation_url": "https://some-domain.auth0.com/login?invitation=U0o1uoXAl1VPkKbZlaRWEWJadkeed1E&organization=org_W3OHp07dfbjhHuWK&organization_name=timmy-org", - "ticket_id": "U0o1uoXAl1VPkKbZla0a833soMUMOo1E", - "created_at": "2021-03-31T19:08:40.295Z", - "expires_at": "2021-04-07T19:08:40.295Z", - "organization_id": "org_W30s833MRbjhHuWK" -} diff --git a/src/test/resources/invitations_list.json b/src/test/resources/invitations_list.json deleted file mode 100644 index f36767fce..000000000 --- a/src/test/resources/invitations_list.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "id": "uinv_Q3lgZ0a99aY7Rqs3", - "client_id": "klCnbSD1U1Yd0333dvEAFMwDoOX5bfsb", - "inviter": { - "name": "dave!" - }, - "invitee": { - "email": "dave@domain.com" - }, - "invitation_url": "https://some-domain.auth0.com/login?invitation=U0o1uoXAl1VPkKbZlaRWEWJadkeed1E&organization=org_W3OHp07dfbjhHuWK&organization_name=timmy-org", - "ticket_id": "U0o1uoXAl1VPkKbZla0a833soMUMOo1E", - "created_at": "2021-03-31T19:08:40.295Z", - "expires_at": "2021-04-07T19:08:40.295Z", - "organization_id": "org_W30s833MRbjhHuWK" - }, - { - "id": "uinv_Q3lgZ0a99aY7Rqs3", - "client_id": "klCnbSD1U1Yd0333dvEAFMwDoOX5bfsb", - "inviter": { - "name": "jim.anderson@auth0.com" - }, - "invitee": { - "email": "jim.anderson+android@auth0.com" - }, - "app_metadata": {}, - "user_metadata": {}, - "invitation_url": "https://some-domain.auth0.com/login?invitation=U0o1uoXAl1VPkKbZlaRWEWJadkeed1E&organization=org_W3OHp07dfbjhHuWK&organization_name=timmy-org", - "ticket_id": "U0o1uoXAl1VPkK0a940a833soMUMOo1E", - "created_at": "2021-03-31T17:59:23.132Z", - "expires_at": "2021-04-07T17:59:23.132Z", - "organization_id": "org_W30s833MRbjhHuWK" - } -] diff --git a/src/test/resources/invitations_paged_list.json b/src/test/resources/invitations_paged_list.json deleted file mode 100644 index c17c7fe10..000000000 --- a/src/test/resources/invitations_paged_list.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "invitations": [ - { - "id": "uinv_Q3lgZ0a99aY7Rqs3", - "client_id": "klCnbSD1U1Yd0333dvEAFMwDoOX5bfsb", - "inviter": { - "name": "dave!" - }, - "invitee": { - "email": "dave@domain.com" - }, - "invitation_url": "https://some-domain.auth0.com/login?invitation=U0o1uoXAl1VPkKbZlaRWEWJadkeed1E&organization=org_W3OHp07dfbjhHuWK&organization_name=timmy-org", - "ticket_id": "U0o1uoXAl1VPkKbZla0a833soMUMOo1E", - "created_at": "2021-03-31T19:08:40.295Z", - "expires_at": "2021-04-07T19:08:40.295Z", - "organization_id": "org_W30s833MRbjhHuWK" - }, - { - "id": "uinv_Q3lgZ0a99aY7Rqs3", - "client_id": "klCnbSD1U1Yd0333dvEAFMwDoOX5bfsb", - "inviter": { - "name": "jim.anderson@auth0.com" - }, - "invitee": { - "email": "jim.anderson+android@auth0.com" - }, - "app_metadata": {}, - "user_metadata": {}, - "invitation_url": "https://some-domain.auth0.com/login?invitation=U0o1uoXAl1VPkKbZlaRWEWJadkeed1E&organization=org_W3OHp07dfbjhHuWK&organization_name=timmy-org", - "ticket_id": "U0o1uoXAl1VPkK0a940a833soMUMOo1E", - "created_at": "2021-03-31T17:59:23.132Z", - "expires_at": "2021-04-07T17:59:23.132Z", - "organization_id": "org_W30s833MRbjhHuWK" - } - ], - "start": 0, - "limit": 4 -} diff --git a/src/test/resources/job.json b/src/test/resources/job.json deleted file mode 100644 index 516677197..000000000 --- a/src/test/resources/job.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status": "completed", - "type": "verification_email", - "created_at": "", - "id": "job_0000000000000001", - "connection_id": "conn_1", - "location": "https://auth0.com/jobs", - "percentage_done": 100, - "time_left_seconds": 0 -} \ No newline at end of file diff --git a/src/test/resources/job_error_details.json b/src/test/resources/job_error_details.json deleted file mode 100644 index 238126c40..000000000 --- a/src/test/resources/job_error_details.json +++ /dev/null @@ -1,59 +0,0 @@ -[ - { - "user": { - "email": "john.doe@gmail.com", - "email_verified": false, - "username": "johndoe", - "phone_number": "+199999999999999", - "phone_verified": false, - "user_id": "usr_5457edea1b8f33391a000004", - "created_at": "", - "updated_at": "", - "last_password_reset": "2019-08-14T19:35:00Z", - "identities": [ - { - "provider": "facebook", - "user_id": "5457edea1b8f2289", - "connection": "facebook", - "isSocial": true - }, - { - "profileData": { - "name": "Auth0️", - "picture": "https://pbs.twimg.com/profile_images/auth0/5457ed_normal.jpg", - "created_at": "Fri May 20 17:13:23 +0000 2011", - "description": "My twitter bio", - "lang": "es", - "location": "Palermo, Buenos Aires.", - "screen_name": "auth0", - "time_zone": "Buenos Aires", - "utc_offset": -10800 - }, - "provider": "twitter", - "user_id": "5457ed", - "connection": "twitter", - "isSocial": true - } - ], - "app_metadata": {}, - "user_metadata": {}, - "picture": "", - "name": "", - "nickname": "", - "multifactor": [], - "last_ip": "", - "last_login": "", - "logins_count": 0, - "blocked": false, - "given_name": "", - "family_name": "" - }, - "errors": [ - { - "code": "code", - "message": "message", - "path": "path" - } - ] - } -] diff --git a/src/test/resources/job_post_users_exports.json b/src/test/resources/job_post_users_exports.json deleted file mode 100644 index 355268d48..000000000 --- a/src/test/resources/job_post_users_exports.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "users_export", - "status": "pending", - "connection_id": "con_123456789", - "format": "csv", - "connection": "Username-Password-Authentication", - "created_at": "2020-04-07T18:07:32.792Z", - "id": "job_123456789" -} \ No newline at end of file diff --git a/src/test/resources/job_post_users_imports.json b/src/test/resources/job_post_users_imports.json deleted file mode 100644 index 01f2912ee..000000000 --- a/src/test/resources/job_post_users_imports.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "users_import", - "status": "pending", - "connection_id": "con_123456789", - "connection": "Username-Password-Authentication", - "created_at": "2020-04-08T21:25:31.675Z", - "id": "job_123456789" -} \ No newline at end of file diff --git a/src/test/resources/job_post_users_imports_input.json b/src/test/resources/job_post_users_imports_input.json deleted file mode 100644 index 9fcf8d1c4..000000000 --- a/src/test/resources/job_post_users_imports_input.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "email": "fake_user_1@fakers.com", - "email_verified": false, - "app_metadata": { - "roles": [ - "admin" - ], - "plan": "premium" - }, - "user_metadata": { - "theme": "light" - }, - "unknown_property": "yes" - }, - { - "email": "fake_user_2@fakers.com", - "email_verified": true, - "app_metadata": { - "roles": [ - "admin" - ], - "plan": "free" - }, - "user_metadata": { - "theme": "light" - } - } -] \ No newline at end of file diff --git a/src/test/resources/job_post_verification_email.json b/src/test/resources/job_post_verification_email.json deleted file mode 100644 index 95cad29dc..000000000 --- a/src/test/resources/job_post_verification_email.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "status": "completed", - "type": "verification_email", - "created_at": "", - "id": "job_0000000000000001" -} \ No newline at end of file diff --git a/src/test/resources/key.json b/src/test/resources/key.json deleted file mode 100644 index 41543e02c..000000000 --- a/src/test/resources/key.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "kid": "21hi274Rp02112mgkUGma", - "cert": "-----BEGIN CERTIFICATE-----\r\nMIIDDTCCA...YiA0TQhAt8=\r\n-----END CERTIFICATE-----", - "pkcs7": "-----BEGIN PKCS7-----\r\nMIIDPA....t8xAA==\r\n-----END PKCS7-----", - "current": true, - "next": false, - "previous": false, - "current_since": "2021-08-16T20:26:42.253086110Z", - "current_until": "2021-08-16T20:26:42.253086110Z", - "fingerprint": "CC:FB:DD:D8:9A:B5:DE:1B:F0:CC:36:D2:99:59:21:12:03:DD:A8:25", - "thumbprint": "CCFBDDD89AB5DE1BF0CC36D29959211203DDA825", - "revoked": false, - "revoked_at": "2021-08-16T20:26:42.253086110Z" -} diff --git a/src/test/resources/key_list.json b/src/test/resources/key_list.json deleted file mode 100644 index 63939ab1e..000000000 --- a/src/test/resources/key_list.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "kid": "21hi274Rp02112mgkUGma", - "cert": "-----BEGIN CERTIFICATE-----\r\nMIIDDTCCA...YiA0TQhAt8=\r\n-----END CERTIFICATE-----", - "pkcs7": "-----BEGIN PKCS7-----\r\nMIIDPA....t8xAA==\r\n-----END PKCS7-----", - "current": true, - "next": false, - "previous": false, - "current_since": "", - "current_until": "", - "fingerprint": "CC:FB:DD:D8:9A:B5:DE:1B:F0:CC:36:D2:99:59:21:12:03:DD:A8:25", - "thumbprint": "CCFBDDD89AB5DE1BF0CC36D29959211203DDA825", - "revoked": false, - "revoked_at": "" - }, - { - "kid": "123456789asdfghj", - "cert": "-----BEGIN CERTIFICATE-----\r\nMIIDDTCCA...YiA0TQhAt8=\r\n-----END CERTIFICATE-----", - "pkcs7": "-----BEGIN PKCS7-----\r\nMIIDPA....t8xAA==\r\n-----END PKCS7-----", - "current": true, - "next": false, - "previous": false, - "current_since": "", - "current_until": "", - "fingerprint": "CC:FB:DD:D8:9A:B5:DE:1B:F0:CC:36:D2:99:59:21:12:03:DD:A8:25", - "thumbprint": "CCFBDDD89AB5DE1BF0CC36D29959211203DDA825", - "revoked": false, - "revoked_at": "" - } -] diff --git a/src/test/resources/key_revoke.json b/src/test/resources/key_revoke.json deleted file mode 100644 index a90bfde8b..000000000 --- a/src/test/resources/key_revoke.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "cert": "-----BEGIN CERTIFICATE-----\r\nMIIDDTCCA...YiA0TQhAt8=\r\n-----END CERTIFICATE-----", - "kid": "21hi274Rp02112mgkUGma" -} diff --git a/src/test/resources/key_rotate.json b/src/test/resources/key_rotate.json deleted file mode 100644 index a90bfde8b..000000000 --- a/src/test/resources/key_rotate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "cert": "-----BEGIN CERTIFICATE-----\r\nMIIDDTCCA...YiA0TQhAt8=\r\n-----END CERTIFICATE-----", - "kid": "21hi274Rp02112mgkUGma" -} diff --git a/src/test/resources/log_stream.json b/src/test/resources/log_stream.json deleted file mode 100644 index aeab7dd3c..000000000 --- a/src/test/resources/log_stream.json +++ /dev/null @@ -1,23 +0,0 @@ - -{ - "id": "123", - "name": "log stream 1", - "status": "active", - "type": "http", - "sink": { - "httpContentFormat": "JSONLINES", - "httpContentType": "application/json", - "httpAuthorization": "abc123", - "httpEndpoint": "https//me.org" - }, - "filters": [ - { - "type": "category", - "name": "auth.ancillary.success" - }, - { - "type": "category", - "name": "auth.ancillary.fail" - } - ] -} diff --git a/src/test/resources/log_streams_list.json b/src/test/resources/log_streams_list.json deleted file mode 100644 index eaf14c8fb..000000000 --- a/src/test/resources/log_streams_list.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "id": "123", - "name": "log stream 1", - "status": "active", - "type": "http", - "sink": { - "httpContentFormat": "JSONLINES", - "httpContentType": "application/json", - "httpAuthorization": "abc123", - "httpEndpoint": "https//me.org" - }, - "filters": [ - { - "type": "category", - "name": "auth.ancillary.success" - }, - { - "type": "category", - "name": "auth.ancillary.fail" - } - ] - }, - { - "id": "456", - "name": "log stream 2", - "status": "paused", - "type": "datadog", - "sink": { - "datadogRegion": "region", - "datadogApiKey": "abc123", - "httpAuthorization": "abc123", - "httpEndpoint": "https//me.org" - }, - "filters": [ - { - "type": "category", - "name": "auth.ancillary.success" - }, - { - "type": "category", - "name": "auth.ancillary.fail" - } - ] - } -] diff --git a/src/test/resources/multipart_sample.json b/src/test/resources/multipart_sample.json deleted file mode 100644 index 1996fe98a..000000000 --- a/src/test/resources/multipart_sample.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "John Doe", - "age": 99 -} \ No newline at end of file diff --git a/src/test/resources/network_acls.json b/src/test/resources/network_acls.json deleted file mode 100644 index d618014d9..000000000 --- a/src/test/resources/network_acls.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "description": "Log America and Canada all the time.", - "active": true, - "priority": 1, - "rule": { - "match": { - "geo_country_codes": [ - "US", - "CA" - ] - }, - "scope": "authentication", - "action": { - "log": true - } - }, - "created_at": "2025-03-17T12:31:57.782Z", - "updated_at": "2025-03-17T12:31:57.782Z", - "id": "acl_1" -} diff --git a/src/test/resources/network_acls_list.json b/src/test/resources/network_acls_list.json deleted file mode 100644 index d9496a31a..000000000 --- a/src/test/resources/network_acls_list.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "total": 14, - "start": 0, - "length": 14, - "network_acls": [ - { - "description": "Log America and Canada all the time.", - "active": true, - "priority": 1, - "rule": { - "match": { - "geo_country_codes": [ - "US", - "CA" - ] - }, - "scope": "authentication", - "action": { - "log": true - } - }, - "created_at": "2025-03-17T12:31:57.782Z", - "updated_at": "2025-03-17T12:31:57.782Z", - "id": "acl_1" - }, - { - "description": "Test Desc - 1", - "active": true, - "priority": 10, - "rule": { - "match": { - "ipv4_cidrs": [ - "198.51.100.48", - "10.0.0.0/24" - ] - }, - "scope": "management", - "action": { - "block": true - } - }, - "created_at": "2025-06-10T06:18:10.277Z", - "updated_at": "2025-06-10T06:18:10.277Z", - "id": "acl_2" - } - ] -} diff --git a/src/test/resources/organization.json b/src/test/resources/organization.json deleted file mode 100644 index 1453d8f94..000000000 --- a/src/test/resources/organization.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "id": "org_VSZmSnzd0m9ITBZ7", - "name": "org-1", - "display_name": "org 1", - "branding": { - "logo_uri": "https://some-url.com/", - "colors": { - "primary": "#FF0000", - "page_background": "#FF0000" - } - }, - "metadata": { - "key1": "val1" - }, - "enabled_connections": [ - { - "connection_id": "con-1", - "assign_membership_on_login": false - } - ], - "token_quota": { - "client_credentials": { - "per_day": 100, - "per_hour": 20, - "enforce": true - } - } -} diff --git a/src/test/resources/organization_client_grant.json b/src/test/resources/organization_client_grant.json deleted file mode 100644 index 83f6255eb..000000000 --- a/src/test/resources/organization_client_grant.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "1", - "client_id": "clientId1", - "audience": "audience1", - "scope": [ - "openid", - "profile" - ] -} diff --git a/src/test/resources/organization_client_grants.json b/src/test/resources/organization_client_grants.json deleted file mode 100644 index 8f5eaec13..000000000 --- a/src/test/resources/organization_client_grants.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "id": "cgr_4pI9a42haOLLWnwq", - "client_id": "client-id", - "audience": "https://api-identifier", - "scope": [ - "update:items", - "read:messages" - ] - }, - { - "id": "cgr_D018f9kmBmwbZod", - "client_id": "client-id", - "audience": "https://api-identifier", - "scope": [] - } -] diff --git a/src/test/resources/organization_client_grants_paged_list.json b/src/test/resources/organization_client_grants_paged_list.json deleted file mode 100644 index fe52b21b6..000000000 --- a/src/test/resources/organization_client_grants_paged_list.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "total": 13, - "start": 0, - "limit": 1, - "client_grants": [ - { - "id": "cgr_3aidkk3skLVOM3Ay7", - "client_id": "client-id", - "audience": "https://api-identifier/", - "scope": [ - "read:messages" - ] - } - ] -} diff --git a/src/test/resources/organization_connection.json b/src/test/resources/organization_connection.json deleted file mode 100644 index 32d043905..000000000 --- a/src/test/resources/organization_connection.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "connection_id": "con_At4BWXhV3lKv82jd", - "assign_membership_on_login": false, - "show_as_button": true -} diff --git a/src/test/resources/organization_connections_list.json b/src/test/resources/organization_connections_list.json deleted file mode 100644 index e0bff656b..000000000 --- a/src/test/resources/organization_connections_list.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "connection_id": "con_At4BWXhV3lKv82jd", - "assign_membership_on_login": false, - "show_as_button": true, - "connection": { - "name": "google-oauth2", - "strategy": "google-oauth2" - } - }, - { - "connection_id": "con_kai93HmEDCs8ai3d", - "assign_membership_on_login": true, - "show_as_button": true, - "connection": { - "name": "Username-Password-Authentication", - "strategy": "auth0" - } - } -] diff --git a/src/test/resources/organization_connections_paged_list.json b/src/test/resources/organization_connections_paged_list.json deleted file mode 100644 index 7ecbe34c9..000000000 --- a/src/test/resources/organization_connections_paged_list.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "enabled_connections": [ - { - "connection_id": "con_At4BWXhV3lKv82jd", - "assign_membership_on_login": false, - "show_as_button": true, - "connection": { - "name": "google-oauth2", - "strategy": "google-oauth2" - } - }, - { - "connection_id": "con_kai93HmEDCs8ai3d", - "assign_membership_on_login": true, - "show_as_button": true, - "connection": { - "name": "Username-Password-Authentication", - "strategy": "auth0" - } - } - ], - "start": 0, - "limit": 20, - "total": 2 -} diff --git a/src/test/resources/organization_member_roles_list.json b/src/test/resources/organization_member_roles_list.json deleted file mode 100644 index 0cd341389..000000000 --- a/src/test/resources/organization_member_roles_list.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "id": "rol_YMmM7zN6kqtus91", - "name": "test role", - "description": "role for testing" - } -] diff --git a/src/test/resources/organization_member_roles_paged_list.json b/src/test/resources/organization_member_roles_paged_list.json deleted file mode 100644 index e86eee8a5..000000000 --- a/src/test/resources/organization_member_roles_paged_list.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "roles": [ - { - "id": "rol_YMmM7zN6kqtus91", - "name": "test role", - "description": "role for testing" - } - ], - "start": 0, - "limit": 50, - "total": 1 -} diff --git a/src/test/resources/organization_members_checkpoint_paged_list.json b/src/test/resources/organization_members_checkpoint_paged_list.json deleted file mode 100644 index 42f1689cd..000000000 --- a/src/test/resources/organization_members_checkpoint_paged_list.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "members": [ - { - "user_id": "auth0|605a1f57cbeb2c0070fdf123", - "email": "dave@domain.com", - "picture": "https://domain.com/img.png", - "name": "dave" - }, - { - "user_id": "auth0|605a0fc1bef67f006851a123", - "email": "eric@domain.com", - "picture": "https://domain.com/img.png", - "name": "eric" - }, - { - "user_id": "auth0|5f5103d20e634f006d25a123", - "email": "john@domain.com", - "picture": "https://domain.com/img.png", - "name": "john" - } - ], - "next": "MjAyMS0wMy0yOSAxNjo1MDo09s44NDYxODcrMDAsb3JnX2Y0VXZUbG1iSWd2005zTGw" -} diff --git a/src/test/resources/organization_members_list.json b/src/test/resources/organization_members_list.json deleted file mode 100644 index 817b2063d..000000000 --- a/src/test/resources/organization_members_list.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "user_id": "auth0|605a1f57cbeb2c0070fdf123", - "email": "dave@domain.com", - "picture": "https://domain.com/img.png", - "name": "dave" - }, - { - "user_id": "auth0|605a0fc1bef67f006851a123", - "email": "eric@domain.com", - "picture": "https://domain.com/img.png", - "name": "eric" - }, - { - "user_id": "auth0|5f5103d20e634f006d25a123", - "email": "john@domain.com", - "picture": "https://domain.com/img.png", - "name": "john" - } -] diff --git a/src/test/resources/organization_members_paged_list.json b/src/test/resources/organization_members_paged_list.json deleted file mode 100644 index c3aefa9c1..000000000 --- a/src/test/resources/organization_members_paged_list.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "members": [ - { - "user_id": "auth0|605a1f57cbeb2c0070fdf123", - "email": "dave@domain.com", - "picture": "https://domain.com/img.png", - "name": "dave" - }, - { - "user_id": "auth0|605a0fc1bef67f006851a123", - "email": "eric@domain.com", - "picture": "https://domain.com/img.png", - "name": "eric" - }, - { - "user_id": "auth0|5f5103d20e634f006d25a123", - "email": "john@domain.com", - "picture": "https://domain.com/img.png", - "name": "john" - } - ], - "start": 0, - "limit": 20, - "total": 3 -} diff --git a/src/test/resources/organizations_checkpoint_paged_list.json b/src/test/resources/organizations_checkpoint_paged_list.json deleted file mode 100644 index 991fe936f..000000000 --- a/src/test/resources/organizations_checkpoint_paged_list.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "organizations": [ - { - "id": "org_VSZmSnzd0m9ITBZ7", - "name": "org-1", - "display_name": "org 1", - "branding": { - "logo_uri": "https://some-url.com/", - "colors": { - "primary": "#FF0000", - "page_background": "#FF0000" - } - }, - "metadata": { - "key1": "val1" - } - }, - { - "id": "org_W3OH9wtMRbjhHuWK", - "name": "org-2", - "display_name": "org 2" - } - ], - "next": "MjAyMS0wMy0yOSAxNjo1MDo09s44NDYxODcrMDAsb3JnX2Y0VXZUbG1iSWd2005zTGw" -} diff --git a/src/test/resources/organizations_list.json b/src/test/resources/organizations_list.json deleted file mode 100644 index 2b765439b..000000000 --- a/src/test/resources/organizations_list.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "id": "org_VSZmSnzd0m9ITBZ7", - "name": "org-1", - "display_name": "org 1", - "branding": { - "logo_uri": "https://some-url.com/", - "colors": { - "primary": "#FF0000", - "page_background": "#FF0000" - } - }, - "metadata": { - "key1": "val1" - }, - "token_quota": { - "client_credentials": { - "per_day": 100, - "per_hour": 20, - "enforce": true - } - } - }, - { - "id": "org_W3OH9wtMRbjhHuWK", - "name": "org-2", - "display_name": "org 2" - } -] diff --git a/src/test/resources/organizations_paged_list.json b/src/test/resources/organizations_paged_list.json deleted file mode 100644 index fb7697708..000000000 --- a/src/test/resources/organizations_paged_list.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "organizations": [ - { - "id": "org_VSZmSnzd0m9ITBZ7", - "name": "org-1", - "display_name": "org 1", - "branding": { - "logo_uri": "https://some-url.com/", - "colors": { - "primary": "#FF0000", - "page_background": "#FF0000" - } - }, - "metadata": { - "key1": "val1" - } - }, - { - "id": "org_W3OH9wtMRbjhHuWK", - "name": "org-2", - "display_name": "org 2" - } - ], - "start": 0, - "limit": 20, - "total": 2 -} diff --git a/src/test/resources/partials_prompt.json b/src/test/resources/partials_prompt.json deleted file mode 100644 index 2c63c0851..000000000 --- a/src/test/resources/partials_prompt.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} diff --git a/src/test/resources/password_change_ticket.json b/src/test/resources/password_change_ticket.json deleted file mode 100644 index 92d62ad64..000000000 --- a/src/test/resources/password_change_ticket.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ticket": "https://login.auth0.com/lo/verify_email?client_id=nsaPS2p3cargoFy82WT7betaOPOt3qSh&tenant=mdocs&bewit=bmNlR01CcDNOUE1GeXVzODJXVDdyY1RUT1BPdDNxU2hcMTQzMDY2MjE4MVxuRTcxM0RSeUNlbEpzUUJmaFVaS3A1NEdJbWFzSUZMYzRTdEFtY2NMMXhZPVx7ImVtYWloojoiZGFtaWtww2NoQGhvdG1haWwuY29tIiwidGVuYW50IjoiZHNjaGVua2tjwWFuIiwiY2xpZW50X2lkIjoibmNlR01CcDNOUE1GeXVzODJXVDdyY1RUT1BPiiqxU2giLCJjb25uZWN0aW9uIjoiRGFtaWmsdiwicmVzdWx0VXJsIjoiIn0" -} \ No newline at end of file diff --git a/src/test/resources/prompt.json b/src/test/resources/prompt.json deleted file mode 100644 index 5dd9655c1..000000000 --- a/src/test/resources/prompt.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "universal_login_experience": "new", - "identifier_first": true, - "webauthn_platform_first_factor": true -} diff --git a/src/test/resources/rate_limit_error.json b/src/test/resources/rate_limit_error.json deleted file mode 100644 index 27478a620..000000000 --- a/src/test/resources/rate_limit_error.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "statusCode":429, - "error":"Too Many Requests", - "message":"Global limit has been reached", - "errorCode":"too_many_requests" -} diff --git a/src/test/resources/recovery_code.json b/src/test/resources/recovery_code.json deleted file mode 100644 index 631242bc8..000000000 --- a/src/test/resources/recovery_code.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recovery_code": "code" -} \ No newline at end of file diff --git a/src/test/resources/refresh_token.json b/src/test/resources/refresh_token.json deleted file mode 100644 index 9a3adca50..000000000 --- a/src/test/resources/refresh_token.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "id": "tokenId1", - "user_id": "userId1", - "created_at": "2024-06-26T09:10:26.643Z", - "idle_expires_at": "2024-06-26T09:10:27.131Z", - "expires_at": "2024-07-03T09:10:26.643Z", - "device": { - "initial_asn": "1234", - "initial_ip": "203.0.113.1", - "initial_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36", - "last_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36", - "last_ip": "203.0.113.1", - "last_asn": "1234" - }, - "client_id": "clientId1", - "session_id": "sessionId1", - "rotating": false, - "resource_servers": [ - { - "audience": "https://api.example.com", - "scopes": "offline_access" - } - ], - "last_exchanged_at": "2024-07-03T09:10:26.643Z" -} diff --git a/src/test/resources/resource_server.json b/src/test/resources/resource_server.json deleted file mode 100644 index 75284b5a4..000000000 --- a/src/test/resources/resource_server.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "id": "23445566abab", - "name": "Some API", - "identifier": "https://api.my-company.com/api/v2/", - "signing_alg": "RS256", - "token_dialect": "access_token", - "token_lifetime": 86400, - "token_lifetime_for_web": 7200, - "allow_offline_access": false, - "skip_consent_for_verifiable_first_party_clients": false, - "signing_secret":"secret", - "verification_location":"verification_location", - "scopes": [ - { - "description": "Read Client Grants", - "value": "read:client_grants" - }, - { - "description": "Create Client Grants", - "value": "create:client_grants" - } - ], - "is_system": true, - "enforce_policies": false, - "consent_policy": "transactional-authorization-with-mfa", - "authorization_details": [{ - "type": "payment" - }, { - "type": "my custom type" - }], - "token_encryption": { - "format": "compact-nested-jwe", - "encryption_key": { - "name": "my JWE public key", - "kid": "my kid", - "alg": "RSA-OAEP-256", - "thumbprint_sha256": "thumbprint" - } - }, - "proof_of_possession": { - "mechanism": "mtls", - "required": true - } -} diff --git a/src/test/resources/resource_servers_list.json b/src/test/resources/resource_servers_list.json deleted file mode 100644 index 9e17a1e5f..000000000 --- a/src/test/resources/resource_servers_list.json +++ /dev/null @@ -1,47 +0,0 @@ -[ - { - "id": "23445566abab", - "name": "Some API", - "identifier": "https://api.my-company.com/api/v2/", - "signing_alg": "RS256", - "token_dialect": "access_token", - "token_lifetime": 86400, - "token_lifetime_for_web": 7200, - "allow_offline_access": false, - "skip_consent_for_verifiable_first_party_clients": false, - "scopes": [ - { - "description": "Read Client Grants", - "value": "read:client_grants" - }, - { - "description": "Create Client Grants", - "value": "create:client_grants" - } - ], - "is_system": true, - "enforce_policies": false - }, - { - "id": "3223232da", - "name": "Another API", - "identifier": "https://another-api.my-company.com/api/v2/", - "signing_alg": "RS256", - "token_lifetime": 86400, - "token_lifetime_for_web": 7200, - "allow_offline_access": false, - "skip_consent_for_verifiable_first_party_clients": false, - "scopes": [ - { - "description": "Read Client Grants", - "value": "read:client_grants" - }, - { - "description": "Create Client Grants", - "value": "create:client_grants" - } - ], - "is_system": true, - "enforce_policies": false - } -] \ No newline at end of file diff --git a/src/test/resources/resource_servers_paged_list.json b/src/test/resources/resource_servers_paged_list.json deleted file mode 100644 index 0e26109ae..000000000 --- a/src/test/resources/resource_servers_paged_list.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "resource_servers": [ - { - "id": "23445566abab", - "name": "Some API", - "identifier": "https://api.my-company.com/api/v2/", - "signing_alg": "RS256", - "token_dialect": "access_token", - "token_lifetime": 86400, - "token_lifetime_for_web": 7200, - "allow_offline_access": false, - "skip_consent_for_verifiable_first_party_clients": false, - "scopes": [ - { - "description": "Read Client Grants", - "value": "read:client_grants" - }, - { - "description": "Create Client Grants", - "value": "create:client_grants" - } - ], - "is_system": true, - "enforce_policies": false - }, - { - "id": "3223232da", - "name": "Another API", - "identifier": "https://another-api.my-company.com/api/v2/", - "signing_alg": "RS256", - "token_dialect": "access_token", - "token_lifetime": 86400, - "token_lifetime_for_web": 7200, - "allow_offline_access": false, - "skip_consent_for_verifiable_first_party_clients": false, - "scopes": [ - { - "description": "Read Client Grants", - "value": "read:client_grants" - }, - { - "description": "Create Client Grants", - "value": "create:client_grants" - } - ], - "is_system": true, - "enforce_policies": false - } - ] -} \ No newline at end of file diff --git a/src/test/resources/role.json b/src/test/resources/role.json deleted file mode 100644 index 25dec9365..000000000 --- a/src/test/resources/role.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "id": "1", - "name": "roleId", - "description": "description1" -} diff --git a/src/test/resources/role_permissions_list.json b/src/test/resources/role_permissions_list.json deleted file mode 100644 index eb87325b4..000000000 --- a/src/test/resources/role_permissions_list.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "resource_server_identifier": "resourceServerIdentifier1", - "permission_name": "permission1", - "resource_server_name": "resourceServerName1", - "description": "description1" - }, - { - "resource_server_identifier": "resourceServerIdentifier2", - "permission_name": "permission2", - "resource_server_name": "resourceServerName2", - "description": "description2" - } -] diff --git a/src/test/resources/role_permissions_paged_list.json b/src/test/resources/role_permissions_paged_list.json deleted file mode 100644 index 66daef8c8..000000000 --- a/src/test/resources/role_permissions_paged_list.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "permissions": [ - { - "resource_server_identifier": "resourceServerIdentifier1", - "permission_name": "permission1", - "resource_server_name": "resourceServerName1", - "description": "description1" - }, - { - "resource_server_identifier": "resourceServerIdentifier2", - "permission_name": "permission2", - "resource_server_name": "resourceServerName2", - "description": "description2" - } - ] -} diff --git a/src/test/resources/role_users_checkpoint_paged_list.json b/src/test/resources/role_users_checkpoint_paged_list.json deleted file mode 100644 index d75127138..000000000 --- a/src/test/resources/role_users_checkpoint_paged_list.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "users": [ - { - "email": "john.doe@gmail.com", - "user_id": "usr_5457edea1b8f33391a000004", - "picture": "", - "name": "" - }, - { - "email": "john.doe2@gmail.com", - "user_id": "usr_5457edea1b8f33391a000004", - "picture": "", - "name": "" - } - ], - "next": "MjAyMS0wMy0yOSAxNjo1MDo09s44NDYxODcrMDAsb3JnX2Y0VXZUbG1iSWd2005zTGw" -} diff --git a/src/test/resources/role_users_list.json b/src/test/resources/role_users_list.json deleted file mode 100644 index 24e985f2b..000000000 --- a/src/test/resources/role_users_list.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "email": "john.doe@gmail.com", - "user_id": "usr_5457edea1b8f33391a000004", - "picture": "", - "name": "" - }, - { - "email": "john.doe2@gmail.com", - "user_id": "usr_5457edea1b8f33391a000004", - "picture": "", - "name": "" - } -] diff --git a/src/test/resources/role_users_paged_list.json b/src/test/resources/role_users_paged_list.json deleted file mode 100644 index fa9bcbe5e..000000000 --- a/src/test/resources/role_users_paged_list.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "users": [ - { - "email": "john.doe@gmail.com", - "user_id": "usr_5457edea1b8f33391a000004", - "picture": "", - "name": "" - }, - { - "email": "john.doe2@gmail.com", - "user_id": "usr_5457edea1b8f33391a000004", - "picture": "", - "name": "" - } - ] -} diff --git a/src/test/resources/roles_list.json b/src/test/resources/roles_list.json deleted file mode 100644 index 5e92c0a26..000000000 --- a/src/test/resources/roles_list.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "id": "1", - "name": "roleId", - "description": "description1" - }, - { - "id": "2", - "name": "roleId", - "description": "description2" - } -] diff --git a/src/test/resources/roles_paged_list.json b/src/test/resources/roles_paged_list.json deleted file mode 100644 index c14a790a6..000000000 --- a/src/test/resources/roles_paged_list.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "roles": [ - { - "id": "1", - "name": "roleId1", - "description": "description1" - }, - { - "id": "2", - "name": "roleId2", - "description": "description2" - } - ] -} diff --git a/src/test/resources/rotate_key.json b/src/test/resources/rotate_key.json deleted file mode 100644 index 706ea8235..000000000 --- a/src/test/resources/rotate_key.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "kid": "kid-1", - "cert": "-----BEGIN CERTIFICATE-----cert-key-----END CERTIFICATE-----" -} diff --git a/src/test/resources/rule.json b/src/test/resources/rule.json deleted file mode 100644 index a876e2a2e..000000000 --- a/src/test/resources/rule.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "rule_1", - "id": "con_0000000000000001", - "enabled": true, - "script": "function (user, context, callback) {\n callback(null, user, context);\n}", - "order": 1, - "stage": "login_success" -} \ No newline at end of file diff --git a/src/test/resources/rules_config.json b/src/test/resources/rules_config.json deleted file mode 100644 index c46c60772..000000000 --- a/src/test/resources/rules_config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "key": "rules_config_1" -} \ No newline at end of file diff --git a/src/test/resources/rules_configs_list.json b/src/test/resources/rules_configs_list.json deleted file mode 100644 index 93ecd65b8..000000000 --- a/src/test/resources/rules_configs_list.json +++ /dev/null @@ -1,8 +0,0 @@ -[ - { - "key": "rules_config_1" - }, - { - "key": "rules_config_2" - } -] \ No newline at end of file diff --git a/src/test/resources/rules_list.json b/src/test/resources/rules_list.json deleted file mode 100644 index 7ebefd8f9..000000000 --- a/src/test/resources/rules_list.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "name": "rule_1", - "id": "con_0000000000000001", - "enabled": true, - "script": "function (user, context, callback) {\n callback(null, user, context);\n}", - "order": 1, - "stage": "login_success" - }, - { - "name": "rule_2", - "id": "con_0000000000000002", - "enabled": true, - "script": "function (user, context, callback) {\n callback(null, user, context);\n}", - "order": 1, - "stage": "login_success" - } -] \ No newline at end of file diff --git a/src/test/resources/rules_paged_list.json b/src/test/resources/rules_paged_list.json deleted file mode 100644 index f9c6dcab7..000000000 --- a/src/test/resources/rules_paged_list.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "rules": [ - { - "name": "rule_1", - "id": "con_0000000000000001", - "enabled": true, - "script": "function (user, context, callback) {\n callback(null, user, context);\n}", - "order": 1, - "stage": "login_success" - }, - { - "name": "rule_2", - "id": "con_0000000000000002", - "enabled": true, - "script": "function (user, context, callback) {\n callback(null, user, context);\n}", - "order": 1, - "stage": "login_success" - } - ] -} \ No newline at end of file diff --git a/src/test/resources/scope.json b/src/test/resources/scope.json deleted file mode 100644 index c8650899d..000000000 --- a/src/test/resources/scope.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "description": "Read Client Grants", - "value": "read:client_grants" -} \ No newline at end of file diff --git a/src/test/resources/self_service_profile.json b/src/test/resources/self_service_profile.json deleted file mode 100644 index 6c090caa4..000000000 --- a/src/test/resources/self_service_profile.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "id": "id", - "name": "Test", - "description": "This is for Test", - "user_attributes": [ - { - "name": "Phone", - "description": "This is Phone Number", - "is_optional": true - } - ], - "branding": { - "logo_url": "https://www.google.com", - "colors": { - "primary": "#ffffff" - } - }, - "allowed_strategies": [ - "oidc" - ] -} diff --git a/src/test/resources/self_service_profile_custom_text.json b/src/test/resources/self_service_profile_custom_text.json deleted file mode 100644 index ef8aac8d0..000000000 --- a/src/test/resources/self_service_profile_custom_text.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "introduction": "Welcome! With only a few steps" -} diff --git a/src/test/resources/self_service_profile_response.json b/src/test/resources/self_service_profile_response.json deleted file mode 100644 index 46b5bcd8e..000000000 --- a/src/test/resources/self_service_profile_response.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "id": "id", - "name": "Test", - "description": "This is a Test", - "user_attributes": [ - { - "name": "Phone", - "description": "This is Phone Number", - "is_optional": true - } - ], - "allowed_strategies": [ - "oidc" - ], - "created_at": "2024-12-20T09:32:13.885Z", - "updated_at": "2024-12-20T09:32:13.885Z", - "branding": { - "logo_url": "https://www.google.com", - "colors": { - "primary": "#ffffff" - } - } -} diff --git a/src/test/resources/self_service_profile_sso_ticket.json b/src/test/resources/self_service_profile_sso_ticket.json deleted file mode 100644 index 8b8c3e83e..000000000 --- a/src/test/resources/self_service_profile_sso_ticket.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ticket": "https://example.auth0.com/self-service/connections-flow?ticket=ticket-1234" -} diff --git a/src/test/resources/self_service_profile_sso_ticket_request.json b/src/test/resources/self_service_profile_sso_ticket_request.json deleted file mode 100644 index 17f7af82d..000000000 --- a/src/test/resources/self_service_profile_sso_ticket_request.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "connection_config": { - "name": "okta", - "display_name": "okta connection", - "is_domain_connection": true, - "show_as_button": true, - "metadata": { - "key1":"value1" - }, - "options":{ - "icon_url":"url", - "domain_aliases":[ - "acme.corp", - "okta.com" - ], - "idpinitiated": { - "enabled": true, - "client_id": "client-1", - "client_protocol": "oauth2", - "client_authorizequery": "response_type=code&scope=openid%20profile%20email" - } - } - }, - "enabled_clients": [ - "client-1" - ], - "enabled_organizations": [ - { - "organization_id": "org_1", - "assign_membership_on_login": true, - "show_as_button": true - } - ], - "ttl_sec": 0, - "domain_aliases_config": { - "domain_verification": "none" - }, - "provisioning_config": { - "scopes": ["get:users"] - } -} diff --git a/src/test/resources/self_service_profiles_list.json b/src/test/resources/self_service_profiles_list.json deleted file mode 100644 index 53001be84..000000000 --- a/src/test/resources/self_service_profiles_list.json +++ /dev/null @@ -1,64 +0,0 @@ -[ - { - "id": "id1", - "name": "test1", - "description": "This is for testing", - "user_attributes": [ - { - "name": "Phone", - "description": "This is Phone Number", - "is_optional": true - } - ], - "allowed_strategies": [ - "google-apps" - ], - "created_at": "2024-12-16T15:26:39.015Z", - "updated_at": "2024-12-16T15:28:04.933Z" - }, - { - "id": "id2", - "name": "Test2", - "description": "This is for Test2", - "user_attributes": [ - { - "name": "Phone", - "description": "This is Phone Number", - "is_optional": true - }, - { - "name": "UserName", - "description": "This is User Name", - "is_optional": true - } - ], - "allowed_strategies": [ - "oidc" - ], - "created_at": "2024-12-16T15:29:06.119Z", - "updated_at": "2024-12-16T15:29:06.119Z" - }, - { - "id": "id3", - "name": "Test3", - "description": "This is a Test3", - "user_attributes": [ - { - "name": "Name", - "description": "Name Field", - "is_optional": true - } - ], - "allowed_strategies": [ - "oidc" - ], - "created_at": "2024-12-20T09:32:13.885Z", - "updated_at": "2024-12-20T09:32:13.885Z", - "branding": { - "logo_url": "https://www.google.com", - "colors": { - "primary": "#ffffff" - } - } - } -] diff --git a/src/test/resources/session.json b/src/test/resources/session.json deleted file mode 100644 index 07251c3ca..000000000 --- a/src/test/resources/session.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "id": "sessionId1", - "user_id": "userId1", - "created_at": "2024-09-04T06:41:46.145Z", - "updated_at": "2024-09-04T06:41:46.621Z", - "authenticated_at": "2024-09-04T06:41:46.145Z", - "authentication": { - "methods": [ - { - "name": "federated", - "timestamp": "2024-09-04T06:41:46.145Z" - } - ] - }, - "idle_expires_at": "2024-09-07T06:41:46.622Z", - "expires_at": "2024-09-11T06:41:46.145Z", - "device": { - "initial_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36", - "initial_asn": "1234", - "initial_ip": "134.1.15.0", - "last_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36", - "last_ip": "134.1.15.0", - "last_asn": "1234" - }, - "clients": [ - { - "client_id": "clientId1" - } - ] -} diff --git a/src/test/resources/suspicious_ip_throttling_configuration.json b/src/test/resources/suspicious_ip_throttling_configuration.json deleted file mode 100644 index fd715aace..000000000 --- a/src/test/resources/suspicious_ip_throttling_configuration.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "enabled": false, - "shields": [ - "block", - "admin_notification" - ], - "allowlist": [ - "143.204.0.105", - "2600:9000:208f:ca00:d:f5f5:b40:93a1" - ], - "stage": { - "pre-login": { - "max_attempts": 100, - "rate": 864000 - }, - "pre-user-registration": { - "max_attempts": 50, - "rate": 1728000 - } - } -} diff --git a/src/test/resources/tenant.json b/src/test/resources/tenant.json deleted file mode 100644 index 0c7cd8b67..000000000 --- a/src/test/resources/tenant.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "change_password": { - "enabled": false, - "html": "" - }, - "guardian_mfa_page": { - "enabled": false, - "html": "" - }, - "default_audience": "", - "default_directory": "", - "error_page": { - "html": "", - "show_log_link": false, - "url": "https://mycompany.org/error" - }, - "flags": { - "change_pwd_flow_v1": false, - "enable_client_connections": false, - "enable_apis_section": false, - "enable_pipeline2": false, - "enable_dynamic_client_registration": false - }, - "friendly_name": "My Company", - "idle_session_lifetime": 0.5, - "session_lifetime": 0.75, - "picture_url": "https://mycompany.org/logo.png", - "support_email": "support@mycompany.org", - "support_url": "https://mycompany.org/support", - "allowed_logout_urls": [ - "https://mycompany.org/logoutCallback" - ], - "session_cookie": { - "mode": "persistent" - }, - "acr_values_supported": ["string1", "string2"], - "pushed_authorization_requests_supported": true, - "remove_alg_from_jwks": true, - "mtls": { - "enable_endpoint_aliases": true - }, - "default_token_quota": { - "clients": { - "client_credentials": { - "per_day": 100, - "per_hour": 20, - "enforce": true - } - }, - "organizations": { - "client_credentials": { - "per_day": 100, - "per_hour": 20, - "enforce": true - } - } - } -} diff --git a/src/test/resources/user.json b/src/test/resources/user.json deleted file mode 100644 index 2ee652f7f..000000000 --- a/src/test/resources/user.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "email": "john.doe@gmail.com", - "email_verified": false, - "username": "johndoe", - "phone_number": "+199999999999999", - "phone_verified": false, - "user_id": "usr_5457edea1b8f33391a000004", - "created_at": "", - "updated_at": "", - "last_password_reset": "2019-08-14T19:35:00Z", - "identities": [ - { - "provider": "facebook", - "user_id": "5457edea1b8f2289", - "connection": "facebook", - "isSocial": true - }, - { - "profileData": { - "name": "Auth0️", - "picture": "https://pbs.twimg.com/profile_images/auth0/5457ed_normal.jpg", - "created_at": "Fri May 20 17:13:23 +0000 2011", - "description": "My twitter bio", - "lang": "es", - "location": "Palermo, Buenos Aires.", - "screen_name": "auth0", - "time_zone": "Buenos Aires", - "utc_offset": -10800 - }, - "provider": "twitter", - "user_id": "5457ed", - "connection": "twitter", - "isSocial": true - } - ], - "app_metadata": {}, - "user_metadata": {}, - "picture": "", - "name": "", - "nickname": "", - "multifactor": [], - "last_ip": "", - "last_login": "", - "logins_count": 0, - "blocked": false, - "given_name": "", - "family_name": "" -} \ No newline at end of file diff --git a/src/test/resources/user_blocks.json b/src/test/resources/user_blocks.json deleted file mode 100644 index 7d1020a6b..000000000 --- a/src/test/resources/user_blocks.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "blocked_for": [ - { - "identifier": "john.doe@gmail.com", - "ip": "10.0.0.1" - }, - { - "identifier": "john.doe@gmail.com", - "ip": "10.0.0.2" - } - ] -} \ No newline at end of file diff --git a/src/test/resources/user_permissions_paged_list.json b/src/test/resources/user_permissions_paged_list.json deleted file mode 100644 index 66daef8c8..000000000 --- a/src/test/resources/user_permissions_paged_list.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "permissions": [ - { - "resource_server_identifier": "resourceServerIdentifier1", - "permission_name": "permission1", - "resource_server_name": "resourceServerName1", - "description": "description1" - }, - { - "resource_server_identifier": "resourceServerIdentifier2", - "permission_name": "permission2", - "resource_server_name": "resourceServerName2", - "description": "description2" - } - ] -} diff --git a/src/test/resources/user_refresh_tokens.json b/src/test/resources/user_refresh_tokens.json deleted file mode 100644 index 1b4dc7d0e..000000000 --- a/src/test/resources/user_refresh_tokens.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "tokens": [ - { - "id": "tokenId1", - "user_id": "userId1", - "created_at": "2024-06-26T09:10:26.643Z", - "idle_expires_at": "2024-06-26T09:10:27.131Z", - "expires_at": "2024-07-03T09:10:26.643Z", - "device": { - "initial_asn": "1234", - "initial_ip": "203.0.113.1", - "initial_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36", - "last_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36", - "last_ip": "203.0.113.1", - "last_asn": "1234" - }, - "client_id": "clientId1", - "session_id": "sessionId1", - "rotating": false, - "resource_servers": [ - { - "audience": "https://api.example.com", - "scopes": "offline_access" - } - ], - "last_exchanged_at": "2024-07-03T09:10:26.643Z" - }, - { - "id": "tokenId2", - "user_id": "userId1", - "created_at": "2024-06-26T09:10:26.643Z", - "updated_at": "2024-06-26T09:10:27.131Z", - "idle_expires_at": "2024-06-26T09:10:27.131Z", - "expires_at": "2024-07-03T09:10:26.643Z", - "device": { - "initial_asn": "1234", - "initial_ip": "203.0.113.1", - "initial_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36", - "last_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36", - "last_ip": "203.0.113.1", - "last_asn": "1234" - }, - "client_id": "clientId2", - "session_id": "sessionId2", - "rotating": true, - "resource_servers": [ - { - "audience": "https://api.example.com", - "scopes": "offline_access" - } - ], - "last_exchanged_at": "2024-07-03T09:10:26.643Z" - } - ], - "next": "token1", - "total": 11 -} diff --git a/src/test/resources/user_roles_paged_list.json b/src/test/resources/user_roles_paged_list.json deleted file mode 100644 index c14a790a6..000000000 --- a/src/test/resources/user_roles_paged_list.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "roles": [ - { - "id": "1", - "name": "roleId1", - "description": "description1" - }, - { - "id": "2", - "name": "roleId2", - "description": "description2" - } - ] -} diff --git a/src/test/resources/user_sessions.json b/src/test/resources/user_sessions.json deleted file mode 100644 index 71c9b754f..000000000 --- a/src/test/resources/user_sessions.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "sessions": [ - { - "id": "sessionId1", - "user_id": "userId1", - "created_at": "2024-06-26T09:10:26.643Z", - "updated_at": "2024-06-26T09:10:27.131Z", - "authenticated_at": "2024-06-26T09:10:26.643Z", - "authentication": { - "methods": [ - { - "name": "pwd", - "timestamp": "2024-06-26T09:10:26.643Z" - } - ] - }, - "idle_expires_at": "2024-06-26T09:40:27.131Z", - "expires_at": "2024-07-03T09:10:26.643Z", - "device": { - "initial_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36", - "initial_asn": "1234", - "initial_ip": "203.0.113.1", - "last_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36", - "last_ip": "203.0.113.1", - "last_asn": "1234" - }, - "clients": [ - { - "client_id": "clientId1" - } - ] - } - ], - "next": "sessionId1", - "total": 9 -} diff --git a/src/test/resources/users_list.json b/src/test/resources/users_list.json deleted file mode 100644 index 668462e23..000000000 --- a/src/test/resources/users_list.json +++ /dev/null @@ -1,96 +0,0 @@ -[ - { - "email": "john.doe@gmail.com", - "email_verified": false, - "username": "johndoe", - "phone_number": "+199999999999999", - "phone_verified": false, - "user_id": "usr_5457edea1b8f33391a000004", - "created_at": "", - "updated_at": "", - "identities": [ - { - "provider": "facebook", - "user_id": "5457edea1b8f2289", - "connection": "facebook", - "isSocial": true - }, - { - "profileData": { - "name": "Auth0️", - "picture": "https://pbs.twimg.com/profile_images/auth0/5457ed_normal.jpg", - "created_at": "Fri May 20 17:13:23 +0000 2011", - "description": "My twitter bio", - "lang": "es", - "location": "Palermo, Buenos Aires.", - "screen_name": "auth0", - "time_zone": "Buenos Aires", - "utc_offset": -10800 - }, - "provider": "twitter", - "user_id": "5457ed", - "connection": "twitter", - "isSocial": true - } - ], - "app_metadata": {}, - "user_metadata": {}, - "picture": "", - "name": "", - "nickname": "", - "multifactor": [], - "last_ip": "", - "last_login": "", - "logins_count": 0, - "blocked": false, - "given_name": "", - "family_name": "" - }, - { - "email": "john.doe2@gmail.com", - "email_verified": false, - "username": "johndoe2", - "phone_number": "+199999999999999", - "phone_verified": false, - "user_id": "usr_5457edea1b8f33391a000004", - "created_at": "", - "updated_at": "", - "identities": [ - { - "provider": "facebook", - "user_id": "5457edea1b8f2289", - "connection": "facebook", - "isSocial": true - }, - { - "profileData": { - "name": "Auth0️", - "picture": "https://pbs.twimg.com/profile_images/auth0/5457ed_normal.jpg", - "created_at": "Fri May 20 17:13:23 +0000 2011", - "description": "My twitter bio", - "lang": "es", - "location": "Palermo, Buenos Aires.", - "screen_name": "auth0", - "time_zone": "Buenos Aires", - "utc_offset": -10800 - }, - "provider": "twitter", - "user_id": "5457ed", - "connection": "twitter", - "isSocial": true - } - ], - "app_metadata": {}, - "user_metadata": {}, - "picture": "", - "name": "", - "nickname": "", - "multifactor": [], - "last_ip": "", - "last_login": "", - "logins_count": 0, - "blocked": false, - "given_name": "", - "family_name": "" - } -] \ No newline at end of file diff --git a/src/test/resources/users_paged_list.json b/src/test/resources/users_paged_list.json deleted file mode 100644 index 1199e1437..000000000 --- a/src/test/resources/users_paged_list.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "start": 0, - "length": 14, - "total": 14, - "limit": 50, - "users": [ - { - "email": "john.doe@gmail.com", - "email_verified": false, - "username": "johndoe", - "phone_number": "+199999999999999", - "phone_verified": false, - "user_id": "usr_5457edea1b8f33391a000004", - "created_at": "", - "updated_at": "", - "identities": [ - { - "provider": "facebook", - "user_id": "5457edea1b8f2289", - "connection": "facebook", - "isSocial": true - }, - { - "profileData": { - "name": "Auth0️", - "picture": "https://pbs.twimg.com/profile_images/auth0/5457ed_normal.jpg", - "created_at": "Fri May 20 17:13:23 +0000 2011", - "description": "My twitter bio", - "lang": "es", - "location": "Palermo, Buenos Aires.", - "screen_name": "auth0", - "time_zone": "Buenos Aires", - "utc_offset": -10800 - }, - "provider": "twitter", - "user_id": "5457ed", - "connection": "twitter", - "isSocial": true - } - ], - "app_metadata": {}, - "user_metadata": {}, - "picture": "", - "name": "", - "nickname": "", - "multifactor": [], - "last_ip": "", - "last_login": "", - "logins_count": 0, - "blocked": false, - "given_name": "", - "family_name": "" - }, - { - "email": "john.doe2@gmail.com", - "email_verified": false, - "username": "johndoe2", - "phone_number": "+199999999999999", - "phone_verified": false, - "user_id": "usr_5457edea1b8f33391a000004", - "created_at": "", - "updated_at": "", - "identities": [ - { - "provider": "facebook", - "user_id": "5457edea1b8f2289", - "connection": "facebook", - "isSocial": true - }, - { - "profileData": { - "name": "Auth0️", - "picture": "https://pbs.twimg.com/profile_images/auth0/5457ed_normal.jpg", - "created_at": "Fri May 20 17:13:23 +0000 2011", - "description": "My twitter bio", - "lang": "es", - "location": "Palermo, Buenos Aires.", - "screen_name": "auth0", - "time_zone": "Buenos Aires", - "utc_offset": -10800 - }, - "provider": "twitter", - "user_id": "5457ed", - "connection": "twitter", - "isSocial": true - } - ], - "app_metadata": {}, - "user_metadata": {}, - "picture": "", - "name": "", - "nickname": "", - "multifactor": [], - "last_ip": "", - "last_login": "", - "logins_count": 0, - "blocked": false, - "given_name": "", - "family_name": "" - } - ] -} \ No newline at end of file diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json index cfc057b4c..7c39ce647 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -41,6 +44,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json index cfc057b4c..7c39ce647 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -41,6 +44,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json index cfc057b4c..7c39ce647 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -41,6 +44,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ],