Interface IAuthenticationClient
- Namespace
- Visus.AddressValidation.Http.Clients
- Assembly
- Visus.AddressValidation.dll
Defines the contract for an OAuth 2.0 client-credentials authentication client.
public interface IAuthenticationClient
Methods
RequestClientCredentialsTokenAsync(CancellationToken)
Sends a token request using the client_credentials grant type.
Task<TokenResponse?> RequestClientCredentialsTokenAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token that cancels the operation.
Returns
- Task<TokenResponse>
An instance of TokenResponse that holds the token, or null.