Options
All
  • Public
  • Public/Protected
  • All
Menu

Class APIKeyHandler

An authentication handler that provides API Key support.

API keys can be extracted from HTTP headers/query parameters/cookies.

By default this handler will extract the API key from an HTTP header named X-API-KEY.

Hierarchy

  • APIKeyHandler

Implements

Index

Methods

cookie

  • Specify the source for the api key extraction as an HTTP cookie with the given name.

    Parameters

    • cookieName: string

    Returns APIKeyHandler

handle

header

  • Specify the source for the api key extraction as an HTTP header with the given name.

    Parameters

    • headerName: string

    Returns APIKeyHandler

parameter

  • Specify the source for the api key extraction as an HTTP query parameter with the given name.

    Parameters

    • paramName: string

    Returns APIKeyHandler

Static create

  • Create an API Key authentication handler

    Parameters

    • authProvider: AuthenticationProvider

    Returns APIKeyHandler

Generated using TypeDoc