mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Clear account tokens before refresh (#18452)
* clear account tokens on refresh * update refresh button after refresh
This commit is contained in:
@@ -172,6 +172,11 @@ export class AzureAccountProvider implements azdata.AccountProvider, vscode.Disp
|
|||||||
}
|
}
|
||||||
|
|
||||||
refresh(account: AzureAccount): Thenable<AzureAccount | azdata.PromptFailedResult> {
|
refresh(account: AzureAccount): Thenable<AzureAccount | azdata.PromptFailedResult> {
|
||||||
|
return this._refresh(account);
|
||||||
|
}
|
||||||
|
|
||||||
|
private async _refresh(account: AzureAccount): Promise<AzureAccount | azdata.PromptFailedResult> {
|
||||||
|
await this._clear(account.key);
|
||||||
return this.prompt();
|
return this.prompt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -418,6 +418,7 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
|||||||
if (account) {
|
if (account) {
|
||||||
await this._accountManagementService.refreshAccount(account);
|
await this._accountManagementService.refreshAccount(account);
|
||||||
await this.fillInAzureAccountOptions();
|
await this.fillInAzureAccountOptions();
|
||||||
|
this.updateRefreshCredentialsLink();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user