From 0d307fc6293e027baff510a218b7ec996cbdc50d Mon Sep 17 00:00:00 2001 From: eric_wang Date: Thu, 3 Dec 2020 05:38:29 -0800 Subject: [PATCH] Additional OAuth changes (#26) Remove instanceUrl from attr list. Reformat the place showing custom domain. * Modify oauthConig. * Remove instanceUrl from requiredAttrlist, move custom domain field to Adv tab. * Remove instanceUrl from requiredAttrlist, move custom domain field to Adv tab. * Update connection-fields.xml * Update connection-fields.xml * Update connection-fields.xml * Update connection-builder.js Change auth mode name for backward compatibility. Co-authored-by: Eric Wang --- tableau-databricks/connection-builder.js | 2 +- tableau-databricks/connection-fields.xml | 28 +++++----------------- tableau-databricks/connection-resolver.tdr | 1 - 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/tableau-databricks/connection-builder.js b/tableau-databricks/connection-builder.js index ac24797..a0bd6c3 100644 --- a/tableau-databricks/connection-builder.js +++ b/tableau-databricks/connection-builder.js @@ -29,7 +29,7 @@ limitations under the License. var authenticationMode = attr[connectionHelper.attributeAuthentication]; switch (authenticationMode) { case "auth-user-pass": - case "username-password": + case "Username and Password": params["AUTHMECH"] = 3; params["UID"] = attr[connectionHelper.attributeUsername]; params["PWD"] = attr[connectionHelper.attributePassword]; diff --git a/tableau-databricks/connection-fields.xml b/tableau-databricks/connection-fields.xml index d946389..26a8f0e 100644 --- a/tableau-databricks/connection-fields.xml +++ b/tableau-databricks/connection-fields.xml @@ -32,30 +32,14 @@ limitations under the License. --> - + - - - - - - - - - - - - - - - - - - + + @@ -111,4 +95,4 @@ limitations under the License. --> - \ No newline at end of file + diff --git a/tableau-databricks/connection-resolver.tdr b/tableau-databricks/connection-resolver.tdr index 531ba8b..f43fd32 100644 --- a/tableau-databricks/connection-resolver.tdr +++ b/tableau-databricks/connection-resolver.tdr @@ -33,7 +33,6 @@ limitations under the License. username password authentication-type - instanceurl odbc-connect-string-extras