aimpress-chatbot/node_modules/botframework-connector/lib/auth/managedIdentityAuthenticator.d.ts
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

31 lines
No EOL
1.2 KiB
TypeScript

/**
* @module botframework-connector
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import type { AccessToken } from '@azure/identity';
import type { IJwtTokenProviderFactory } from './jwtTokenProviderFactory';
/**
* Abstraction to acquire tokens from a Managed Service Identity.
*/
export declare class ManagedIdentityAuthenticator {
private readonly tokenProvider;
private readonly resource;
/**
* Initializes a new instance of the ManagedIdentityAuthenticator class.
*
* @param appId Client id for the managed identity to be used for acquiring tokens.
* @param resource Resource for which to acquire the token.
* @param tokenProviderFactory The JWT token provider factory to use.
*/
constructor(appId: string, resource: string, tokenProviderFactory: IJwtTokenProviderFactory);
/**
* Acquires the security token.
*
* @returns {Promise<AccessToken>} A promise with the `AccessToken` provided by the [IJwtTokenProviderFactory](xref:botframework-connector.IJwtTokenProviderFactory) class.
*/
getToken(): Promise<AccessToken>;
}
//# sourceMappingURL=managedIdentityAuthenticator.d.ts.map