Class TokenAuthMiddleware

Injects a TokenSecurityContext into the request and attempts to resume the user's authentication.

Hierarchy

Constructors

Properties

config: Config
logging: Logging
request: Request

The request that will be handled by this middleware.

Accessors

Methods

  • Apply the middleware to the request. If this returns a response factory or similar item, that will be sent as a response.

    If this returns void | Promise<void>, the request will continue to the next handler.

    Returns Promise<any>

  • Get the method with the given name from this class, bound to this class.

    Returns

    function

    Parameters

    • methodName: string

    Returns ((...args: any[]) => any)

      • (...args: any[]): any
      • Get the method with the given name from this class, bound to this class.

        Returns

        function

        Parameters

        • Rest ...args: any[]

        Returns any

  • Call the make() method on the global container.

    Type Parameters

    • T

    Parameters

    • target: any
    • Rest ...parameters: any[]

    Returns T

  • Sets the fully- and un-qualified canonical resolver strings. Intended for use by the Canonical unit.

    Parameters

    • fullyQualifiedResolver: string
    • unqualifiedResolver: string

    Returns void