Interface IAnybillClientAuthModule
Authentication module of the IAnybillClient.
public interface IAnybillClientAuthModule
Properties
CurrentAuthTokenProvider
Gets or sets the current used IAuthTokenProvider.
IAuthTokenProvider CurrentAuthTokenProvider { get; set; }
Property Value
Methods
EnsureAsync(bool, CancellationToken)
Initializes authentication.
Task EnsureAsync(bool reAuthenticate, CancellationToken cancellationToken = default)
Parameters
reAuthenticate
boolWhether to request a new authentication token.
cancellationToken
CancellationTokenThe cancellation token.
Returns
Remarks
Prepares the IAnybillClient for the first use. Can be used to test authentication if reAuthenticate
is set to true.
EnsureAsync(CancellationToken)
Initializes authentication.
Task EnsureAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
Remarks
Prepares the IAnybillClient for the first use.