mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Update commands and param names (#14658)
This commit is contained in:
@@ -107,14 +107,14 @@ export class AzureAccountProvider implements azdata.AccountProvider, vscode.Disp
|
|||||||
return this._getSecurityToken(account, resource);
|
return this._getSecurityToken(account, resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
getAccountSecurityToken(account: azdata.Account, tenant: string, resource: azdata.AzureResource): Thenable<Token | undefined> {
|
getAccountSecurityToken(account: azdata.Account, tenantId: string, resource: azdata.AzureResource): Thenable<Token | undefined> {
|
||||||
return this._getAccountSecurityToken(account, tenant, resource);
|
return this._getAccountSecurityToken(account, tenantId, resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _getAccountSecurityToken(account: azdata.Account, tenant: string, resource: azdata.AzureResource): Promise<Token | undefined> {
|
private async _getAccountSecurityToken(account: azdata.Account, tenantId: string, resource: azdata.AzureResource): Promise<Token | undefined> {
|
||||||
await this.initCompletePromise;
|
await this.initCompletePromise;
|
||||||
const azureAuth = this.getAuthMethod(undefined);
|
const azureAuth = this.getAuthMethod(undefined);
|
||||||
return azureAuth?.getAccountSecurityToken(account, tenant, resource);
|
return azureAuth?.getAccountSecurityToken(account, tenantId, resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _getSecurityToken(account: azdata.Account, resource: azdata.AzureResource): Promise<MultiTenantTokenResponse | undefined> {
|
private async _getSecurityToken(account: azdata.Account, resource: azdata.AzureResource): Promise<MultiTenantTokenResponse | undefined> {
|
||||||
|
|||||||
12
src/sql/azdata.d.ts
vendored
12
src/sql/azdata.d.ts
vendored
@@ -2133,7 +2133,8 @@ declare module 'azdata' {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a security token by asking the account's provider
|
* Generates a security token by asking the account's provider
|
||||||
* @param account Account to generate security token for (defaults to
|
* @param account Account to generate security token for
|
||||||
|
* @param resource Type of resource to get the security token for (defaults to
|
||||||
* AzureResource.ResourceManagement if not given)
|
* AzureResource.ResourceManagement if not given)
|
||||||
* @return Promise to return the security token
|
* @return Promise to return the security token
|
||||||
* @deprecated use getAccountSecurityToken
|
* @deprecated use getAccountSecurityToken
|
||||||
@@ -2142,11 +2143,12 @@ declare module 'azdata' {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a security token by asking the account's provider
|
* Generates a security token by asking the account's provider
|
||||||
* @param account
|
* @param account The account to retrieve the security token for
|
||||||
* @param tenant
|
* @param tenantId The ID of the tenant associated with this account
|
||||||
* @param resource
|
* @param resource Type of resource to get the security token for (defaults to
|
||||||
|
* AzureResource.ResourceManagement if not given)
|
||||||
*/
|
*/
|
||||||
export function getAccountSecurityToken(account: Account, tenant: string, resource: AzureResource): Thenable<{ token: string, tokenType?: string } | undefined>;
|
export function getAccountSecurityToken(account: Account, tenantId: string, resource: AzureResource): Thenable<{ token: string, tokenType?: string } | undefined>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An [event](#Event) which fires when the accounts have changed.
|
* An [event](#Event) which fires when the accounts have changed.
|
||||||
|
|||||||
Reference in New Issue
Block a user