diff --git a/package-toolkit/config/src/main/resources/Config.pkl b/package-toolkit/config/src/main/resources/Config.pkl index 20e63b6160..b83c26a275 100644 --- a/package-toolkit/config/src/main/resources/Config.pkl +++ b/package-toolkit/config/src/main/resources/Config.pkl @@ -458,6 +458,9 @@ class Widget { /// SQL query to run to determine the widget's selectable content. query: String? + + /// Whether to prevent the Test Authentication button from showing (true) or show it (false) for credential inputs. + isTestAuthenticationDisabled: Boolean? } /// Widget that allows you to enter arbitrary text into a single-line text input field, @@ -965,10 +968,14 @@ class CredentialInput extends UIElement { /// Type of credential to be nested within the widget. hidden credType: String + /// Whether to show the button for testing authentication. (Default: true, show it) + hidden allowTestAuthentication: Boolean = true + /// (Generated) Internal configuration for the UI's rendering. fixed ui { widget = "credential" credentialType = credType + isTestAuthenticationDisabled = !allowTestAuthentication } } diff --git a/samples/packages/admin-export/src/main/resources/package.pkl b/samples/packages/admin-export/src/main/resources/package.pkl index 4d85cd2eb2..03fb39b382 100644 --- a/samples/packages/admin-export/src/main/resources/package.pkl +++ b/samples/packages/admin-export/src/main/resources/package.pkl @@ -115,6 +115,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Enter details for the object store to which to upload the exported file." + allowTestAuthentication = false } } } diff --git a/samples/packages/adoption-export/src/main/resources/package.pkl b/samples/packages/adoption-export/src/main/resources/package.pkl index ca7d83c85e..025502d339 100644 --- a/samples/packages/adoption-export/src/main/resources/package.pkl +++ b/samples/packages/adoption-export/src/main/resources/package.pkl @@ -274,6 +274,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Enter details for the object store to which to upload the exported file." + allowTestAuthentication = false } } } diff --git a/samples/packages/asset-export-basic/src/main/resources/package.pkl b/samples/packages/asset-export-basic/src/main/resources/package.pkl index 2b032cc7ff..d2eb5d6488 100644 --- a/samples/packages/asset-export-basic/src/main/resources/package.pkl +++ b/samples/packages/asset-export-basic/src/main/resources/package.pkl @@ -148,6 +148,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Enter details for the object store to which to upload the exported file(s)." + allowTestAuthentication = false } } } diff --git a/samples/packages/asset-import/src/main/resources/package.pkl b/samples/packages/asset-import/src/main/resources/package.pkl index a05a92ed0c..c224ceaefa 100644 --- a/samples/packages/asset-import/src/main/resources/package.pkl +++ b/samples/packages/asset-import/src/main/resources/package.pkl @@ -49,6 +49,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Enter details for the object store from which to retrieve the file(s) containing metadata to be imported." + allowTestAuthentication = false } } } diff --git a/samples/packages/cube-assets-builder/src/main/resources/package.pkl b/samples/packages/cube-assets-builder/src/main/resources/package.pkl index 42146b6226..1981d87c08 100644 --- a/samples/packages/cube-assets-builder/src/main/resources/package.pkl +++ b/samples/packages/cube-assets-builder/src/main/resources/package.pkl @@ -72,6 +72,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Enter details for the object store from which to retrieve the file(s) containing cube assets to be imported." + allowTestAuthentication = false } } } diff --git a/samples/packages/lineage-builder/src/main/resources/package.pkl b/samples/packages/lineage-builder/src/main/resources/package.pkl index 9d210272d7..0b28e83580 100644 --- a/samples/packages/lineage-builder/src/main/resources/package.pkl +++ b/samples/packages/lineage-builder/src/main/resources/package.pkl @@ -72,6 +72,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Enter details for the object store from which to retrieve the file(s) containing lineage details to be imported." + allowTestAuthentication = false } } } diff --git a/samples/packages/metadata-impact-report/src/main/resources/package.pkl b/samples/packages/metadata-impact-report/src/main/resources/package.pkl index bb6ec7fa56..2c0dbec569 100644 --- a/samples/packages/metadata-impact-report/src/main/resources/package.pkl +++ b/samples/packages/metadata-impact-report/src/main/resources/package.pkl @@ -132,6 +132,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Enter details for the object store to which to upload the exported file." + allowTestAuthentication = false } } } diff --git a/samples/packages/openapi-spec-loader/src/main/resources/package.pkl b/samples/packages/openapi-spec-loader/src/main/resources/package.pkl index db020218d9..1b936a54cc 100644 --- a/samples/packages/openapi-spec-loader/src/main/resources/package.pkl +++ b/samples/packages/openapi-spec-loader/src/main/resources/package.pkl @@ -83,6 +83,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Enter details for the object store from which to retrieve the OpenAPI spec containing metadata to be imported." + allowTestAuthentication = false } } } diff --git a/samples/packages/relational-assets-builder/src/main/resources/package.pkl b/samples/packages/relational-assets-builder/src/main/resources/package.pkl index e171508cbd..7f80679546 100644 --- a/samples/packages/relational-assets-builder/src/main/resources/package.pkl +++ b/samples/packages/relational-assets-builder/src/main/resources/package.pkl @@ -70,6 +70,7 @@ uiConfig { required = true credType = "csa-connectors-objectstore" helpText = "Select how you want to provide the file containing relational assets to be imported." + allowTestAuthentication = false } } }