View Source Auth0.Management.CustomDomains (Auth0Api v2.5.0)

Facade for the Auth0 Management API Custom Domains endpoints.

Most applications should call Auth0.Api.Management instead of this module.

Summary

Functions

Create a new custom domain.

Delete a custom domain and stop serving requests for it.

Get custom domain configuration.

Get the default domain.

Retrieve details on custom domains.

Update the default custom domain for the tenant.

Test a custom domain.

Update a custom domain.

Run the verification process on a custom domain.

Types

@type config() :: Auth0.Config.t()
@type error() :: {:error, integer(), term()} | {:error, term()}
@type id() :: String.t()

Functions

Link to this function

configure(params, config)

View Source
@spec configure(map(), config()) :: {:ok, map()} | error()

Create a new custom domain.

see

https://auth0.com/docs/api/management/v2/custom-domains/post-custom-domains

@spec delete(id(), config()) :: {:ok, String.t()} | error()

Delete a custom domain and stop serving requests for it.

see

https://auth0.com/docs/api/management/v2/custom-domains/delete-custom-domains-by-id

@spec get(id(), config()) :: {:ok, map()} | error()

Get custom domain configuration.

see

https://auth0.com/docs/api/management/v2/custom-domains/get-custom-domains-by-id

@spec get_default(config()) :: {:ok, map() | [map()]} | error()

Get the default domain.

Retrieve the tenant's default domain.

see

https://auth0.com/docs/api/management/v2/custom-domains/get-default

Link to this function

list(params \\ %{}, config)

View Source
@spec list(map(), config()) :: {:ok, [map()]} | error()

Retrieve details on custom domains.

see

https://auth0.com/docs/api/management/v2/custom-domains/get-custom-domains

Link to this function

set_default(params, config)

View Source
@spec set_default(map(), config()) :: {:ok, map() | [map()]} | error()

Update the default custom domain for the tenant.

Set the default custom domain for the tenant.

see

https://auth0.com/docs/api/management/v2/custom-domains/patch-default

@spec test(String.t(), config()) :: {:ok, map()} | error()

Test a custom domain.

Run the test process on a custom domain.

see

https://auth0.com/docs/api/management/v2/custom-domains/post-test-domain

Link to this function

update(id, params, config)

View Source
@spec update(id(), map(), config()) :: {:ok, map()} | error()

Update a custom domain.

see

https://auth0.com/docs/api/management/v2/custom-domains/patch-custom-domains-by-id

@spec verify(id(), config()) :: {:ok, map()} | error()

Run the verification process on a custom domain.

see

https://auth0.com/docs/api/management/v2/custom-domains/post-verify