Table of Contents

Class ManagementClientOptions

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll

Configuration options for ManagementClient.

public class ManagementClientOptions
Inheritance
ManagementClientOptions
Inherited Members
Extension Methods

Properties

AdditionalHeaders

Additional headers to include with every request.

public IDictionary<string, string>? AdditionalHeaders { get; init; }

Property Value

IDictionary<string, string>

CustomDomain

Custom domain to include as the Auth0-Custom-Domain header on Management API endpoints that generate user-facing links (email verification, password reset, invitations, MFA enrollment tickets, etc.).

When set and no HttpClient is provided, a CustomDomainInterceptor is automatically configured to strip the header from non-applicable endpoints. When a custom HttpClient is supplied, the header is still included on every request but stripping is the caller's responsibility.

public string? CustomDomain { get; init; }

Property Value

string

Domain

Your Auth0 domain (e.g., "your-tenant.auth0.com").

public required string Domain { get; init; }

Property Value

string

HttpClient

Custom HttpClient for making Management API requests. If not provided, a new instance will be created and managed internally.

public HttpClient? HttpClient { get; init; }

Property Value

HttpClient

MaxRetries

Maximum number of retry attempts for failed requests. Defaults to 2.

public int? MaxRetries { get; init; }

Property Value

int?

Timeout

Request timeout. Defaults to 30 seconds.

public TimeSpan? Timeout { get; init; }

Property Value

TimeSpan?

TokenProvider

The token provider responsible for supplying access tokens to the Management API.

Built-in options:

Implement ITokenProvider to supply tokens from any custom source.

public required ITokenProvider TokenProvider { get; init; }

Property Value

ITokenProvider