An object to interact with the Laserfiche Cloud OAuth 2.0 token endpoint.

interface ITokenClient {
    getAccessTokenFromServicePrincipal(
        servicePrincipalKey: string,
        accessKey: LfApiClientCore.AccessKey,
        scope?: string,
    ): Promise<LfApiClientCore.GetAccessTokenResponse>;
}

Implemented by

Methods

  • Gets an OAuth access token given a Laserfiche cloud service principal key and an OAuth service application access key.

    Parameters

    • servicePrincipalKey: string

      Laserfiche cloud service principal key

    • accessKey: LfApiClientCore.AccessKey

      OAuth service application access key

    • Optionalscope: string

      OPTIONAL The requested space-delimited scopes for the access token.

    Returns Promise<LfApiClientCore.GetAccessTokenResponse>