From f220f6486a2b8b225c6c2b8e6d7478155b3710c4 Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Fri, 8 May 2020 16:46:18 -0700 Subject: [PATCH] Stops caching the AAD token (#10251) --- .../services/connection/browser/connectionManagementService.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/sql/workbench/services/connection/browser/connectionManagementService.ts b/src/sql/workbench/services/connection/browser/connectionManagementService.ts index 79382055f6..ec02bc965d 100644 --- a/src/sql/workbench/services/connection/browser/connectionManagementService.ts +++ b/src/sql/workbench/services/connection/browser/connectionManagementService.ts @@ -807,9 +807,6 @@ export class ConnectionManagementService extends Disposable implements IConnecti connection.options['azureAccountToken'] = undefined; return true; } - if (connection.options['azureAccountToken']) { - return true; - } let azureResource = this.getAzureResourceForConnection(connection); let accounts = (await this._accountManagementService.getAccounts()).filter(a => a.key.providerId.startsWith('azure')); if (accounts && accounts.length > 0) {