UNPKG

node-nlp

Version:

Library for NLU (Natural Language Understanding) done in Node.js

22 lines (21 loc) 894 B
/** * @module botbuilder */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import * as jwt from 'jsonwebtoken'; import { ClaimsIdentity } from './claimsIdentity'; import { OpenIdMetadata } from './openIdMetadata'; export declare class JwtTokenExtractor { private static openIdMetadataCache; readonly tokenValidationParameters: jwt.VerifyOptions; readonly openIdMetadata: OpenIdMetadata; constructor(tokenValidationParameters: jwt.VerifyOptions, metadataUrl: string, allowedSigningAlgorithms: string[]); private static getOrAddOpenIdMetadata; getIdentityFromAuthHeader(authorizationHeader: string, channelId: string): Promise<ClaimsIdentity | null>; getIdentity(scheme: string, parameter: string, channelId: string): Promise<ClaimsIdentity | null>; private hasAllowedIssuer; private validateToken; }