UNPKG

botframework-connector

Version:

Bot Connector is autorest generated connector client.

42 lines 1.27 kB
/** * @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