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
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; }