Implements

Constructors

  • Creates a username and password authorization handler for Laserfiche Self-Hosted API server

    Parameters

    • repositoryId: string

      Repository name

    • username: string

      The username used with "password" grant type.

    • password: string

      The password used with "password" grant type.

    • baseUrl: string

      APIServer Base Url e.g. https://{APIServerName}/LFRepositoryAPI

    • Optionalclient: LfApiClientCore.ISelfHostedTokenClient

      OPTIONAL

    Returns LfApiClientCore.UsernamePasswordHandler

Methods

  • Called to handle the response from the API service.

    Parameters

    • url: string

      The HTTP url

    • response: Response

      The HTTP response

    • request: RequestInit

      The HTTP request

    Returns Promise<boolean>

    true if the request should be retried.