Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KavenAuthentication

Hierarchy

Index

Constructors

  • Parameters

    • userName: string
    • password: string

    Returns KavenAuthentication

Properties

Name: string
Password: string
Realm: string = "Kaven Basic Authentication"

A string to be displayed to users so they know which username and password to use.

This string should contain at least the name of the host performing the authentication and might additionally indicate the collection of users who might have access.

RequestHandler: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>> = ...
UserName: string

Methods

  • Authenticate(res: Response<any, Record<string, any>>): void
  • Parameters

    • res: Response<any, Record<string, any>>

    Returns void

  • CheckCredentials(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): Promise<boolean>
  • Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

    Returns Promise<boolean>

Generated using TypeDoc