From 2ba9367f651dc2bc36cba5036e6d78aeb3531e36 Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Tue, 28 Jan 2020 13:01:08 -0800 Subject: [PATCH] Revert "Support ActiveDirectoryPassword authentication (#899)" This reverts commit b786a14c030ceff62c98d7e12ba1f501bc76411b. --- .../Connection/ConnectionServiceCore.cs | 3 --- .../Connection/ConnectionService.cs | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/Microsoft.SqlTools.CoreServices/Connection/ConnectionServiceCore.cs b/src/Microsoft.SqlTools.CoreServices/Connection/ConnectionServiceCore.cs index 8b4aba4f41..4bbe6ae79d 100644 --- a/src/Microsoft.SqlTools.CoreServices/Connection/ConnectionServiceCore.cs +++ b/src/Microsoft.SqlTools.CoreServices/Connection/ConnectionServiceCore.cs @@ -1023,9 +1023,6 @@ public static SqlConnectionStringBuilder CreateConnectionStringBuilder(Connectio break; case "SqlLogin": break; - case "ActiveDirectoryPassword": - connectionBuilder.Authentication = SqlAuthenticationMethod.ActiveDirectoryPassword; - break; default: throw new ArgumentException(SR.ConnectionServiceConnStringInvalidAuthType(connectionDetails.AuthenticationType)); } diff --git a/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs b/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs index 2c95003877..ad25aca5d3 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs @@ -1135,9 +1135,6 @@ public static SqlConnectionStringBuilder CreateConnectionStringBuilder(Connectio connectionBuilder.UserID = ""; connectionBuilder.Password = ""; break; - case "ActiveDirectoryPassword": - connectionBuilder.Authentication = SqlAuthenticationMethod.ActiveDirectoryPassword; - break; default: throw new ArgumentException(SR.ConnectionServiceConnStringInvalidAuthType(connectionDetails.AuthenticationType)); }