Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected redirectTo

redirectTo: string = '/login'

The URL to redirect to when request is Unauthorized

Methods

Protected authenticate

  • authenticate(auth: AuthContract, guards: any[]): Promise<boolean>
  • Authenticates the current HTTP request against a custom set of defined guards.

    The authentication loop stops as soon as the user is authenticated using any of the mentioned guards and that guard will be used by the rest of the code during the current request.

    Parameters

    • auth: AuthContract
    • guards: any[]

    Returns Promise<boolean>

handle

  • handle(__namedParameters: HttpContextContract, next: () => Promise<void>, customGuards: string[]): Promise<void>
  • Handle request

    Parameters

    • __namedParameters: HttpContextContract
    • next: () => Promise<void>
        • (): Promise<void>
        • Returns Promise<void>

    • customGuards: string[]

    Returns Promise<void>

Generated using TypeDoc