UNPKG

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