From 3ddc3197368c865c29b9bda3d50a0e13623e189a Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Tue, 8 Feb 2022 16:17:07 -0800 Subject: [PATCH] enable AAD auth for table designer (#18248) --- extensions/mssql/config.json | 2 +- extensions/mssql/src/tableDesigner/tableDesigner.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/mssql/config.json b/extensions/mssql/config.json index 0700ec940d..6cce621ab9 100644 --- a/extensions/mssql/config.json +++ b/extensions/mssql/config.json @@ -1,6 +1,6 @@ { "downloadUrl": "https://github.com/Microsoft/sqltoolsservice/releases/download/v{#version#}/microsoft.sqltools.servicelayer-{#fileName#}", - "version": "3.0.0-release.195", + "version": "3.0.0-release.198", "downloadFileNames": { "Windows_86": "win-x86-net6.0.zip", "Windows_64": "win-x64-net6.0.zip", diff --git a/extensions/mssql/src/tableDesigner/tableDesigner.ts b/extensions/mssql/src/tableDesigner/tableDesigner.ts index c2dd6c24f4..c21eb02f23 100644 --- a/extensions/mssql/src/tableDesigner/tableDesigner.ts +++ b/extensions/mssql/src/tableDesigner/tableDesigner.ts @@ -19,7 +19,8 @@ export function registerTableDesignerCommands(appContext: AppContext) { database: context.connectionProfile.databaseName, isNewTable: true, id: generateUuid(), - connectionString: connectionString + connectionString: connectionString, + accessToken: context.connectionProfile.options.azureAccountToken }, telemetryInfo); })); @@ -37,7 +38,8 @@ export function registerTableDesignerCommands(appContext: AppContext) { name: name, schema: schema, id: `${sqlProviderName}|${server}|${database}|${schema}|${name}`, - connectionString: connectionString + connectionString: connectionString, + accessToken: context.connectionProfile.options.azureAccountToken }, telemetryInfo); })); }