Support ActiveDirectoryPassword authentication (#899)

This commit is contained in:
Amir Omidi
2019-12-13 16:46:25 -08:00
committed by GitHub
parent 64d42c6202
commit b786a14c03
2 changed files with 6 additions and 0 deletions

View File

@@ -1135,6 +1135,9 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
connectionBuilder.UserID = "";
connectionBuilder.Password = "";
break;
case "ActiveDirectoryPassword":
connectionBuilder.Authentication = SqlAuthenticationMethod.ActiveDirectoryPassword;
break;
default:
throw new ArgumentException(SR.ConnectionServiceConnStringInvalidAuthType(connectionDetails.AuthenticationType));
}