Table of Contents

Interface IAuthenticationConnection

Namespace
Auth0.AuthenticationApi
Assembly
Auth0.AuthenticationApi.dll

Interface used to customize implementation or mock behavior of AuthenticationApiClient.

public interface IAuthenticationConnection

Methods

GetAsync<T>(Uri, IDictionary<string, string>, CancellationToken)

Send a HTTP GET request to the given uri with optional headers as an asynchronous operation.

Task<T> GetAsync<T>(Uri uri, IDictionary<string, string> headers = null, CancellationToken cancellationToken = default)

Parameters

uri Uri

Absolute Uri to send the request to.

headers IDictionary<string, string>

Optional dictionary containing additional headers to be sent.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<T>

The task object representing the asynchronous operation.

Type Parameters

T

Type of object to deserialize the result into.

SendAsync<T>(HttpMethod, Uri, object, IDictionary<string, string>, CancellationToken)

Send an HTTP request to uri using the HTTP method as an asynchronous operation.

Task<T> SendAsync<T>(HttpMethod method, Uri uri, object body, IDictionary<string, string> headers = null, CancellationToken cancellationToken = default)

Parameters

method HttpMethod

HttpMethod to use.

uri Uri

Absolute Uri to send the request to.

body object

Body of the HTTP request that will be sent.

headers IDictionary<string, string>

Optional dictionary containing additional headers to be sent.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<T>

The task object representing the asynchronous operation.

Type Parameters

T

Type of object to deserialize the result into.