From abaa295f6024af1ff661cbbb10136b98f700f4dd Mon Sep 17 00:00:00 2001 From: patrick thornton Date: Wed, 25 Feb 2026 11:14:08 -0500 Subject: [PATCH 1/2] add requestoptions from generator --- .../client/mgmt/core/RequestOptions.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java b/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java index 735186a1f..f83ded99c 100644 --- a/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java +++ b/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java @@ -23,6 +23,10 @@ public final class RequestOptions { private final Map> headerSuppliers; + private final Map queryParameters; + + private final Map> queryParameterSuppliers; + // Per-request OAuth credentials private final String clientId; @@ -41,6 +45,8 @@ private RequestOptions( TimeUnit timeoutTimeUnit, Map headers, Map> headerSuppliers, + Map queryParameters, + Map> queryParameterSuppliers, String clientId, String clientSecret, String audience, @@ -50,6 +56,8 @@ private RequestOptions( this.timeoutTimeUnit = timeoutTimeUnit; this.headers = headers; this.headerSuppliers = headerSuppliers; + this.queryParameters = queryParameters; + this.queryParameterSuppliers = queryParameterSuppliers; this.clientId = clientId; this.clientSecret = clientSecret; this.audience = audience; @@ -131,6 +139,14 @@ public Map getHeaders() { return headers; } + public Map getQueryParameters() { + Map queryParameters = new HashMap<>(this.queryParameters); + this.queryParameterSuppliers.forEach((key, supplier) -> { + queryParameters.put(key, supplier.get()); + }); + return queryParameters; + } + public static Builder builder() { return new Builder(); } @@ -146,6 +162,10 @@ public static class Builder { private final Map> headerSuppliers = new HashMap<>(); + private final Map queryParameters = new HashMap<>(); + + private final Map> queryParameterSuppliers = new HashMap<>(); + private String clientId = null; private String clientSecret = null; @@ -228,6 +248,16 @@ public Builder addHeader(String key, Supplier value) { return this; } + public Builder addQueryParameter(String key, String value) { + this.queryParameters.put(key, value); + return this; + } + + public Builder addQueryParameter(String key, Supplier value) { + this.queryParameterSuppliers.put(key, value); + return this; + } + public RequestOptions build() { return new RequestOptions( token, @@ -235,6 +265,8 @@ public RequestOptions build() { timeoutTimeUnit, headers, headerSuppliers, + queryParameters, + queryParameterSuppliers, clientId, clientSecret, audience, From 2da77dc9e60c9913b8731469315525ff637f1d39 Mon Sep 17 00:00:00 2001 From: patrick thornton Date: Thu, 26 Feb 2026 14:16:56 -0500 Subject: [PATCH 2/2] overzealous .fernignore, restore fixtures --- .fernignore | 1 - ...sVersionsWireTest_testDeploy_response.json | 70 ++++ ...ionsVersionsWireTest_testGet_response.json | 70 ++++ .../ActionsWireTest_testCreate_response.json | 121 ++++++ .../ActionsWireTest_testDeploy_response.json | 70 ++++ .../ActionsWireTest_testGet_response.json | 121 ++++++ .../ActionsWireTest_testUpdate_response.json | 121 ++++++ ...dingThemesWireTest_testCreate_request.json | 72 ++++ ...ingThemesWireTest_testCreate_response.json | 78 ++++ ...hemesWireTest_testGetDefault_response.json | 78 ++++ ...andingThemesWireTest_testGet_response.json | 78 ++++ ...dingThemesWireTest_testUpdate_request.json | 72 ++++ ...ingThemesWireTest_testUpdate_response.json | 78 ++++ .../ClientsWireTest_testCreate_response.json | 349 ++++++++++++++++++ .../ClientsWireTest_testGet_response.json | 349 ++++++++++++++++++ .../ClientsWireTest_testList_response.json | 93 +++++ ...ntsWireTest_testRotateSecret_response.json | 349 ++++++++++++++++++ .../ClientsWireTest_testUpdate_response.json | 349 ++++++++++++++++++ ...nProfilesWireTest_testCreate_response.json | 54 +++ ...tionProfilesWireTest_testGet_response.json | 54 +++ ...nProfilesWireTest_testUpdate_response.json | 54 +++ .../FormsWireTest_testCreate_response.json | 68 ++++ .../FormsWireTest_testGet_response.json | 68 ++++ .../FormsWireTest_testUpdate_response.json | 68 ++++ .../NetworkAclsWireTest_testGet_response.json | 70 ++++ .../NetworkAclsWireTest_testSet_response.json | 70 ++++ ...tworkAclsWireTest_testUpdate_response.json | 70 ++++ ...antsSettingsWireTest_testGet_response.json | 103 ++++++ ...sSettingsWireTest_testUpdate_response.json | 103 ++++++ 29 files changed, 3300 insertions(+), 1 deletion(-) create mode 100644 src/test/resources/wire-tests/ActionsVersionsWireTest_testDeploy_response.json create mode 100644 src/test/resources/wire-tests/ActionsVersionsWireTest_testGet_response.json create mode 100644 src/test/resources/wire-tests/ActionsWireTest_testCreate_response.json create mode 100644 src/test/resources/wire-tests/ActionsWireTest_testDeploy_response.json create mode 100644 src/test/resources/wire-tests/ActionsWireTest_testGet_response.json create mode 100644 src/test/resources/wire-tests/ActionsWireTest_testUpdate_response.json create mode 100644 src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_request.json create mode 100644 src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json create mode 100644 src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json create mode 100644 src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json create mode 100644 src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_request.json create mode 100644 src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json create mode 100644 src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json create mode 100644 src/test/resources/wire-tests/ClientsWireTest_testGet_response.json create mode 100644 src/test/resources/wire-tests/ClientsWireTest_testList_response.json create mode 100644 src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json create mode 100644 src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json create mode 100644 src/test/resources/wire-tests/ConnectionProfilesWireTest_testCreate_response.json create mode 100644 src/test/resources/wire-tests/ConnectionProfilesWireTest_testGet_response.json create mode 100644 src/test/resources/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json create mode 100644 src/test/resources/wire-tests/FormsWireTest_testCreate_response.json create mode 100644 src/test/resources/wire-tests/FormsWireTest_testGet_response.json create mode 100644 src/test/resources/wire-tests/FormsWireTest_testUpdate_response.json create mode 100644 src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json create mode 100644 src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json create mode 100644 src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json create mode 100644 src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json create mode 100644 src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json diff --git a/.fernignore b/.fernignore index 232270085..9956c0318 100644 --- a/.fernignore +++ b/.fernignore @@ -37,7 +37,6 @@ src/test/java/com/auth0/net/ src/test/java/com/auth0/exception/ src/test/java/com/auth0/utils/ src/test/java/com/auth0/json/ -src/test/resources/ src/test/resources/auth/ src/test/resources/keys/ src/test/resources/mgmt/ diff --git a/src/test/resources/wire-tests/ActionsVersionsWireTest_testDeploy_response.json b/src/test/resources/wire-tests/ActionsVersionsWireTest_testDeploy_response.json new file mode 100644 index 000000000..9e10d71c7 --- /dev/null +++ b/src/test/resources/wire-tests/ActionsVersionsWireTest_testDeploy_response.json @@ -0,0 +1,70 @@ +{ + "id": "id", + "action_id": "action_id", + "code": "code", + "dependencies": [ + { + "name": "name", + "version": "version", + "registry_url": "registry_url" + } + ], + "deployed": true, + "runtime": "runtime", + "secrets": [ + { + "name": "name", + "updated_at": "2024-01-15T09:30:00Z" + } + ], + "status": "pending", + "number": 1.1, + "errors": [ + { + "id": "id", + "msg": "msg", + "url": "url" + } + ], + "action": { + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "built_at": "2024-01-15T09:30:00Z", + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "supported_triggers": [ + { + "id": "id", + "version": "version", + "status": "status", + "runtimes": [ + "runtimes" + ], + "default_runtime": "default_runtime", + "compatible_triggers": [ + { + "id": "id", + "version": "version" + } + ], + "binding_policy": "trigger-bound" + } + ], + "modules": [ + { + "module_id": "module_id", + "module_name": "module_name", + "module_version_id": "module_version_id", + "module_version_number": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ActionsVersionsWireTest_testGet_response.json b/src/test/resources/wire-tests/ActionsVersionsWireTest_testGet_response.json new file mode 100644 index 000000000..9e10d71c7 --- /dev/null +++ b/src/test/resources/wire-tests/ActionsVersionsWireTest_testGet_response.json @@ -0,0 +1,70 @@ +{ + "id": "id", + "action_id": "action_id", + "code": "code", + "dependencies": [ + { + "name": "name", + "version": "version", + "registry_url": "registry_url" + } + ], + "deployed": true, + "runtime": "runtime", + "secrets": [ + { + "name": "name", + "updated_at": "2024-01-15T09:30:00Z" + } + ], + "status": "pending", + "number": 1.1, + "errors": [ + { + "id": "id", + "msg": "msg", + "url": "url" + } + ], + "action": { + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "built_at": "2024-01-15T09:30:00Z", + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "supported_triggers": [ + { + "id": "id", + "version": "version", + "status": "status", + "runtimes": [ + "runtimes" + ], + "default_runtime": "default_runtime", + "compatible_triggers": [ + { + "id": "id", + "version": "version" + } + ], + "binding_policy": "trigger-bound" + } + ], + "modules": [ + { + "module_id": "module_id", + "module_name": "module_name", + "module_version_id": "module_version_id", + "module_version_number": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ActionsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ActionsWireTest_testCreate_response.json new file mode 100644 index 000000000..2a515914f --- /dev/null +++ b/src/test/resources/wire-tests/ActionsWireTest_testCreate_response.json @@ -0,0 +1,121 @@ +{ + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id", + "version": "version", + "status": "status", + "runtimes": [ + "runtimes" + ], + "default_runtime": "default_runtime", + "compatible_triggers": [ + { + "id": "id", + "version": "version" + } + ], + "binding_policy": "trigger-bound" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "code": "code", + "dependencies": [ + { + "name": "name", + "version": "version", + "registry_url": "registry_url" + } + ], + "runtime": "runtime", + "secrets": [ + { + "name": "name", + "updated_at": "2024-01-15T09:30:00Z" + } + ], + "deployed_version": { + "id": "id", + "action_id": "action_id", + "code": "code", + "dependencies": [ + {} + ], + "deployed": true, + "runtime": "runtime", + "secrets": [ + {} + ], + "status": "pending", + "number": 1.1, + "errors": [ + {} + ], + "action": { + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "built_at": "2024-01-15T09:30:00Z", + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "supported_triggers": [ + { + "id": "id" + } + ], + "modules": [ + {} + ] + }, + "installed_integration_id": "installed_integration_id", + "integration": { + "id": "id", + "catalog_id": "catalog_id", + "url_slug": "url_slug", + "partner_id": "partner_id", + "name": "name", + "description": "description", + "short_description": "short_description", + "logo": "logo", + "feature_type": "unspecified", + "terms_of_use_url": "terms_of_use_url", + "privacy_policy_url": "privacy_policy_url", + "public_support_link": "public_support_link", + "current_release": { + "id": "id", + "trigger": { + "id": "id" + }, + "required_secrets": [ + {} + ], + "required_configuration": [ + {} + ] + }, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "status": "pending", + "built_at": "2024-01-15T09:30:00Z", + "deploy": true, + "modules": [ + { + "module_id": "module_id", + "module_name": "module_name", + "module_version_id": "module_version_id", + "module_version_number": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ActionsWireTest_testDeploy_response.json b/src/test/resources/wire-tests/ActionsWireTest_testDeploy_response.json new file mode 100644 index 000000000..9e10d71c7 --- /dev/null +++ b/src/test/resources/wire-tests/ActionsWireTest_testDeploy_response.json @@ -0,0 +1,70 @@ +{ + "id": "id", + "action_id": "action_id", + "code": "code", + "dependencies": [ + { + "name": "name", + "version": "version", + "registry_url": "registry_url" + } + ], + "deployed": true, + "runtime": "runtime", + "secrets": [ + { + "name": "name", + "updated_at": "2024-01-15T09:30:00Z" + } + ], + "status": "pending", + "number": 1.1, + "errors": [ + { + "id": "id", + "msg": "msg", + "url": "url" + } + ], + "action": { + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "built_at": "2024-01-15T09:30:00Z", + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "supported_triggers": [ + { + "id": "id", + "version": "version", + "status": "status", + "runtimes": [ + "runtimes" + ], + "default_runtime": "default_runtime", + "compatible_triggers": [ + { + "id": "id", + "version": "version" + } + ], + "binding_policy": "trigger-bound" + } + ], + "modules": [ + { + "module_id": "module_id", + "module_name": "module_name", + "module_version_id": "module_version_id", + "module_version_number": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ActionsWireTest_testGet_response.json b/src/test/resources/wire-tests/ActionsWireTest_testGet_response.json new file mode 100644 index 000000000..2a515914f --- /dev/null +++ b/src/test/resources/wire-tests/ActionsWireTest_testGet_response.json @@ -0,0 +1,121 @@ +{ + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id", + "version": "version", + "status": "status", + "runtimes": [ + "runtimes" + ], + "default_runtime": "default_runtime", + "compatible_triggers": [ + { + "id": "id", + "version": "version" + } + ], + "binding_policy": "trigger-bound" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "code": "code", + "dependencies": [ + { + "name": "name", + "version": "version", + "registry_url": "registry_url" + } + ], + "runtime": "runtime", + "secrets": [ + { + "name": "name", + "updated_at": "2024-01-15T09:30:00Z" + } + ], + "deployed_version": { + "id": "id", + "action_id": "action_id", + "code": "code", + "dependencies": [ + {} + ], + "deployed": true, + "runtime": "runtime", + "secrets": [ + {} + ], + "status": "pending", + "number": 1.1, + "errors": [ + {} + ], + "action": { + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "built_at": "2024-01-15T09:30:00Z", + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "supported_triggers": [ + { + "id": "id" + } + ], + "modules": [ + {} + ] + }, + "installed_integration_id": "installed_integration_id", + "integration": { + "id": "id", + "catalog_id": "catalog_id", + "url_slug": "url_slug", + "partner_id": "partner_id", + "name": "name", + "description": "description", + "short_description": "short_description", + "logo": "logo", + "feature_type": "unspecified", + "terms_of_use_url": "terms_of_use_url", + "privacy_policy_url": "privacy_policy_url", + "public_support_link": "public_support_link", + "current_release": { + "id": "id", + "trigger": { + "id": "id" + }, + "required_secrets": [ + {} + ], + "required_configuration": [ + {} + ] + }, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "status": "pending", + "built_at": "2024-01-15T09:30:00Z", + "deploy": true, + "modules": [ + { + "module_id": "module_id", + "module_name": "module_name", + "module_version_id": "module_version_id", + "module_version_number": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ActionsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ActionsWireTest_testUpdate_response.json new file mode 100644 index 000000000..2a515914f --- /dev/null +++ b/src/test/resources/wire-tests/ActionsWireTest_testUpdate_response.json @@ -0,0 +1,121 @@ +{ + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id", + "version": "version", + "status": "status", + "runtimes": [ + "runtimes" + ], + "default_runtime": "default_runtime", + "compatible_triggers": [ + { + "id": "id", + "version": "version" + } + ], + "binding_policy": "trigger-bound" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "code": "code", + "dependencies": [ + { + "name": "name", + "version": "version", + "registry_url": "registry_url" + } + ], + "runtime": "runtime", + "secrets": [ + { + "name": "name", + "updated_at": "2024-01-15T09:30:00Z" + } + ], + "deployed_version": { + "id": "id", + "action_id": "action_id", + "code": "code", + "dependencies": [ + {} + ], + "deployed": true, + "runtime": "runtime", + "secrets": [ + {} + ], + "status": "pending", + "number": 1.1, + "errors": [ + {} + ], + "action": { + "id": "id", + "name": "name", + "supported_triggers": [ + { + "id": "id" + } + ], + "all_changes_deployed": true, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "built_at": "2024-01-15T09:30:00Z", + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "supported_triggers": [ + { + "id": "id" + } + ], + "modules": [ + {} + ] + }, + "installed_integration_id": "installed_integration_id", + "integration": { + "id": "id", + "catalog_id": "catalog_id", + "url_slug": "url_slug", + "partner_id": "partner_id", + "name": "name", + "description": "description", + "short_description": "short_description", + "logo": "logo", + "feature_type": "unspecified", + "terms_of_use_url": "terms_of_use_url", + "privacy_policy_url": "privacy_policy_url", + "public_support_link": "public_support_link", + "current_release": { + "id": "id", + "trigger": { + "id": "id" + }, + "required_secrets": [ + {} + ], + "required_configuration": [ + {} + ] + }, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z" + }, + "status": "pending", + "built_at": "2024-01-15T09:30:00Z", + "deploy": true, + "modules": [ + { + "module_id": "module_id", + "module_name": "module_name", + "module_version_id": "module_version_id", + "module_version_number": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_request.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_request.json new file mode 100644 index 000000000..1232c236a --- /dev/null +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_request.json @@ -0,0 +1,72 @@ +{ + "borders": { + "button_border_radius": 1.1, + "button_border_weight": 1.1, + "buttons_style": "pill", + "input_border_radius": 1.1, + "input_border_weight": 1.1, + "inputs_style": "pill", + "show_widget_shadow": true, + "widget_border_weight": 1.1, + "widget_corner_radius": 1.1 + }, + "colors": { + "body_text": "body_text", + "error": "error", + "header": "header", + "icons": "icons", + "input_background": "input_background", + "input_border": "input_border", + "input_filled_text": "input_filled_text", + "input_labels_placeholders": "input_labels_placeholders", + "links_focused_components": "links_focused_components", + "primary_button": "primary_button", + "primary_button_label": "primary_button_label", + "secondary_button_border": "secondary_button_border", + "secondary_button_label": "secondary_button_label", + "success": "success", + "widget_background": "widget_background", + "widget_border": "widget_border" + }, + "fonts": { + "body_text": { + "bold": true, + "size": 1.1 + }, + "buttons_text": { + "bold": true, + "size": 1.1 + }, + "font_url": "font_url", + "input_labels": { + "bold": true, + "size": 1.1 + }, + "links": { + "bold": true, + "size": 1.1 + }, + "links_style": "normal", + "reference_text_size": 1.1, + "subtitle": { + "bold": true, + "size": 1.1 + }, + "title": { + "bold": true, + "size": 1.1 + } + }, + "page_background": { + "background_color": "background_color", + "background_image_url": "background_image_url", + "page_layout": "center" + }, + "widget": { + "header_text_alignment": "center", + "logo_height": 1.1, + "logo_position": "center", + "logo_url": "logo_url", + "social_buttons_layout": "bottom" + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json new file mode 100644 index 000000000..c42b4ed9d --- /dev/null +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json @@ -0,0 +1,78 @@ +{ + "borders": { + "button_border_radius": 1.1, + "button_border_weight": 1.1, + "buttons_style": "pill", + "input_border_radius": 1.1, + "input_border_weight": 1.1, + "inputs_style": "pill", + "show_widget_shadow": true, + "widget_border_weight": 1.1, + "widget_corner_radius": 1.1 + }, + "colors": { + "base_focus_color": "base_focus_color", + "base_hover_color": "base_hover_color", + "body_text": "body_text", + "captcha_widget_theme": "auto", + "error": "error", + "header": "header", + "icons": "icons", + "input_background": "input_background", + "input_border": "input_border", + "input_filled_text": "input_filled_text", + "input_labels_placeholders": "input_labels_placeholders", + "links_focused_components": "links_focused_components", + "primary_button": "primary_button", + "primary_button_label": "primary_button_label", + "read_only_background": "read_only_background", + "secondary_button_border": "secondary_button_border", + "secondary_button_label": "secondary_button_label", + "success": "success", + "widget_background": "widget_background", + "widget_border": "widget_border" + }, + "displayName": "displayName", + "fonts": { + "body_text": { + "bold": true, + "size": 1.1 + }, + "buttons_text": { + "bold": true, + "size": 1.1 + }, + "font_url": "font_url", + "input_labels": { + "bold": true, + "size": 1.1 + }, + "links": { + "bold": true, + "size": 1.1 + }, + "links_style": "normal", + "reference_text_size": 1.1, + "subtitle": { + "bold": true, + "size": 1.1 + }, + "title": { + "bold": true, + "size": 1.1 + } + }, + "page_background": { + "background_color": "background_color", + "background_image_url": "background_image_url", + "page_layout": "center" + }, + "themeId": "themeId", + "widget": { + "header_text_alignment": "center", + "logo_height": 1.1, + "logo_position": "center", + "logo_url": "logo_url", + "social_buttons_layout": "bottom" + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json new file mode 100644 index 000000000..c42b4ed9d --- /dev/null +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json @@ -0,0 +1,78 @@ +{ + "borders": { + "button_border_radius": 1.1, + "button_border_weight": 1.1, + "buttons_style": "pill", + "input_border_radius": 1.1, + "input_border_weight": 1.1, + "inputs_style": "pill", + "show_widget_shadow": true, + "widget_border_weight": 1.1, + "widget_corner_radius": 1.1 + }, + "colors": { + "base_focus_color": "base_focus_color", + "base_hover_color": "base_hover_color", + "body_text": "body_text", + "captcha_widget_theme": "auto", + "error": "error", + "header": "header", + "icons": "icons", + "input_background": "input_background", + "input_border": "input_border", + "input_filled_text": "input_filled_text", + "input_labels_placeholders": "input_labels_placeholders", + "links_focused_components": "links_focused_components", + "primary_button": "primary_button", + "primary_button_label": "primary_button_label", + "read_only_background": "read_only_background", + "secondary_button_border": "secondary_button_border", + "secondary_button_label": "secondary_button_label", + "success": "success", + "widget_background": "widget_background", + "widget_border": "widget_border" + }, + "displayName": "displayName", + "fonts": { + "body_text": { + "bold": true, + "size": 1.1 + }, + "buttons_text": { + "bold": true, + "size": 1.1 + }, + "font_url": "font_url", + "input_labels": { + "bold": true, + "size": 1.1 + }, + "links": { + "bold": true, + "size": 1.1 + }, + "links_style": "normal", + "reference_text_size": 1.1, + "subtitle": { + "bold": true, + "size": 1.1 + }, + "title": { + "bold": true, + "size": 1.1 + } + }, + "page_background": { + "background_color": "background_color", + "background_image_url": "background_image_url", + "page_layout": "center" + }, + "themeId": "themeId", + "widget": { + "header_text_alignment": "center", + "logo_height": 1.1, + "logo_position": "center", + "logo_url": "logo_url", + "social_buttons_layout": "bottom" + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json new file mode 100644 index 000000000..c42b4ed9d --- /dev/null +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json @@ -0,0 +1,78 @@ +{ + "borders": { + "button_border_radius": 1.1, + "button_border_weight": 1.1, + "buttons_style": "pill", + "input_border_radius": 1.1, + "input_border_weight": 1.1, + "inputs_style": "pill", + "show_widget_shadow": true, + "widget_border_weight": 1.1, + "widget_corner_radius": 1.1 + }, + "colors": { + "base_focus_color": "base_focus_color", + "base_hover_color": "base_hover_color", + "body_text": "body_text", + "captcha_widget_theme": "auto", + "error": "error", + "header": "header", + "icons": "icons", + "input_background": "input_background", + "input_border": "input_border", + "input_filled_text": "input_filled_text", + "input_labels_placeholders": "input_labels_placeholders", + "links_focused_components": "links_focused_components", + "primary_button": "primary_button", + "primary_button_label": "primary_button_label", + "read_only_background": "read_only_background", + "secondary_button_border": "secondary_button_border", + "secondary_button_label": "secondary_button_label", + "success": "success", + "widget_background": "widget_background", + "widget_border": "widget_border" + }, + "displayName": "displayName", + "fonts": { + "body_text": { + "bold": true, + "size": 1.1 + }, + "buttons_text": { + "bold": true, + "size": 1.1 + }, + "font_url": "font_url", + "input_labels": { + "bold": true, + "size": 1.1 + }, + "links": { + "bold": true, + "size": 1.1 + }, + "links_style": "normal", + "reference_text_size": 1.1, + "subtitle": { + "bold": true, + "size": 1.1 + }, + "title": { + "bold": true, + "size": 1.1 + } + }, + "page_background": { + "background_color": "background_color", + "background_image_url": "background_image_url", + "page_layout": "center" + }, + "themeId": "themeId", + "widget": { + "header_text_alignment": "center", + "logo_height": 1.1, + "logo_position": "center", + "logo_url": "logo_url", + "social_buttons_layout": "bottom" + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_request.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_request.json new file mode 100644 index 000000000..1232c236a --- /dev/null +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_request.json @@ -0,0 +1,72 @@ +{ + "borders": { + "button_border_radius": 1.1, + "button_border_weight": 1.1, + "buttons_style": "pill", + "input_border_radius": 1.1, + "input_border_weight": 1.1, + "inputs_style": "pill", + "show_widget_shadow": true, + "widget_border_weight": 1.1, + "widget_corner_radius": 1.1 + }, + "colors": { + "body_text": "body_text", + "error": "error", + "header": "header", + "icons": "icons", + "input_background": "input_background", + "input_border": "input_border", + "input_filled_text": "input_filled_text", + "input_labels_placeholders": "input_labels_placeholders", + "links_focused_components": "links_focused_components", + "primary_button": "primary_button", + "primary_button_label": "primary_button_label", + "secondary_button_border": "secondary_button_border", + "secondary_button_label": "secondary_button_label", + "success": "success", + "widget_background": "widget_background", + "widget_border": "widget_border" + }, + "fonts": { + "body_text": { + "bold": true, + "size": 1.1 + }, + "buttons_text": { + "bold": true, + "size": 1.1 + }, + "font_url": "font_url", + "input_labels": { + "bold": true, + "size": 1.1 + }, + "links": { + "bold": true, + "size": 1.1 + }, + "links_style": "normal", + "reference_text_size": 1.1, + "subtitle": { + "bold": true, + "size": 1.1 + }, + "title": { + "bold": true, + "size": 1.1 + } + }, + "page_background": { + "background_color": "background_color", + "background_image_url": "background_image_url", + "page_layout": "center" + }, + "widget": { + "header_text_alignment": "center", + "logo_height": 1.1, + "logo_position": "center", + "logo_url": "logo_url", + "social_buttons_layout": "bottom" + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json new file mode 100644 index 000000000..c42b4ed9d --- /dev/null +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json @@ -0,0 +1,78 @@ +{ + "borders": { + "button_border_radius": 1.1, + "button_border_weight": 1.1, + "buttons_style": "pill", + "input_border_radius": 1.1, + "input_border_weight": 1.1, + "inputs_style": "pill", + "show_widget_shadow": true, + "widget_border_weight": 1.1, + "widget_corner_radius": 1.1 + }, + "colors": { + "base_focus_color": "base_focus_color", + "base_hover_color": "base_hover_color", + "body_text": "body_text", + "captcha_widget_theme": "auto", + "error": "error", + "header": "header", + "icons": "icons", + "input_background": "input_background", + "input_border": "input_border", + "input_filled_text": "input_filled_text", + "input_labels_placeholders": "input_labels_placeholders", + "links_focused_components": "links_focused_components", + "primary_button": "primary_button", + "primary_button_label": "primary_button_label", + "read_only_background": "read_only_background", + "secondary_button_border": "secondary_button_border", + "secondary_button_label": "secondary_button_label", + "success": "success", + "widget_background": "widget_background", + "widget_border": "widget_border" + }, + "displayName": "displayName", + "fonts": { + "body_text": { + "bold": true, + "size": 1.1 + }, + "buttons_text": { + "bold": true, + "size": 1.1 + }, + "font_url": "font_url", + "input_labels": { + "bold": true, + "size": 1.1 + }, + "links": { + "bold": true, + "size": 1.1 + }, + "links_style": "normal", + "reference_text_size": 1.1, + "subtitle": { + "bold": true, + "size": 1.1 + }, + "title": { + "bold": true, + "size": 1.1 + } + }, + "page_background": { + "background_color": "background_color", + "background_image_url": "background_image_url", + "page_layout": "center" + }, + "themeId": "themeId", + "widget": { + "header_text_alignment": "center", + "logo_height": 1.1, + "logo_position": "center", + "logo_url": "logo_url", + "social_buttons_layout": "bottom" + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json new file mode 100644 index 000000000..9aecdeda1 --- /dev/null +++ b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json @@ -0,0 +1,349 @@ +{ + "client_id": "client_id", + "tenant": "tenant", + "name": "name", + "description": "description", + "global": true, + "client_secret": "client_secret", + "app_type": "native", + "logo_uri": "logo_uri", + "is_first_party": true, + "oidc_conformant": true, + "callbacks": [ + "callbacks" + ], + "allowed_origins": [ + "allowed_origins" + ], + "web_origins": [ + "web_origins" + ], + "client_aliases": [ + "client_aliases" + ], + "allowed_clients": [ + "allowed_clients" + ], + "allowed_logout_urls": [ + "allowed_logout_urls" + ], + "session_transfer": { + "can_create_session_transfer_token": true, + "enforce_cascade_revocation": true, + "allowed_authentication_methods": [ + "cookie" + ], + "enforce_device_binding": "ip", + "allow_refresh_token": true, + "enforce_online_refresh_tokens": true + }, + "oidc_logout": { + "backchannel_logout_urls": [ + "backchannel_logout_urls" + ], + "backchannel_logout_initiators": { + "mode": "custom", + "selected_initiators": [ + "rp-logout" + ] + }, + "backchannel_logout_session_metadata": { + "include": true + } + }, + "grant_types": [ + "grant_types" + ], + "jwt_configuration": { + "lifetime_in_seconds": 1, + "secret_encoded": true, + "scopes": { + "key": "value" + }, + "alg": "HS256" + }, + "signing_keys": [ + { + "pkcs7": "pkcs7", + "cert": "cert", + "subject": "subject" + } + ], + "encryption_key": { + "pub": "pub", + "cert": "cert", + "subject": "subject" + }, + "sso": true, + "sso_disabled": true, + "cross_origin_authentication": true, + "cross_origin_loc": "cross_origin_loc", + "custom_login_page_on": true, + "custom_login_page": "custom_login_page", + "custom_login_page_preview": "custom_login_page_preview", + "form_template": "form_template", + "addons": { + "aws": { + "principal": "principal", + "role": "role", + "lifetime_in_seconds": 1 + }, + "azure_blob": { + "accountName": "accountName", + "storageAccessKey": "storageAccessKey", + "containerName": "containerName", + "blobName": "blobName", + "expiration": 1, + "signedIdentifier": "signedIdentifier", + "blob_read": true, + "blob_write": true, + "blob_delete": true, + "container_read": true, + "container_write": true, + "container_delete": true, + "container_list": true + }, + "azure_sb": { + "namespace": "namespace", + "sasKeyName": "sasKeyName", + "sasKey": "sasKey", + "entityPath": "entityPath", + "expiration": 1 + }, + "rms": { + "url": "url" + }, + "mscrm": { + "url": "url" + }, + "slack": { + "team": "team" + }, + "sentry": { + "org_slug": "org_slug", + "base_url": "base_url" + }, + "box": { + "key": "value" + }, + "cloudbees": { + "key": "value" + }, + "concur": { + "key": "value" + }, + "dropbox": { + "key": "value" + }, + "echosign": { + "domain": "domain" + }, + "egnyte": { + "domain": "domain" + }, + "firebase": { + "secret": "secret", + "private_key_id": "private_key_id", + "private_key": "private_key", + "client_email": "client_email", + "lifetime_in_seconds": 1 + }, + "newrelic": { + "account": "account" + }, + "office365": { + "domain": "domain", + "connection": "connection" + }, + "salesforce": { + "entity_id": "entity_id" + }, + "salesforce_api": { + "clientid": "clientid", + "principal": "principal", + "communityName": "communityName", + "community_url_section": "community_url_section" + }, + "salesforce_sandbox_api": { + "clientid": "clientid", + "principal": "principal", + "communityName": "communityName", + "community_url_section": "community_url_section" + }, + "samlp": { + "mappings": { + "key": "value" + }, + "audience": "audience", + "recipient": "recipient", + "createUpnClaim": true, + "mapUnknownClaimsAsIs": true, + "passthroughClaimsWithNoMapping": true, + "mapIdentities": true, + "signatureAlgorithm": "signatureAlgorithm", + "digestAlgorithm": "digestAlgorithm", + "issuer": "issuer", + "destination": "destination", + "lifetimeInSeconds": 1, + "signResponse": true, + "nameIdentifierFormat": "nameIdentifierFormat", + "nameIdentifierProbes": [ + "nameIdentifierProbes" + ], + "authnContextClassRef": "authnContextClassRef" + }, + "layer": { + "providerId": "providerId", + "keyId": "keyId", + "privateKey": "privateKey", + "principal": "principal", + "expiration": 1 + }, + "sap_api": { + "clientid": "clientid", + "usernameAttribute": "usernameAttribute", + "tokenEndpointUrl": "tokenEndpointUrl", + "scope": "scope", + "servicePassword": "servicePassword", + "nameIdentifierFormat": "nameIdentifierFormat" + }, + "sharepoint": { + "url": "url", + "external_url": [ + "external_url" + ] + }, + "springcm": { + "acsurl": "acsurl" + }, + "wams": { + "masterkey": "masterkey" + }, + "wsfed": { + "key": "value" + }, + "zendesk": { + "accountName": "accountName" + }, + "zoom": { + "account": "account" + }, + "sso_integration": { + "name": "name", + "version": "version" + } + }, + "token_endpoint_auth_method": "none", + "is_token_endpoint_ip_header_trusted": true, + "client_metadata": { + "key": "value" + }, + "mobile": { + "android": { + "app_package_name": "app_package_name", + "sha256_cert_fingerprints": [ + "sha256_cert_fingerprints" + ] + }, + "ios": { + "team_id": "team_id", + "app_bundle_identifier": "app_bundle_identifier" + } + }, + "initiate_login_uri": "initiate_login_uri", + "refresh_token": { + "rotation_type": "rotating", + "expiration_type": "expiring", + "leeway": 1, + "token_lifetime": 1, + "infinite_token_lifetime": true, + "idle_token_lifetime": 1, + "infinite_idle_token_lifetime": true, + "policies": [ + { + "audience": "audience", + "scope": [ + "scope" + ] + } + ] + }, + "default_organization": { + "organization_id": "organization_id", + "flows": [ + "client_credentials" + ] + }, + "organization_usage": "deny", + "organization_require_behavior": "no_prompt", + "organization_discovery_methods": [ + "email" + ], + "client_authentication_methods": { + "private_key_jwt": { + "credentials": [ + { + "id": "id" + } + ] + }, + "tls_client_auth": { + "credentials": [ + { + "id": "id" + } + ] + }, + "self_signed_tls_client_auth": { + "credentials": [ + { + "id": "id" + } + ] + } + }, + "require_pushed_authorization_requests": true, + "require_proof_of_possession": true, + "signed_request_object": { + "required": true, + "credentials": [ + { + "id": "id" + } + ] + }, + "compliance_level": "none", + "skip_non_verifiable_callback_uri_confirmation_prompt": true, + "token_exchange": { + "allow_any_profile_of_type": [ + "custom_authentication" + ] + }, + "par_request_expiry": 1, + "token_quota": { + "client_credentials": { + "enforce": true, + "per_day": 1, + "per_hour": 1 + } + }, + "express_configuration": { + "initiate_login_uri_template": "initiate_login_uri_template", + "user_attribute_profile_id": "user_attribute_profile_id", + "connection_profile_id": "connection_profile_id", + "enable_client": true, + "enable_organization": true, + "linked_clients": [ + { + "client_id": "client_id" + } + ], + "okta_oin_client_id": "okta_oin_client_id", + "admin_login_domain": "admin_login_domain", + "oin_submission_id": "oin_submission_id" + }, + "resource_server_identifier": "resource_server_identifier", + "async_approval_notification_channels": [ + "guardian-push" + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json new file mode 100644 index 000000000..9aecdeda1 --- /dev/null +++ b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json @@ -0,0 +1,349 @@ +{ + "client_id": "client_id", + "tenant": "tenant", + "name": "name", + "description": "description", + "global": true, + "client_secret": "client_secret", + "app_type": "native", + "logo_uri": "logo_uri", + "is_first_party": true, + "oidc_conformant": true, + "callbacks": [ + "callbacks" + ], + "allowed_origins": [ + "allowed_origins" + ], + "web_origins": [ + "web_origins" + ], + "client_aliases": [ + "client_aliases" + ], + "allowed_clients": [ + "allowed_clients" + ], + "allowed_logout_urls": [ + "allowed_logout_urls" + ], + "session_transfer": { + "can_create_session_transfer_token": true, + "enforce_cascade_revocation": true, + "allowed_authentication_methods": [ + "cookie" + ], + "enforce_device_binding": "ip", + "allow_refresh_token": true, + "enforce_online_refresh_tokens": true + }, + "oidc_logout": { + "backchannel_logout_urls": [ + "backchannel_logout_urls" + ], + "backchannel_logout_initiators": { + "mode": "custom", + "selected_initiators": [ + "rp-logout" + ] + }, + "backchannel_logout_session_metadata": { + "include": true + } + }, + "grant_types": [ + "grant_types" + ], + "jwt_configuration": { + "lifetime_in_seconds": 1, + "secret_encoded": true, + "scopes": { + "key": "value" + }, + "alg": "HS256" + }, + "signing_keys": [ + { + "pkcs7": "pkcs7", + "cert": "cert", + "subject": "subject" + } + ], + "encryption_key": { + "pub": "pub", + "cert": "cert", + "subject": "subject" + }, + "sso": true, + "sso_disabled": true, + "cross_origin_authentication": true, + "cross_origin_loc": "cross_origin_loc", + "custom_login_page_on": true, + "custom_login_page": "custom_login_page", + "custom_login_page_preview": "custom_login_page_preview", + "form_template": "form_template", + "addons": { + "aws": { + "principal": "principal", + "role": "role", + "lifetime_in_seconds": 1 + }, + "azure_blob": { + "accountName": "accountName", + "storageAccessKey": "storageAccessKey", + "containerName": "containerName", + "blobName": "blobName", + "expiration": 1, + "signedIdentifier": "signedIdentifier", + "blob_read": true, + "blob_write": true, + "blob_delete": true, + "container_read": true, + "container_write": true, + "container_delete": true, + "container_list": true + }, + "azure_sb": { + "namespace": "namespace", + "sasKeyName": "sasKeyName", + "sasKey": "sasKey", + "entityPath": "entityPath", + "expiration": 1 + }, + "rms": { + "url": "url" + }, + "mscrm": { + "url": "url" + }, + "slack": { + "team": "team" + }, + "sentry": { + "org_slug": "org_slug", + "base_url": "base_url" + }, + "box": { + "key": "value" + }, + "cloudbees": { + "key": "value" + }, + "concur": { + "key": "value" + }, + "dropbox": { + "key": "value" + }, + "echosign": { + "domain": "domain" + }, + "egnyte": { + "domain": "domain" + }, + "firebase": { + "secret": "secret", + "private_key_id": "private_key_id", + "private_key": "private_key", + "client_email": "client_email", + "lifetime_in_seconds": 1 + }, + "newrelic": { + "account": "account" + }, + "office365": { + "domain": "domain", + "connection": "connection" + }, + "salesforce": { + "entity_id": "entity_id" + }, + "salesforce_api": { + "clientid": "clientid", + "principal": "principal", + "communityName": "communityName", + "community_url_section": "community_url_section" + }, + "salesforce_sandbox_api": { + "clientid": "clientid", + "principal": "principal", + "communityName": "communityName", + "community_url_section": "community_url_section" + }, + "samlp": { + "mappings": { + "key": "value" + }, + "audience": "audience", + "recipient": "recipient", + "createUpnClaim": true, + "mapUnknownClaimsAsIs": true, + "passthroughClaimsWithNoMapping": true, + "mapIdentities": true, + "signatureAlgorithm": "signatureAlgorithm", + "digestAlgorithm": "digestAlgorithm", + "issuer": "issuer", + "destination": "destination", + "lifetimeInSeconds": 1, + "signResponse": true, + "nameIdentifierFormat": "nameIdentifierFormat", + "nameIdentifierProbes": [ + "nameIdentifierProbes" + ], + "authnContextClassRef": "authnContextClassRef" + }, + "layer": { + "providerId": "providerId", + "keyId": "keyId", + "privateKey": "privateKey", + "principal": "principal", + "expiration": 1 + }, + "sap_api": { + "clientid": "clientid", + "usernameAttribute": "usernameAttribute", + "tokenEndpointUrl": "tokenEndpointUrl", + "scope": "scope", + "servicePassword": "servicePassword", + "nameIdentifierFormat": "nameIdentifierFormat" + }, + "sharepoint": { + "url": "url", + "external_url": [ + "external_url" + ] + }, + "springcm": { + "acsurl": "acsurl" + }, + "wams": { + "masterkey": "masterkey" + }, + "wsfed": { + "key": "value" + }, + "zendesk": { + "accountName": "accountName" + }, + "zoom": { + "account": "account" + }, + "sso_integration": { + "name": "name", + "version": "version" + } + }, + "token_endpoint_auth_method": "none", + "is_token_endpoint_ip_header_trusted": true, + "client_metadata": { + "key": "value" + }, + "mobile": { + "android": { + "app_package_name": "app_package_name", + "sha256_cert_fingerprints": [ + "sha256_cert_fingerprints" + ] + }, + "ios": { + "team_id": "team_id", + "app_bundle_identifier": "app_bundle_identifier" + } + }, + "initiate_login_uri": "initiate_login_uri", + "refresh_token": { + "rotation_type": "rotating", + "expiration_type": "expiring", + "leeway": 1, + "token_lifetime": 1, + "infinite_token_lifetime": true, + "idle_token_lifetime": 1, + "infinite_idle_token_lifetime": true, + "policies": [ + { + "audience": "audience", + "scope": [ + "scope" + ] + } + ] + }, + "default_organization": { + "organization_id": "organization_id", + "flows": [ + "client_credentials" + ] + }, + "organization_usage": "deny", + "organization_require_behavior": "no_prompt", + "organization_discovery_methods": [ + "email" + ], + "client_authentication_methods": { + "private_key_jwt": { + "credentials": [ + { + "id": "id" + } + ] + }, + "tls_client_auth": { + "credentials": [ + { + "id": "id" + } + ] + }, + "self_signed_tls_client_auth": { + "credentials": [ + { + "id": "id" + } + ] + } + }, + "require_pushed_authorization_requests": true, + "require_proof_of_possession": true, + "signed_request_object": { + "required": true, + "credentials": [ + { + "id": "id" + } + ] + }, + "compliance_level": "none", + "skip_non_verifiable_callback_uri_confirmation_prompt": true, + "token_exchange": { + "allow_any_profile_of_type": [ + "custom_authentication" + ] + }, + "par_request_expiry": 1, + "token_quota": { + "client_credentials": { + "enforce": true, + "per_day": 1, + "per_hour": 1 + } + }, + "express_configuration": { + "initiate_login_uri_template": "initiate_login_uri_template", + "user_attribute_profile_id": "user_attribute_profile_id", + "connection_profile_id": "connection_profile_id", + "enable_client": true, + "enable_organization": true, + "linked_clients": [ + { + "client_id": "client_id" + } + ], + "okta_oin_client_id": "okta_oin_client_id", + "admin_login_domain": "admin_login_domain", + "oin_submission_id": "oin_submission_id" + }, + "resource_server_identifier": "resource_server_identifier", + "async_approval_notification_channels": [ + "guardian-push" + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testList_response.json b/src/test/resources/wire-tests/ClientsWireTest_testList_response.json new file mode 100644 index 000000000..5996d0106 --- /dev/null +++ b/src/test/resources/wire-tests/ClientsWireTest_testList_response.json @@ -0,0 +1,93 @@ +{ + "start": 1.1, + "limit": 1.1, + "total": 1.1, + "clients": [ + { + "client_id": "client_id", + "tenant": "tenant", + "name": "name", + "description": "description", + "global": true, + "client_secret": "client_secret", + "app_type": "native", + "logo_uri": "logo_uri", + "is_first_party": true, + "oidc_conformant": true, + "callbacks": [ + "callbacks" + ], + "allowed_origins": [ + "allowed_origins" + ], + "web_origins": [ + "web_origins" + ], + "client_aliases": [ + "client_aliases" + ], + "allowed_clients": [ + "allowed_clients" + ], + "allowed_logout_urls": [ + "allowed_logout_urls" + ], + "grant_types": [ + "grant_types" + ], + "signing_keys": [ + {} + ], + "sso": true, + "sso_disabled": true, + "cross_origin_authentication": true, + "cross_origin_loc": "cross_origin_loc", + "custom_login_page_on": true, + "custom_login_page": "custom_login_page", + "custom_login_page_preview": "custom_login_page_preview", + "form_template": "form_template", + "token_endpoint_auth_method": "none", + "is_token_endpoint_ip_header_trusted": true, + "client_metadata": { + "key": "value" + }, + "initiate_login_uri": "initiate_login_uri", + "refresh_token": { + "rotation_type": "rotating", + "expiration_type": "expiring" + }, + "default_organization": { + "organization_id": "organization_id", + "flows": [ + "client_credentials" + ] + }, + "organization_usage": "deny", + "organization_require_behavior": "no_prompt", + "organization_discovery_methods": [ + "email" + ], + "require_pushed_authorization_requests": true, + "require_proof_of_possession": true, + "compliance_level": "none", + "skip_non_verifiable_callback_uri_confirmation_prompt": true, + "par_request_expiry": 1, + "token_quota": { + "client_credentials": {} + }, + "express_configuration": { + "initiate_login_uri_template": "initiate_login_uri_template", + "user_attribute_profile_id": "user_attribute_profile_id", + "connection_profile_id": "connection_profile_id", + "enable_client": true, + "enable_organization": true, + "okta_oin_client_id": "okta_oin_client_id", + "admin_login_domain": "admin_login_domain" + }, + "resource_server_identifier": "resource_server_identifier", + "async_approval_notification_channels": [ + "guardian-push" + ] + } + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json new file mode 100644 index 000000000..9aecdeda1 --- /dev/null +++ b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json @@ -0,0 +1,349 @@ +{ + "client_id": "client_id", + "tenant": "tenant", + "name": "name", + "description": "description", + "global": true, + "client_secret": "client_secret", + "app_type": "native", + "logo_uri": "logo_uri", + "is_first_party": true, + "oidc_conformant": true, + "callbacks": [ + "callbacks" + ], + "allowed_origins": [ + "allowed_origins" + ], + "web_origins": [ + "web_origins" + ], + "client_aliases": [ + "client_aliases" + ], + "allowed_clients": [ + "allowed_clients" + ], + "allowed_logout_urls": [ + "allowed_logout_urls" + ], + "session_transfer": { + "can_create_session_transfer_token": true, + "enforce_cascade_revocation": true, + "allowed_authentication_methods": [ + "cookie" + ], + "enforce_device_binding": "ip", + "allow_refresh_token": true, + "enforce_online_refresh_tokens": true + }, + "oidc_logout": { + "backchannel_logout_urls": [ + "backchannel_logout_urls" + ], + "backchannel_logout_initiators": { + "mode": "custom", + "selected_initiators": [ + "rp-logout" + ] + }, + "backchannel_logout_session_metadata": { + "include": true + } + }, + "grant_types": [ + "grant_types" + ], + "jwt_configuration": { + "lifetime_in_seconds": 1, + "secret_encoded": true, + "scopes": { + "key": "value" + }, + "alg": "HS256" + }, + "signing_keys": [ + { + "pkcs7": "pkcs7", + "cert": "cert", + "subject": "subject" + } + ], + "encryption_key": { + "pub": "pub", + "cert": "cert", + "subject": "subject" + }, + "sso": true, + "sso_disabled": true, + "cross_origin_authentication": true, + "cross_origin_loc": "cross_origin_loc", + "custom_login_page_on": true, + "custom_login_page": "custom_login_page", + "custom_login_page_preview": "custom_login_page_preview", + "form_template": "form_template", + "addons": { + "aws": { + "principal": "principal", + "role": "role", + "lifetime_in_seconds": 1 + }, + "azure_blob": { + "accountName": "accountName", + "storageAccessKey": "storageAccessKey", + "containerName": "containerName", + "blobName": "blobName", + "expiration": 1, + "signedIdentifier": "signedIdentifier", + "blob_read": true, + "blob_write": true, + "blob_delete": true, + "container_read": true, + "container_write": true, + "container_delete": true, + "container_list": true + }, + "azure_sb": { + "namespace": "namespace", + "sasKeyName": "sasKeyName", + "sasKey": "sasKey", + "entityPath": "entityPath", + "expiration": 1 + }, + "rms": { + "url": "url" + }, + "mscrm": { + "url": "url" + }, + "slack": { + "team": "team" + }, + "sentry": { + "org_slug": "org_slug", + "base_url": "base_url" + }, + "box": { + "key": "value" + }, + "cloudbees": { + "key": "value" + }, + "concur": { + "key": "value" + }, + "dropbox": { + "key": "value" + }, + "echosign": { + "domain": "domain" + }, + "egnyte": { + "domain": "domain" + }, + "firebase": { + "secret": "secret", + "private_key_id": "private_key_id", + "private_key": "private_key", + "client_email": "client_email", + "lifetime_in_seconds": 1 + }, + "newrelic": { + "account": "account" + }, + "office365": { + "domain": "domain", + "connection": "connection" + }, + "salesforce": { + "entity_id": "entity_id" + }, + "salesforce_api": { + "clientid": "clientid", + "principal": "principal", + "communityName": "communityName", + "community_url_section": "community_url_section" + }, + "salesforce_sandbox_api": { + "clientid": "clientid", + "principal": "principal", + "communityName": "communityName", + "community_url_section": "community_url_section" + }, + "samlp": { + "mappings": { + "key": "value" + }, + "audience": "audience", + "recipient": "recipient", + "createUpnClaim": true, + "mapUnknownClaimsAsIs": true, + "passthroughClaimsWithNoMapping": true, + "mapIdentities": true, + "signatureAlgorithm": "signatureAlgorithm", + "digestAlgorithm": "digestAlgorithm", + "issuer": "issuer", + "destination": "destination", + "lifetimeInSeconds": 1, + "signResponse": true, + "nameIdentifierFormat": "nameIdentifierFormat", + "nameIdentifierProbes": [ + "nameIdentifierProbes" + ], + "authnContextClassRef": "authnContextClassRef" + }, + "layer": { + "providerId": "providerId", + "keyId": "keyId", + "privateKey": "privateKey", + "principal": "principal", + "expiration": 1 + }, + "sap_api": { + "clientid": "clientid", + "usernameAttribute": "usernameAttribute", + "tokenEndpointUrl": "tokenEndpointUrl", + "scope": "scope", + "servicePassword": "servicePassword", + "nameIdentifierFormat": "nameIdentifierFormat" + }, + "sharepoint": { + "url": "url", + "external_url": [ + "external_url" + ] + }, + "springcm": { + "acsurl": "acsurl" + }, + "wams": { + "masterkey": "masterkey" + }, + "wsfed": { + "key": "value" + }, + "zendesk": { + "accountName": "accountName" + }, + "zoom": { + "account": "account" + }, + "sso_integration": { + "name": "name", + "version": "version" + } + }, + "token_endpoint_auth_method": "none", + "is_token_endpoint_ip_header_trusted": true, + "client_metadata": { + "key": "value" + }, + "mobile": { + "android": { + "app_package_name": "app_package_name", + "sha256_cert_fingerprints": [ + "sha256_cert_fingerprints" + ] + }, + "ios": { + "team_id": "team_id", + "app_bundle_identifier": "app_bundle_identifier" + } + }, + "initiate_login_uri": "initiate_login_uri", + "refresh_token": { + "rotation_type": "rotating", + "expiration_type": "expiring", + "leeway": 1, + "token_lifetime": 1, + "infinite_token_lifetime": true, + "idle_token_lifetime": 1, + "infinite_idle_token_lifetime": true, + "policies": [ + { + "audience": "audience", + "scope": [ + "scope" + ] + } + ] + }, + "default_organization": { + "organization_id": "organization_id", + "flows": [ + "client_credentials" + ] + }, + "organization_usage": "deny", + "organization_require_behavior": "no_prompt", + "organization_discovery_methods": [ + "email" + ], + "client_authentication_methods": { + "private_key_jwt": { + "credentials": [ + { + "id": "id" + } + ] + }, + "tls_client_auth": { + "credentials": [ + { + "id": "id" + } + ] + }, + "self_signed_tls_client_auth": { + "credentials": [ + { + "id": "id" + } + ] + } + }, + "require_pushed_authorization_requests": true, + "require_proof_of_possession": true, + "signed_request_object": { + "required": true, + "credentials": [ + { + "id": "id" + } + ] + }, + "compliance_level": "none", + "skip_non_verifiable_callback_uri_confirmation_prompt": true, + "token_exchange": { + "allow_any_profile_of_type": [ + "custom_authentication" + ] + }, + "par_request_expiry": 1, + "token_quota": { + "client_credentials": { + "enforce": true, + "per_day": 1, + "per_hour": 1 + } + }, + "express_configuration": { + "initiate_login_uri_template": "initiate_login_uri_template", + "user_attribute_profile_id": "user_attribute_profile_id", + "connection_profile_id": "connection_profile_id", + "enable_client": true, + "enable_organization": true, + "linked_clients": [ + { + "client_id": "client_id" + } + ], + "okta_oin_client_id": "okta_oin_client_id", + "admin_login_domain": "admin_login_domain", + "oin_submission_id": "oin_submission_id" + }, + "resource_server_identifier": "resource_server_identifier", + "async_approval_notification_channels": [ + "guardian-push" + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json new file mode 100644 index 000000000..9aecdeda1 --- /dev/null +++ b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json @@ -0,0 +1,349 @@ +{ + "client_id": "client_id", + "tenant": "tenant", + "name": "name", + "description": "description", + "global": true, + "client_secret": "client_secret", + "app_type": "native", + "logo_uri": "logo_uri", + "is_first_party": true, + "oidc_conformant": true, + "callbacks": [ + "callbacks" + ], + "allowed_origins": [ + "allowed_origins" + ], + "web_origins": [ + "web_origins" + ], + "client_aliases": [ + "client_aliases" + ], + "allowed_clients": [ + "allowed_clients" + ], + "allowed_logout_urls": [ + "allowed_logout_urls" + ], + "session_transfer": { + "can_create_session_transfer_token": true, + "enforce_cascade_revocation": true, + "allowed_authentication_methods": [ + "cookie" + ], + "enforce_device_binding": "ip", + "allow_refresh_token": true, + "enforce_online_refresh_tokens": true + }, + "oidc_logout": { + "backchannel_logout_urls": [ + "backchannel_logout_urls" + ], + "backchannel_logout_initiators": { + "mode": "custom", + "selected_initiators": [ + "rp-logout" + ] + }, + "backchannel_logout_session_metadata": { + "include": true + } + }, + "grant_types": [ + "grant_types" + ], + "jwt_configuration": { + "lifetime_in_seconds": 1, + "secret_encoded": true, + "scopes": { + "key": "value" + }, + "alg": "HS256" + }, + "signing_keys": [ + { + "pkcs7": "pkcs7", + "cert": "cert", + "subject": "subject" + } + ], + "encryption_key": { + "pub": "pub", + "cert": "cert", + "subject": "subject" + }, + "sso": true, + "sso_disabled": true, + "cross_origin_authentication": true, + "cross_origin_loc": "cross_origin_loc", + "custom_login_page_on": true, + "custom_login_page": "custom_login_page", + "custom_login_page_preview": "custom_login_page_preview", + "form_template": "form_template", + "addons": { + "aws": { + "principal": "principal", + "role": "role", + "lifetime_in_seconds": 1 + }, + "azure_blob": { + "accountName": "accountName", + "storageAccessKey": "storageAccessKey", + "containerName": "containerName", + "blobName": "blobName", + "expiration": 1, + "signedIdentifier": "signedIdentifier", + "blob_read": true, + "blob_write": true, + "blob_delete": true, + "container_read": true, + "container_write": true, + "container_delete": true, + "container_list": true + }, + "azure_sb": { + "namespace": "namespace", + "sasKeyName": "sasKeyName", + "sasKey": "sasKey", + "entityPath": "entityPath", + "expiration": 1 + }, + "rms": { + "url": "url" + }, + "mscrm": { + "url": "url" + }, + "slack": { + "team": "team" + }, + "sentry": { + "org_slug": "org_slug", + "base_url": "base_url" + }, + "box": { + "key": "value" + }, + "cloudbees": { + "key": "value" + }, + "concur": { + "key": "value" + }, + "dropbox": { + "key": "value" + }, + "echosign": { + "domain": "domain" + }, + "egnyte": { + "domain": "domain" + }, + "firebase": { + "secret": "secret", + "private_key_id": "private_key_id", + "private_key": "private_key", + "client_email": "client_email", + "lifetime_in_seconds": 1 + }, + "newrelic": { + "account": "account" + }, + "office365": { + "domain": "domain", + "connection": "connection" + }, + "salesforce": { + "entity_id": "entity_id" + }, + "salesforce_api": { + "clientid": "clientid", + "principal": "principal", + "communityName": "communityName", + "community_url_section": "community_url_section" + }, + "salesforce_sandbox_api": { + "clientid": "clientid", + "principal": "principal", + "communityName": "communityName", + "community_url_section": "community_url_section" + }, + "samlp": { + "mappings": { + "key": "value" + }, + "audience": "audience", + "recipient": "recipient", + "createUpnClaim": true, + "mapUnknownClaimsAsIs": true, + "passthroughClaimsWithNoMapping": true, + "mapIdentities": true, + "signatureAlgorithm": "signatureAlgorithm", + "digestAlgorithm": "digestAlgorithm", + "issuer": "issuer", + "destination": "destination", + "lifetimeInSeconds": 1, + "signResponse": true, + "nameIdentifierFormat": "nameIdentifierFormat", + "nameIdentifierProbes": [ + "nameIdentifierProbes" + ], + "authnContextClassRef": "authnContextClassRef" + }, + "layer": { + "providerId": "providerId", + "keyId": "keyId", + "privateKey": "privateKey", + "principal": "principal", + "expiration": 1 + }, + "sap_api": { + "clientid": "clientid", + "usernameAttribute": "usernameAttribute", + "tokenEndpointUrl": "tokenEndpointUrl", + "scope": "scope", + "servicePassword": "servicePassword", + "nameIdentifierFormat": "nameIdentifierFormat" + }, + "sharepoint": { + "url": "url", + "external_url": [ + "external_url" + ] + }, + "springcm": { + "acsurl": "acsurl" + }, + "wams": { + "masterkey": "masterkey" + }, + "wsfed": { + "key": "value" + }, + "zendesk": { + "accountName": "accountName" + }, + "zoom": { + "account": "account" + }, + "sso_integration": { + "name": "name", + "version": "version" + } + }, + "token_endpoint_auth_method": "none", + "is_token_endpoint_ip_header_trusted": true, + "client_metadata": { + "key": "value" + }, + "mobile": { + "android": { + "app_package_name": "app_package_name", + "sha256_cert_fingerprints": [ + "sha256_cert_fingerprints" + ] + }, + "ios": { + "team_id": "team_id", + "app_bundle_identifier": "app_bundle_identifier" + } + }, + "initiate_login_uri": "initiate_login_uri", + "refresh_token": { + "rotation_type": "rotating", + "expiration_type": "expiring", + "leeway": 1, + "token_lifetime": 1, + "infinite_token_lifetime": true, + "idle_token_lifetime": 1, + "infinite_idle_token_lifetime": true, + "policies": [ + { + "audience": "audience", + "scope": [ + "scope" + ] + } + ] + }, + "default_organization": { + "organization_id": "organization_id", + "flows": [ + "client_credentials" + ] + }, + "organization_usage": "deny", + "organization_require_behavior": "no_prompt", + "organization_discovery_methods": [ + "email" + ], + "client_authentication_methods": { + "private_key_jwt": { + "credentials": [ + { + "id": "id" + } + ] + }, + "tls_client_auth": { + "credentials": [ + { + "id": "id" + } + ] + }, + "self_signed_tls_client_auth": { + "credentials": [ + { + "id": "id" + } + ] + } + }, + "require_pushed_authorization_requests": true, + "require_proof_of_possession": true, + "signed_request_object": { + "required": true, + "credentials": [ + { + "id": "id" + } + ] + }, + "compliance_level": "none", + "skip_non_verifiable_callback_uri_confirmation_prompt": true, + "token_exchange": { + "allow_any_profile_of_type": [ + "custom_authentication" + ] + }, + "par_request_expiry": 1, + "token_quota": { + "client_credentials": { + "enforce": true, + "per_day": 1, + "per_hour": 1 + } + }, + "express_configuration": { + "initiate_login_uri_template": "initiate_login_uri_template", + "user_attribute_profile_id": "user_attribute_profile_id", + "connection_profile_id": "connection_profile_id", + "enable_client": true, + "enable_organization": true, + "linked_clients": [ + { + "client_id": "client_id" + } + ], + "okta_oin_client_id": "okta_oin_client_id", + "admin_login_domain": "admin_login_domain", + "oin_submission_id": "oin_submission_id" + }, + "resource_server_identifier": "resource_server_identifier", + "async_approval_notification_channels": [ + "guardian-push" + ] +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testCreate_response.json b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testCreate_response.json new file mode 100644 index 000000000..700c8aa53 --- /dev/null +++ b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testCreate_response.json @@ -0,0 +1,54 @@ +{ + "id": "id", + "name": "name", + "organization": { + "show_as_button": "none", + "assign_membership_on_login": "none" + }, + "connection_name_prefix_template": "connection_name_prefix_template", + "enabled_features": [ + "scim" + ], + "strategy_overrides": { + "pingfederate": { + "enabled_features": [ + "scim" + ] + }, + "ad": { + "enabled_features": [ + "scim" + ] + }, + "adfs": { + "enabled_features": [ + "scim" + ] + }, + "waad": { + "enabled_features": [ + "scim" + ] + }, + "google-apps": { + "enabled_features": [ + "scim" + ] + }, + "okta": { + "enabled_features": [ + "scim" + ] + }, + "oidc": { + "enabled_features": [ + "scim" + ] + }, + "samlp": { + "enabled_features": [ + "scim" + ] + } + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testGet_response.json b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testGet_response.json new file mode 100644 index 000000000..700c8aa53 --- /dev/null +++ b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testGet_response.json @@ -0,0 +1,54 @@ +{ + "id": "id", + "name": "name", + "organization": { + "show_as_button": "none", + "assign_membership_on_login": "none" + }, + "connection_name_prefix_template": "connection_name_prefix_template", + "enabled_features": [ + "scim" + ], + "strategy_overrides": { + "pingfederate": { + "enabled_features": [ + "scim" + ] + }, + "ad": { + "enabled_features": [ + "scim" + ] + }, + "adfs": { + "enabled_features": [ + "scim" + ] + }, + "waad": { + "enabled_features": [ + "scim" + ] + }, + "google-apps": { + "enabled_features": [ + "scim" + ] + }, + "okta": { + "enabled_features": [ + "scim" + ] + }, + "oidc": { + "enabled_features": [ + "scim" + ] + }, + "samlp": { + "enabled_features": [ + "scim" + ] + } + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json new file mode 100644 index 000000000..700c8aa53 --- /dev/null +++ b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json @@ -0,0 +1,54 @@ +{ + "id": "id", + "name": "name", + "organization": { + "show_as_button": "none", + "assign_membership_on_login": "none" + }, + "connection_name_prefix_template": "connection_name_prefix_template", + "enabled_features": [ + "scim" + ], + "strategy_overrides": { + "pingfederate": { + "enabled_features": [ + "scim" + ] + }, + "ad": { + "enabled_features": [ + "scim" + ] + }, + "adfs": { + "enabled_features": [ + "scim" + ] + }, + "waad": { + "enabled_features": [ + "scim" + ] + }, + "google-apps": { + "enabled_features": [ + "scim" + ] + }, + "okta": { + "enabled_features": [ + "scim" + ] + }, + "oidc": { + "enabled_features": [ + "scim" + ] + }, + "samlp": { + "enabled_features": [ + "scim" + ] + } + } +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/FormsWireTest_testCreate_response.json b/src/test/resources/wire-tests/FormsWireTest_testCreate_response.json new file mode 100644 index 000000000..dbe168f50 --- /dev/null +++ b/src/test/resources/wire-tests/FormsWireTest_testCreate_response.json @@ -0,0 +1,68 @@ +{ + "id": "id", + "name": "name", + "messages": { + "errors": { + "key": "value" + }, + "custom": { + "key": "value" + } + }, + "languages": { + "primary": "primary", + "default": "default" + }, + "translations": { + "key": { + "key": "value" + } + }, + "nodes": [ + { + "id": "id", + "type": "FLOW", + "coordinates": { + "x": 1, + "y": 1 + }, + "alias": "alias", + "config": { + "flow_id": "flow_id" + } + } + ], + "start": { + "hidden_fields": [ + { + "key": "key" + } + ], + "next_node": "$ending", + "coordinates": { + "x": 1, + "y": 1 + } + }, + "ending": { + "redirection": { + "delay": 1, + "target": "target" + }, + "after_submit": { + "flow_id": "flow_id" + }, + "coordinates": { + "x": 1, + "y": 1 + }, + "resume_flow": true + }, + "style": { + "css": "css" + }, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "embedded_at": "embedded_at", + "submitted_at": "submitted_at" +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/FormsWireTest_testGet_response.json b/src/test/resources/wire-tests/FormsWireTest_testGet_response.json new file mode 100644 index 000000000..dbe168f50 --- /dev/null +++ b/src/test/resources/wire-tests/FormsWireTest_testGet_response.json @@ -0,0 +1,68 @@ +{ + "id": "id", + "name": "name", + "messages": { + "errors": { + "key": "value" + }, + "custom": { + "key": "value" + } + }, + "languages": { + "primary": "primary", + "default": "default" + }, + "translations": { + "key": { + "key": "value" + } + }, + "nodes": [ + { + "id": "id", + "type": "FLOW", + "coordinates": { + "x": 1, + "y": 1 + }, + "alias": "alias", + "config": { + "flow_id": "flow_id" + } + } + ], + "start": { + "hidden_fields": [ + { + "key": "key" + } + ], + "next_node": "$ending", + "coordinates": { + "x": 1, + "y": 1 + } + }, + "ending": { + "redirection": { + "delay": 1, + "target": "target" + }, + "after_submit": { + "flow_id": "flow_id" + }, + "coordinates": { + "x": 1, + "y": 1 + }, + "resume_flow": true + }, + "style": { + "css": "css" + }, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "embedded_at": "embedded_at", + "submitted_at": "submitted_at" +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/FormsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/FormsWireTest_testUpdate_response.json new file mode 100644 index 000000000..dbe168f50 --- /dev/null +++ b/src/test/resources/wire-tests/FormsWireTest_testUpdate_response.json @@ -0,0 +1,68 @@ +{ + "id": "id", + "name": "name", + "messages": { + "errors": { + "key": "value" + }, + "custom": { + "key": "value" + } + }, + "languages": { + "primary": "primary", + "default": "default" + }, + "translations": { + "key": { + "key": "value" + } + }, + "nodes": [ + { + "id": "id", + "type": "FLOW", + "coordinates": { + "x": 1, + "y": 1 + }, + "alias": "alias", + "config": { + "flow_id": "flow_id" + } + } + ], + "start": { + "hidden_fields": [ + { + "key": "key" + } + ], + "next_node": "$ending", + "coordinates": { + "x": 1, + "y": 1 + } + }, + "ending": { + "redirection": { + "delay": 1, + "target": "target" + }, + "after_submit": { + "flow_id": "flow_id" + }, + "coordinates": { + "x": 1, + "y": 1 + }, + "resume_flow": true + }, + "style": { + "css": "css" + }, + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "embedded_at": "embedded_at", + "submitted_at": "submitted_at" +} \ 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 new file mode 100644 index 000000000..cfc057b4c --- /dev/null +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json @@ -0,0 +1,70 @@ +{ + "id": "id", + "description": "description", + "active": true, + "priority": 1.1, + "rule": { + "action": { + "block": true, + "allow": true, + "log": true, + "redirect": true, + "redirect_uri": "redirect_uri" + }, + "match": { + "asns": [ + 1 + ], + "geo_country_codes": [ + "geo_country_codes" + ], + "geo_subdivision_codes": [ + "geo_subdivision_codes" + ], + "ipv4_cidrs": [ + "ipv4_cidrs" + ], + "ipv6_cidrs": [ + "ipv6_cidrs" + ], + "ja3_fingerprints": [ + "ja3_fingerprints" + ], + "ja4_fingerprints": [ + "ja4_fingerprints" + ], + "user_agents": [ + "user_agents" + ] + }, + "not_match": { + "asns": [ + 1 + ], + "geo_country_codes": [ + "geo_country_codes" + ], + "geo_subdivision_codes": [ + "geo_subdivision_codes" + ], + "ipv4_cidrs": [ + "ipv4_cidrs" + ], + "ipv6_cidrs": [ + "ipv6_cidrs" + ], + "ja3_fingerprints": [ + "ja3_fingerprints" + ], + "ja4_fingerprints": [ + "ja4_fingerprints" + ], + "user_agents": [ + "user_agents" + ] + }, + "scope": "management" + }, + "created_at": "created_at", + "updated_at": "updated_at" +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json new file mode 100644 index 000000000..cfc057b4c --- /dev/null +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json @@ -0,0 +1,70 @@ +{ + "id": "id", + "description": "description", + "active": true, + "priority": 1.1, + "rule": { + "action": { + "block": true, + "allow": true, + "log": true, + "redirect": true, + "redirect_uri": "redirect_uri" + }, + "match": { + "asns": [ + 1 + ], + "geo_country_codes": [ + "geo_country_codes" + ], + "geo_subdivision_codes": [ + "geo_subdivision_codes" + ], + "ipv4_cidrs": [ + "ipv4_cidrs" + ], + "ipv6_cidrs": [ + "ipv6_cidrs" + ], + "ja3_fingerprints": [ + "ja3_fingerprints" + ], + "ja4_fingerprints": [ + "ja4_fingerprints" + ], + "user_agents": [ + "user_agents" + ] + }, + "not_match": { + "asns": [ + 1 + ], + "geo_country_codes": [ + "geo_country_codes" + ], + "geo_subdivision_codes": [ + "geo_subdivision_codes" + ], + "ipv4_cidrs": [ + "ipv4_cidrs" + ], + "ipv6_cidrs": [ + "ipv6_cidrs" + ], + "ja3_fingerprints": [ + "ja3_fingerprints" + ], + "ja4_fingerprints": [ + "ja4_fingerprints" + ], + "user_agents": [ + "user_agents" + ] + }, + "scope": "management" + }, + "created_at": "created_at", + "updated_at": "updated_at" +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json new file mode 100644 index 000000000..cfc057b4c --- /dev/null +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json @@ -0,0 +1,70 @@ +{ + "id": "id", + "description": "description", + "active": true, + "priority": 1.1, + "rule": { + "action": { + "block": true, + "allow": true, + "log": true, + "redirect": true, + "redirect_uri": "redirect_uri" + }, + "match": { + "asns": [ + 1 + ], + "geo_country_codes": [ + "geo_country_codes" + ], + "geo_subdivision_codes": [ + "geo_subdivision_codes" + ], + "ipv4_cidrs": [ + "ipv4_cidrs" + ], + "ipv6_cidrs": [ + "ipv6_cidrs" + ], + "ja3_fingerprints": [ + "ja3_fingerprints" + ], + "ja4_fingerprints": [ + "ja4_fingerprints" + ], + "user_agents": [ + "user_agents" + ] + }, + "not_match": { + "asns": [ + 1 + ], + "geo_country_codes": [ + "geo_country_codes" + ], + "geo_subdivision_codes": [ + "geo_subdivision_codes" + ], + "ipv4_cidrs": [ + "ipv4_cidrs" + ], + "ipv6_cidrs": [ + "ipv6_cidrs" + ], + "ja3_fingerprints": [ + "ja3_fingerprints" + ], + "ja4_fingerprints": [ + "ja4_fingerprints" + ], + "user_agents": [ + "user_agents" + ] + }, + "scope": "management" + }, + "created_at": "created_at", + "updated_at": "updated_at" +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json b/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json new file mode 100644 index 000000000..6426dafda --- /dev/null +++ b/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json @@ -0,0 +1,103 @@ +{ + "change_password": { + "enabled": true, + "html": "html" + }, + "guardian_mfa_page": { + "enabled": true, + "html": "html" + }, + "default_audience": "default_audience", + "default_directory": "default_directory", + "error_page": { + "html": "html", + "show_log_link": true, + "url": "url" + }, + "device_flow": { + "charset": "base20", + "mask": "mask" + }, + "default_token_quota": { + "clients": { + "client_credentials": {} + }, + "organizations": { + "client_credentials": {} + } + }, + "flags": { + "change_pwd_flow_v1": true, + "enable_apis_section": true, + "disable_impersonation": true, + "enable_client_connections": true, + "enable_pipeline2": true, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "allow_legacy_tokeninfo_endpoint": true, + "enable_legacy_profile": true, + "enable_idtoken_api2": true, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "allow_changing_enable_sso": true, + "disable_clickjack_protection_headers": true, + "no_disclose_enterprise_connections": true, + "enforce_client_authentication_on_passwordless_start": true, + "enable_adfs_waad_email_verification": true, + "revoke_refresh_token_grant": true, + "dashboard_log_streams_next": true, + "dashboard_insights_view": true, + "disable_fields_map_fix": true, + "mfa_show_factor_list_on_enrollment": true, + "remove_alg_from_jwks": true, + "improved_signup_bot_detection_in_classic": true, + "genai_trial": true, + "enable_dynamic_client_registration": true, + "disable_management_api_sms_obfuscation": true, + "trust_azure_adfs_email_verified_connection_property": true, + "custom_domains_provisioning": true + }, + "friendly_name": "friendly_name", + "picture_url": "picture_url", + "support_email": "support_email", + "support_url": "support_url", + "allowed_logout_urls": [ + "allowed_logout_urls" + ], + "session_lifetime": 1.1, + "idle_session_lifetime": 1.1, + "ephemeral_session_lifetime": 1.1, + "idle_ephemeral_session_lifetime": 1.1, + "sandbox_version": "sandbox_version", + "legacy_sandbox_version": "legacy_sandbox_version", + "sandbox_versions_available": [ + "sandbox_versions_available" + ], + "default_redirection_uri": "default_redirection_uri", + "enabled_locales": [ + "am" + ], + "session_cookie": { + "mode": "persistent" + }, + "sessions": { + "oidc_logout_prompt_enabled": true + }, + "oidc_logout": { + "rp_logout_end_session_endpoint_discovery": true + }, + "allow_organization_name_in_authentication_api": true, + "customize_mfa_in_postlogin_action": true, + "acr_values_supported": [ + "acr_values_supported" + ], + "mtls": { + "enable_endpoint_aliases": true + }, + "pushed_authorization_requests_supported": true, + "authorization_response_iss_parameter_supported": true, + "skip_non_verifiable_callback_uri_confirmation_prompt": true, + "resource_parameter_profile": "audience", + "phone_consolidated_experience": true, + "enable_ai_guide": true +} \ No newline at end of file diff --git a/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json new file mode 100644 index 000000000..6426dafda --- /dev/null +++ b/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json @@ -0,0 +1,103 @@ +{ + "change_password": { + "enabled": true, + "html": "html" + }, + "guardian_mfa_page": { + "enabled": true, + "html": "html" + }, + "default_audience": "default_audience", + "default_directory": "default_directory", + "error_page": { + "html": "html", + "show_log_link": true, + "url": "url" + }, + "device_flow": { + "charset": "base20", + "mask": "mask" + }, + "default_token_quota": { + "clients": { + "client_credentials": {} + }, + "organizations": { + "client_credentials": {} + } + }, + "flags": { + "change_pwd_flow_v1": true, + "enable_apis_section": true, + "disable_impersonation": true, + "enable_client_connections": true, + "enable_pipeline2": true, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "allow_legacy_tokeninfo_endpoint": true, + "enable_legacy_profile": true, + "enable_idtoken_api2": true, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "allow_changing_enable_sso": true, + "disable_clickjack_protection_headers": true, + "no_disclose_enterprise_connections": true, + "enforce_client_authentication_on_passwordless_start": true, + "enable_adfs_waad_email_verification": true, + "revoke_refresh_token_grant": true, + "dashboard_log_streams_next": true, + "dashboard_insights_view": true, + "disable_fields_map_fix": true, + "mfa_show_factor_list_on_enrollment": true, + "remove_alg_from_jwks": true, + "improved_signup_bot_detection_in_classic": true, + "genai_trial": true, + "enable_dynamic_client_registration": true, + "disable_management_api_sms_obfuscation": true, + "trust_azure_adfs_email_verified_connection_property": true, + "custom_domains_provisioning": true + }, + "friendly_name": "friendly_name", + "picture_url": "picture_url", + "support_email": "support_email", + "support_url": "support_url", + "allowed_logout_urls": [ + "allowed_logout_urls" + ], + "session_lifetime": 1.1, + "idle_session_lifetime": 1.1, + "ephemeral_session_lifetime": 1.1, + "idle_ephemeral_session_lifetime": 1.1, + "sandbox_version": "sandbox_version", + "legacy_sandbox_version": "legacy_sandbox_version", + "sandbox_versions_available": [ + "sandbox_versions_available" + ], + "default_redirection_uri": "default_redirection_uri", + "enabled_locales": [ + "am" + ], + "session_cookie": { + "mode": "persistent" + }, + "sessions": { + "oidc_logout_prompt_enabled": true + }, + "oidc_logout": { + "rp_logout_end_session_endpoint_discovery": true + }, + "allow_organization_name_in_authentication_api": true, + "customize_mfa_in_postlogin_action": true, + "acr_values_supported": [ + "acr_values_supported" + ], + "mtls": { + "enable_endpoint_aliases": true + }, + "pushed_authorization_requests_supported": true, + "authorization_response_iss_parameter_supported": true, + "skip_non_verifiable_callback_uri_confirmation_prompt": true, + "resource_parameter_profile": "audience", + "phone_consolidated_experience": true, + "enable_ai_guide": true +} \ No newline at end of file