Table of Contents

Class ManagementClient

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll

Auth0 Management API client with automatic token management.

Token handling is provided by an ITokenProvider:

Example (client credentials):

var client = new ManagementClient(new ManagementClientOptions
{
    Domain = "tenant.auth0.com",
    TokenProvider = new ClientCredentialsTokenProvider("tenant.auth0.com", "client_id", "client_secret")
});
public sealed class ManagementClient : ManagementApiClient, IManagementApiClient, IDisposable
Inheritance
ManagementClient
Implements
Inherited Members
Extension Methods

Constructors

ManagementClient(ManagementClientOptions)

Creates a new ManagementClient instance.

public ManagementClient(ManagementClientOptions options)

Parameters

options ManagementClientOptions

Configuration options for the client.

Exceptions

ArgumentNullException

Thrown when options is null.

ArgumentException

Thrown when Domain is empty, whitespace, or contains a scheme prefix.

Methods

Dispose()

Disposes the ManagementClient and releases managed resources. Only disposes the internal HttpClient if it was created by this instance. The ITokenProvider is not disposed — the caller owns it and is responsible for its lifetime.

public void Dispose()