aimpress-chatbot/node_modules/@azure/identity/dist/commonjs/msal/credentials.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

52 lines
No EOL
1.6 KiB
TypeScript

import type { AccessToken, GetTokenOptions } from "@azure/core-auth";
import type { AuthenticationRecord } from "./types.js";
/**
* The MSAL clients `getToken` requests can receive a `correlationId` and `disableAutomaticAuthentication`.
* (which is used to prevent `getToken` from triggering the manual authentication if `getTokenSilent` fails).
* @internal
*/
export interface CredentialFlowGetTokenOptions extends GetTokenOptions {
/**
* Unique identifier useful to track outgoing requests.
*/
correlationId?: string;
/**
* Makes getToken throw if a manual authentication is necessary.
*/
disableAutomaticAuthentication?: boolean;
/**
* Authority, to overwrite the default one, if necessary.
*/
authority?: string;
/**
* Claims received from challenges.
*/
claims?: string;
/**
* Indicates to allow Continuous Access Evaluation or not
*/
enableCae?: boolean;
/**
* Client Assertion
*/
getAssertion?: () => Promise<string>;
}
/**
* Simplified representation of the internal authentication flow.
* @internal
*/
export interface CredentialFlow {
/**
* Clears the MSAL cache.
*/
logout(): Promise<void>;
/**
* Tries to load the active account, either from memory or from MSAL.
*/
getActiveAccount(): Promise<AuthenticationRecord | undefined>;
/**
* Calls to the implementation's doGetToken method.
*/
getToken(scopes?: string[], options?: CredentialFlowGetTokenOptions): Promise<AccessToken | null>;
}
//# sourceMappingURL=credentials.d.ts.map