Skip to content

Commit

Permalink
Fixes the azure auth for postgresql (#10662) (#10753)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Omidi authored Jun 8, 2020
1 parent 1c0a9a1 commit 9962363
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
const accounts = await this._accountManagementService.getAccounts();
const azureAccounts = accounts.filter(a => a.key.providerId.startsWith('azure'));
if (azureAccounts && azureAccounts.length > 0) {
let accountName = (connection.authenticationType === Constants.azureMFA) ? connection.azureAccount : connection.userName;
let accountName = (connection.authenticationType === Constants.azureMFA || connection.authenticationType === Constants.azureMFAAndUser) ? connection.azureAccount : connection.userName;
let account = find(azureAccounts, account => account.key.accountId === accountName);
if (account) {
this._logService.debug(`Getting security token for Azure account ${account.key.accountId}`);
Expand Down

0 comments on commit 9962363

Please sign in to comment.