Add token expiration handling for AzureMFA auth (#16936)

* refresh azure account token if it's expired before sending query/list requests

* fix several connection checks && add more logging

* fix async UI glitch during token refreshing

* cleanup

* minor fix

* add test for refreshAzureAccountTokenIfNecessary

* address comments

* comments

* comments

* comments

* error handling
This commit is contained in:
Hai Cao
2021-09-02 17:24:45 -07:00
committed by GitHub
parent 73c20345e9
commit 0bc2a50d78
9 changed files with 171 additions and 4 deletions

View File

@@ -309,4 +309,8 @@ export class TestConnectionManagementService implements IConnectionManagementSer
getConnection(uri: string): ConnectionProfile {
return undefined!;
}
refreshAzureAccountTokenIfNecessary(uri: string): Promise<boolean> {
return undefined;
}
}