• Create OAuth 2.0 client_credentials Authorization JWT that can be used with Laserfiche Cloud Token endpoint to request an Access Token.

    Parameters

    • servicePrincipalKey: string

      The service principal key created for the service principal from the Laserfiche Account Administration.

    • accessKey: string | AccessKey

      AccessKey JSON object or base-64 encoded AccessKey exported from the Laserfiche Developer Console.

    • expireInSeconds: number = 3600

      The expiration time in seconds for the authorization JWT with a default value of 3600 seconds. Set it to 0 if the JWT never expires.

    • Optionalscope: string

      (optional) The requested scopes. Applies only when the generated key is used as a HTTP Basic Authorization password. Scopes are case-sensitive and space-delimited. (Ex/ 'repository.Read repository.Write')

    Returns string

    Authorization JWT.