Skip to main content

ResQ.Clients.InfrastructureApiClient

InfrastructureApiClient.AuthenticateAsync(string, string, CancellationToken) Method

Authenticates with infrastructure-api to get a JWT token. Sets the Authorization header for subsequent requests.
public System.Threading.Tasks.Task<bool> AuthenticateAsync(string username, string password, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

username System.String password System.String ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Boolean>