mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-11 18:48:33 -05:00
Cache access tokens in local cache file to prevent MSAL throttling (#22763)
This commit is contained in:
@@ -361,8 +361,8 @@ export class AccountManagementService implements IAccountManagementService {
|
||||
* @return Promise to return the security token
|
||||
*/
|
||||
public getAccountSecurityToken(account: azdata.Account, tenant: string, resource: azdata.AzureResource): Promise<azdata.accounts.AccountSecurityToken | undefined> {
|
||||
return this.doWithProvider(account.key.providerId, provider => {
|
||||
return Promise.resolve(provider.provider.getAccountSecurityToken(account, tenant, resource));
|
||||
return this.doWithProvider(account.key.providerId, async provider => {
|
||||
return await provider.provider.getAccountSecurityToken(account, tenant, resource);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user