mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
replaced the set of the tenantId (#17223)
Co-authored-by: Patrone Manuel <manuel.patrone@stud.bbbaden.ch>
This commit is contained in:
@@ -686,12 +686,12 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.authType === AuthenticationType.AzureMFA || this.authType === AuthenticationType.AzureMFAAndUser) {
|
if (this.authType === AuthenticationType.AzureMFA || this.authType === AuthenticationType.AzureMFAAndUser) {
|
||||||
|
let tenantId = connectionInfo.azureTenantId;
|
||||||
this.fillInAzureAccountOptions().then(async () => {
|
this.fillInAzureAccountOptions().then(async () => {
|
||||||
let accountName = (this.authType === AuthenticationType.AzureMFA)
|
let accountName = (this.authType === AuthenticationType.AzureMFA)
|
||||||
? connectionInfo.azureAccount : connectionInfo.userName;
|
? connectionInfo.azureAccount : connectionInfo.userName;
|
||||||
this._azureAccountDropdown.selectWithOptionName(this.getModelValue(accountName));
|
this._azureAccountDropdown.selectWithOptionName(this.getModelValue(accountName));
|
||||||
await this.onAzureAccountSelected();
|
await this.onAzureAccountSelected();
|
||||||
let tenantId = connectionInfo.azureTenantId;
|
|
||||||
let account = this._azureAccountList.find(account => account.key.accountId === this._azureAccountDropdown.value);
|
let account = this._azureAccountList.find(account => account.key.accountId === this._azureAccountDropdown.value);
|
||||||
if (account && account.properties.tenants.length > 1) {
|
if (account && account.properties.tenants.length > 1) {
|
||||||
let tenant = account.properties.tenants.find(tenant => tenant.id === tenantId);
|
let tenant = account.properties.tenants.find(tenant => tenant.id === tenantId);
|
||||||
|
|||||||
Reference in New Issue
Block a user