lf-api-client-core-dotnet  1.3.7
Loading...
Searching...
No Matches
TokenClient Class Reference

The API client for the Laserfiche Self-Hosted token route. More...

Inheritance diagram for TokenClient:
ITokenClient

Public Member Functions

virtual async Task< SessionKeyInfoTokenAsync (string repoId, CreateConnectionRequest body=null, CancellationToken cancellationToken=default(CancellationToken))
 Request for an access token.
- Creates an access token for use with the Laserfiche API.
- Provides credentials and uses the access token returned with subsequent API calls as a means of authorization.
- For authentication with password, username and password are required and grant_type must be 'password'.
- Only available in Laserfiche Self-hosted.
 
 TokenClient (HttpClient httpClient)
 

Properties

bool ReadResponseAsString [get, set]
 

Detailed Description

The API client for the Laserfiche Self-Hosted token route.

Member Function Documentation

◆ TokenAsync()

virtual async Task< SessionKeyInfo > TokenAsync ( string  repoId,
CreateConnectionRequest  body = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inlinevirtual

Request for an access token.
- Creates an access token for use with the Laserfiche API.
- Provides credentials and uses the access token returned with subsequent API calls as a means of authorization.
- For authentication with password, username and password are required and grant_type must be 'password'.
- Only available in Laserfiche Self-hosted.

Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
repoIdThe requested repository ID.
Returns
Create an access token successfuly.
Exceptions
ApiExceptionA server side error occurred.

Implements ITokenClient.


The documentation for this class was generated from the following files: