Stops caching the AAD token (#10251)

This commit is contained in:
Amir Omidi
2020-05-08 16:46:18 -07:00
committed by GitHub
parent f94a9d0d58
commit f220f6486a

View File

@@ -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) {