mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
Support ActiveDirectoryPassword authentication (#899)
This commit is contained in:
@@ -1023,6 +1023,9 @@ namespace Microsoft.SqlTools.CoreServices.Connection
|
|||||||
break;
|
break;
|
||||||
case "SqlLogin":
|
case "SqlLogin":
|
||||||
break;
|
break;
|
||||||
|
case "ActiveDirectoryPassword":
|
||||||
|
connectionBuilder.Authentication = SqlAuthenticationMethod.ActiveDirectoryPassword;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ArgumentException(SR.ConnectionServiceConnStringInvalidAuthType(connectionDetails.AuthenticationType));
|
throw new ArgumentException(SR.ConnectionServiceConnStringInvalidAuthType(connectionDetails.AuthenticationType));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1135,6 +1135,9 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
|
|||||||
connectionBuilder.UserID = "";
|
connectionBuilder.UserID = "";
|
||||||
connectionBuilder.Password = "";
|
connectionBuilder.Password = "";
|
||||||
break;
|
break;
|
||||||
|
case "ActiveDirectoryPassword":
|
||||||
|
connectionBuilder.Authentication = SqlAuthenticationMethod.ActiveDirectoryPassword;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ArgumentException(SR.ConnectionServiceConnStringInvalidAuthType(connectionDetails.AuthenticationType));
|
throw new ArgumentException(SR.ConnectionServiceConnStringInvalidAuthType(connectionDetails.AuthenticationType));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user