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 cancellation token that can be used to cancel the work.
Returns
- Task<TokenResponse>
An instance of TokenResponse containing the token or null.