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
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
Domain
Your Auth0 domain (e.g., "your-tenant.auth0.com").
public required string Domain { get; init; }
Property Value
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
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
TokenProvider
The token provider responsible for supplying access tokens to the Management API.
Built-in options:
- DelegateTokenProvider — for retrieving tokens from an external source (e.g., a secret manager).
- ClientCredentialsTokenProvider — for automatic token acquisition and refresh via client credentials.
Implement ITokenProvider to supply tokens from any custom source.
public required ITokenProvider TokenProvider { get; init; }