Get Application Path from command options (#1916)

This commit is contained in:
Cheena Malhotra
2023-03-08 14:58:30 -08:00
committed by GitHub
parent 19b7a180b5
commit a40b7d3581
4 changed files with 24 additions and 5 deletions

View File

@@ -1076,7 +1076,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
if (commandOptions != null && commandOptions.EnableSqlAuthenticationProvider)
{
// Register SqlAuthenticationProvider with SqlConnection for AAD Interactive (MFA) authentication.
var provider = new AuthenticationProvider(commandOptions.ApplicationName);
var provider = new AuthenticationProvider(commandOptions.ApplicationName, commandOptions.ApplicationPath);
SqlAuthenticationProvider.SetProvider(SqlAuthenticationMethod.ActiveDirectoryInteractive, provider);
this.EnableSqlAuthenticationProvider = true;