Table of Contents

Class ManagementApiClient

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll

Represents the Management API client.

public class ManagementApiClient : IManagementApiClient, IDisposable
Inheritance
ManagementApiClient
Implements
Inherited Members

Constructors

ManagementApiClient(string, string, IManagementConnection)

Initializes a new instance of the ManagementApiClient class.

public ManagementApiClient(string token, string domain, IManagementConnection connection = null)

Parameters

token string

A valid Auth0 Management API v2 token.

domain string

Your Auth0 domain. tenant.auth0.com

connection IManagementConnection

ManagementApiClient(string, Uri, IManagementConnection)

Initializes a new instance of the ManagementApiClient class.

public ManagementApiClient(string token, Uri baseUri, IManagementConnection managementConnection = null)

Parameters

token string

A valid Auth0 Management API v2 token.

baseUri Uri

Uri of the tenant to manage.

managementConnection IManagementConnection

IManagementConnection to facilitate communication with server.

Fields

connection

protected readonly IManagementConnection connection

Field Value

IManagementConnection

Properties

Actions

Contains all the methods to call the /actions endpoints.

public IActionsClient Actions { get; }

Property Value

IActionsClient

AttackProtection

Contains all the methods to call the /attack-protection endpoints.

public IAttackProtectionClient AttackProtection { get; }

Property Value

IAttackProtectionClient

BlacklistedTokens

Contains all the methods to call the /blacklists/tokens endpoints.

public IBlacklistedTokensClient BlacklistedTokens { get; }

Property Value

IBlacklistedTokensClient

Branding

Contains all the methods to call the /branding endpoints.

public IBrandingClient Branding { get; }

Property Value

IBrandingClient

ClientGrants

Contains all the methods to call the /client-grants endpoints

public IClientGrantsClient ClientGrants { get; }

Property Value

IClientGrantsClient

Clients

Contains all the methods to call the /clients endpoints.

public IClientsClient Clients { get; }

Property Value

IClientsClient

Connections

Contains all the methods to call the /connections endpoints.

public IConnectionsClient Connections { get; }

Property Value

IConnectionsClient

CustomDomains

Contains all the methods to call the /custom-domains endpoints.

public ICustomDomainsClient CustomDomains { get; }

Property Value

ICustomDomainsClient

DeviceCredentials

Contains all the methods to call the /device-credentials endpoints.

public IDeviceCredentialsClient DeviceCredentials { get; }

Property Value

IDeviceCredentialsClient

EmailProvider

Contains all the methods to call the /emails/provider endpoints.

public IEmailProviderClient EmailProvider { get; }

Property Value

IEmailProviderClient

EmailTemplates

Contains all the methods to call the /email-templates endpoints.

public IEmailTemplatesClient EmailTemplates { get; }

Property Value

IEmailTemplatesClient

Grants

Contains all the methods to call the /grants endpoints.

public IGrantsClient Grants { get; }

Property Value

IGrantsClient

Guardian

Contains all the methods to call the /guardian endpoints.

public IGuardianClient Guardian { get; }

Property Value

IGuardianClient

Hooks

Contains all the methods to call the /hooks endpoints.

public IHooksClient Hooks { get; }

Property Value

IHooksClient

Jobs

Contains all the methods to call the /jobs endpoints.

public IJobsClient Jobs { get; }

Property Value

IJobsClient

Keys

Contains all the methods to call the /keys endpoints.

public IKeysClient Keys { get; }

Property Value

IKeysClient

LogStreams

Contains all the methods to all the /log-streams endpoints.

public ILogStreamsClient LogStreams { get; }

Property Value

ILogStreamsClient

Logs

Contains all the methods to call the /logs endpoints.

public ILogsClient Logs { get; }

Property Value

ILogsClient

Organizations

Contains all the methods to call the /organizations endpoints.

public IOrganizationsClient Organizations { get; }

Property Value

IOrganizationsClient

Prompts

Contains all the methods to call the /prompts endpoints.

public IPromptsClient Prompts { get; }

Property Value

IPromptsClient

ResourceServers

Contains all the methods to call the /resource-servers endpoints.

public IResourceServersClient ResourceServers { get; }

Property Value

IResourceServersClient

Roles

Contains all the methods to call the /roles endpoints.

public IRolesClient Roles { get; }

Property Value

IRolesClient

The roles.

Rules

Contains all the methods to call the /rules endpoints.

public IRulesClient Rules { get; }

Property Value

IRulesClient

RulesConfig

Contains all the methods to call the /rules-configs endpoints.

public IRulesConfigClient RulesConfig { get; }

Property Value

IRulesConfigClient

Stats

Contains all the methods to call the /stats endpoints.

public IStatsClient Stats { get; }

Property Value

IStatsClient

TenantSettings

Contains all the methods to call the /tenants/settings endpoints.

public ITenantSettingsClient TenantSettings { get; set; }

Property Value

ITenantSettingsClient

Tickets

Contains all the methods to call the /tickets endpoints.

public ITicketsClient Tickets { get; }

Property Value

ITicketsClient

UserBlocks

Contains all the methods to call the /user-blocks endpoints.

public IUserBlocksClient UserBlocks { get; }

Property Value

IUserBlocksClient

Users

Contains all the methods to call the /users endpoints.

public IUsersClient Users { get; }

Property Value

IUsersClient

Methods

Dispose()

Disposes of any owned disposable resources.

public void Dispose()

Dispose(bool)

Disposes of any owned disposable resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Whether we are actually disposing (true) or not (false).

UpdateAccessToken(string)

Update the Access Token used with every request.

public void UpdateAccessToken(string token)

Parameters

token string

The new and valid Auth0 Management API v2 token.