Fix azure account tree subscription check (#16822)

* Fix azure account tree subscription check

* comment
This commit is contained in:
Charles Gagnon
2021-08-18 14:35:16 -07:00
committed by GitHub
parent df49d67f7d
commit ea6e03f826
14 changed files with 60 additions and 18 deletions

16
src/sql/azdata.d.ts vendored
View File

@@ -2175,6 +2175,20 @@ declare module 'azdata' {
*/
export function getSecurityToken(account: Account, resource?: AzureResource): Thenable<{ [key: string]: any }>;
/**
* The token used to authenticate an account.
*/
export interface AccountSecurityToken {
/**
* The token to use
*/
token: string,
/**
* What type of token this is (such as Bearer)
*/
tokenType?: string | undefined
}
/**
* Generates a security token by asking the account's provider
* @param account The account to retrieve the security token for
@@ -2182,7 +2196,7 @@ declare module 'azdata' {
* @param resource Type of resource to get the security token for (defaults to
* AzureResource.ResourceManagement if not given)
*/
export function getAccountSecurityToken(account: Account, tenantId: string, resource: AzureResource): Thenable<{ token: string, tokenType?: string | undefined } | undefined>;
export function getAccountSecurityToken(account: Account, tenantId: string, resource: AzureResource): Thenable<AccountSecurityToken | undefined>;
/**
* An [event](#Event) which fires when the accounts have changed.