aimpress-chatbot/node_modules/botframework-connector/lib/auth/authenticationConfiguration.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

30 lines
No EOL
1.1 KiB
TypeScript

/**
* @module botframework-connector
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Claim } from './claimsIdentity';
/**
* Used to validate a list of Claims and should throw an exception if the validation fails.
*/
export declare type ValidateClaims = (claims: Claim[]) => Promise<void>;
/**
* General configuration settings for authentication.
*/
export declare class AuthenticationConfiguration {
requiredEndorsements: string[];
validateClaims?: ValidateClaims;
validTokenIssuers?: string[];
/**
* General configuration settings for authentication.
*
* @param {string[]} requiredEndorsements An array of JWT endorsements.
* @param {(claims: Claim[]) => Promise<void>} validateClaims Function that validates a list of Claims
* and should throw an exception if the validation fails.
* @param {string[]} validTokenIssuers An array of valid JWT token issuers.
*/
constructor(requiredEndorsements?: string[], validateClaims?: ValidateClaims, validTokenIssuers?: string[]);
}
//# sourceMappingURL=authenticationConfiguration.d.ts.map