Table of Contents

Namespace Auth0.ManagementApi.Core

Classes

CustomDomainInterceptor

A DelegatingHandler that enforces the Auth0-Custom-Domain header whitelist.

The Auth0-Custom-Domain header is only meaningful for specific Management API endpoints that generate user-facing links (email verification, password reset, invitations, etc.). This handler strips the header from requests to any path not on the whitelist, preventing it from leaking to unrelated endpoints.

Whitelisted paths:

  • POST /tickets/email-verification
  • POST /tickets/password-change
  • POST /organizations/{id}/invitations
  • POST /guardian/enrollments/ticket
  • POST /jobs/verification-email
  • POST /jobs/users-imports
  • POST /users and PATCH /users/{id}
  • POST /self-service-profiles/{id}/sso-ticket
DateOnlyConverter

Custom converter for handling the System.DateOnly data type with the System.Text.Json library.

FormUrlEncoder

Encodes an object into a form URL-encoded content.

NullableAttribute

Marks a property as nullable in the OpenAPI specification. When applied to Optional<T> properties, this indicates that null values should be written to JSON when the optional is defined with null.

OptionalAttribute

Marks a property as optional in the OpenAPI specification. Optional properties use the Optional<T> type and can be undefined (not present in JSON).

OptionalExtensions

Extension methods for Optional<T> to simplify common operations.

OptionalJsonConverterFactory

JSON converter factory for Optional<T> that handles undefined vs null correctly. Uses a TypeInfoResolver to conditionally include/exclude properties based on Optional.IsDefined.

OptionalJsonConverter<T>

JSON converter for Optional<T> that unwraps the value during serialization. The actual property skipping is handled by the OptionalTypeInfoResolver.

Page<TItem>

A single Page<TItem> of items from a request that may return zero or more Page<TItem>s of items.

RawResponse

Contains HTTP response metadata including status code, URL, and headers.

ValueConvert

Convert values to string for path and query parameters.

Structs

HttpHeader

Represents a single HTTP header.

Optional<T>

Represents a field that can be "not set" (undefined) vs "explicitly set" (defined). Use this for HTTP PATCH requests where you need to distinguish between:

  • Undefined: Don't send this field (leave it unchanged on the server)
  • Defined with null: Send null (clear the field on the server)
  • Defined with value: Send the value (update the field on the server)
ResponseHeaders

Represents HTTP response headers with case-insensitive lookup.

Interfaces

BiPager<TItem>

Interface for implementing pagination in two directions.

IIsRetryableContent
IOptional

Non-generic interface for Optional types to enable reflection-free checks.

IStringEnum
Pager<TItem>

A collection of values that may take multiple service requests to iterate over.