mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-31 17:20:28 -04:00
Notify STS when encryption keys are updated in azurecore (#22384)
This commit is contained in:
10
extensions/azurecore/src/azurecore.d.ts
vendored
10
extensions/azurecore/src/azurecore.d.ts
vendored
@@ -5,7 +5,7 @@
|
||||
|
||||
declare module 'azurecore' {
|
||||
import * as azdata from 'azdata';
|
||||
import { TreeDataProvider } from 'vscode';
|
||||
import * as vscode from 'vscode';
|
||||
import { BlobItem } from '@azure/storage-blob';
|
||||
|
||||
/**
|
||||
@@ -314,8 +314,13 @@ declare module 'azurecore' {
|
||||
getRegionDisplayName(region?: string): string;
|
||||
getProviderMetadataForAccount(account: AzureAccount): AzureAccountProviderMetadata;
|
||||
provideResources(): azureResource.IAzureResourceProvider[];
|
||||
|
||||
runGraphQuery<T extends azureResource.AzureGraphResource>(account: AzureAccount, subscriptions: azureResource.AzureResourceSubscription[], ignoreErrors: boolean, query: string): Promise<ResourceQueryResult<T>>;
|
||||
/**
|
||||
* Event emitted when MSAL cache encryption keys are updated in credential store.
|
||||
* Returns encryption keys used for encryption/decryption of MSAL cache that can be used
|
||||
* by connection providers to read/write to the same access token cache for stable connectivity.
|
||||
*/
|
||||
onEncryptionKeysUpdated: vscode.Event<CacheEncryptionKeys>;
|
||||
}
|
||||
|
||||
export type GetSubscriptionsResult = { subscriptions: azureResource.AzureResourceSubscription[], errors: Error[] };
|
||||
@@ -333,6 +338,7 @@ declare module 'azurecore' {
|
||||
export type AzureRestResponse = { response: any, errors: Error[] };
|
||||
export type GetBlobsResult = { blobs: azureResource.Blob[], errors: Error[] };
|
||||
export type GetStorageAccountAccessKeyResult = { keyName1: string, keyName2: string, errors: Error[] };
|
||||
export type CacheEncryptionKeys = { key: string; iv: string; }
|
||||
|
||||
export namespace azureResource {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user