node-nlp
Version:
Library for NLU (Natural Language Understanding) done in Node.js
23 lines (22 loc) • 1.21 kB
TypeScript
/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Activity } from 'botframework-schema';
import { ClaimsIdentity } from './claimsIdentity';
import { ICredentialProvider } from './credentialProvider';
export declare module JwtTokenValidation {
/**
* Authenticates the request and sets the service url in the set of trusted urls.
* @param {Activity} activity The incoming Activity from the Bot Framework or the Emulator
* @param {string} authHeader The Bearer token included as part of the request
* @param {ICredentialProvider} credentials The set of valid credentials, such as the Bot Application ID
* @returns {Promise<ClaimsIdentity>} Promise with ClaimsIdentity for the request.
*/
function authenticateRequest(activity: Activity, authHeader: string, credentials: ICredentialProvider, channelService: string): Promise<ClaimsIdentity>;
function validateAuthHeader(authHeader: string, credentials: ICredentialProvider, channelService: string, channelId: string, serviceUrl?: string): Promise<ClaimsIdentity>;
function isGovernment(channelService: string): boolean;
}