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

42 lines
No EOL
1.2 KiB
TypeScript

/**
* @module botframework-connector
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Represents a claim.
*/
export interface Claim {
readonly type: string;
readonly value: string;
}
/**
* Represents a claims-based identity.
*/
export declare class ClaimsIdentity {
readonly claims: Claim[];
private readonly authenticationType?;
/**
* Initializes a new instance of the [ClaimsIdentity](xref:botframework-connector.ClaimsIdentity) class.
*
* @param {Claim[]} claims An array of [Claim](xref:botframework-connector.Claim).
* @param {string | boolean} authenticationType The type of auth for this set of claims, or boolean to override isAuthenticated
*/
constructor(claims: Claim[], authenticationType?: string | boolean);
/**
* Returns authentication status.
*
* @returns True if is authenticated.
*/
get isAuthenticated(): boolean;
/**
* Returns a claim value (if its present)
*
* @param {string} claimType The claim type to look for
* @returns {string|null} The claim value or null if not found
*/
getClaimValue(claimType: string): string | null;
}
//# sourceMappingURL=claimsIdentity.d.ts.map