Back to Node Auth0

Interface ManagementClientOptionsWithClientAssertion

docs/interfaces/management.ManagementClient.ManagementClientOptionsWithClientAssertion.html

5.9.14.3 KB
Original Source

Interface ManagementClientOptionsWithClientAssertion

Configuration for client credentials authentication using JWT assertion. Use this for server-to-server authentication with a private key.

Example: Using client assertion

const client = new ManagementClient({ domain: 'your-tenant.auth0.com', clientId: 'your-client-id', clientAssertionSigningKey: 'your-private-key'});Copy

interface ManagementClientOptionsWithClientAssertion {
headers?: Record<string, Supplier<string | null | undefined>>;
timeoutInSeconds?: number;
maxRetries?: number;
logging?: LogConfig | Logger;
domain: string;
audience?: string;
telemetry?: boolean;
clientInfo?: { name: string; [key: string]: unknown };
withCustomDomainHeader?: string;
clientId: string;
clientAssertionSigningKey: string;
clientAssertionSigningAlg?: string;
useMTLS?: boolean;
}

Hierarchy (View Summary)

Index

Properties

headers?timeoutInSeconds?maxRetries?logging?domainaudience?telemetry?clientInfo?withCustomDomainHeader?clientIdclientAssertionSigningKeyclientAssertionSigningAlg?useMTLS?

Properties

Optionalheaders

headers?: Record<string, Supplier<string | null | undefined>>

Additional headers to include in requests.

OptionaltimeoutInSeconds

timeoutInSeconds?: number

The default maximum time to wait for a response in seconds.

OptionalmaxRetries

maxRetries?: number

The default number of times to retry the request. Defaults to 2.

Optionallogging

logging?: LogConfig | Logger

Configure logging for the client.

domain

domain: string

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

Optionalaudience

audience?: string

API audience. Defaults to https://{domain}/api/v2/

Default Value

https://{domain}/api/v2/

Optionaltelemetry

telemetry?: boolean

Enable/disable telemetry. Defaults to true

Default Value

trueCopy

OptionalclientInfo

clientInfo?: { name: string; [key: string]: unknown }

Custom client information for telemetry

OptionalwithCustomDomainHeader

withCustomDomainHeader?: string

Custom domain Header to use for whitelisted requests. When provided, the Auth0-Custom-Domain header will be added automatically to supported endpoints. This works seamlessly with custom fetchers - both the custom domain logic and your custom fetcher will be applied.

clientId

clientId: string

Auth0 application client ID

clientAssertionSigningKey

clientAssertionSigningKey: string

Private key for signing the client assertion JWT

OptionalclientAssertionSigningAlg

clientAssertionSigningAlg?: string

Algorithm for signing the client assertion. Defaults to RS256

OptionaluseMTLS

useMTLS?: boolean

Enable mTLS for token endpoint calls

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Properties headerstimeoutInSecondsmaxRetriesloggingdomainaudiencetelemetryclientInfowithCustomDomainHeaderclientIdclientAssertionSigningKeyclientAssertionSigningAlguseMTLS