UNPKG

850 BTypeScriptView Raw
1import { ServiceClientCredentials } from "./serviceClientCredentials";
2import { WebResource } from "../webResource";
3import { TokenCredential } from "@azure/core-auth";
4import { TokenResponse } from "./tokenResponse";
5/**
6 * This class provides a simple extension to use {@link TokenCredential} from `@azure/identity` library to
7 * use with legacy Azure SDKs that accept {@link ServiceClientCredentials} family of credentials for authentication.
8 */
9export declare class AzureIdentityCredentialAdapter implements ServiceClientCredentials {
10 private azureTokenCredential;
11 private scopes;
12 constructor(azureTokenCredential: TokenCredential, scopes?: string | string[]);
13 getToken(): Promise<TokenResponse>;
14 signRequest(webResource: WebResource): Promise<WebResource>;
15}
16//# sourceMappingURL=azureIdentityTokenCredentialAdapter.d.ts.map
\No newline at end of file