UNPKG

1.03 kBTypeScriptView Raw
1/**
2 * -------------------------------------------------------------------------------------------
3 * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4 * See License in the project root for license information.
5 * -------------------------------------------------------------------------------------------
6 */
7/**
8 * @module MiddlewareFactory
9 */
10import { AuthenticationProvider } from "../IAuthenticationProvider";
11import { Middleware } from "./IMiddleware";
12/**
13 * @class
14 * Class containing function(s) related to the middleware pipelines.
15 */
16export declare class MiddlewareFactory {
17 /**
18 * @public
19 * @static
20 * Returns the default middleware chain an array with the middleware handlers
21 * @param {AuthenticationProvider} authProvider - The authentication provider instance
22 * @returns an array of the middleware handlers of the default middleware chain
23 */
24 static getDefaultMiddlewareChain(authProvider: AuthenticationProvider): Middleware[];
25}