mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-14 18:46:34 -05:00
Fix azure account tree subscription check (#16822)
* Fix azure account tree subscription check * comment
This commit is contained in:
16
src/sql/azdata.d.ts
vendored
16
src/sql/azdata.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user