Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthenticationMiddleware

A base authentication strategy that handles 90% of the authentication process. This will verify that the token hasn't been manipulated or tainted. The authenticate API must be implemented by subclasses to further validate the token data for their specific use cases.

Hierarchy

  • AuthenticationMiddleware

Index

Constructors

Methods

Constructors

constructor

Methods

Protected Abstract authenticate

  • authenticate(tokenData: any, options: any, isBackendCall: boolean): Promise<any>
  • Subclasses are expected to implement this API to further validate the token data, as required by their application or API.

    Parameters

    • tokenData: any
    • options: any
    • isBackendCall: boolean

    Returns Promise<any>

execute

  • execute(request: Request, response: Response, options?: any): Promise<any>

Generated using TypeDoc