Configure Custom Domains with Self-Managed Certificates
If you choose to manage the certificates for your custom domains yourself, it requires multiple DNS records on the domain. You have to purchase or provide the certificates from any known Certificate Authority and manage the renewals yourself. You will also need a reverse proxy, where the certificate will be installed. Once the domain is verified, we will accept traffic from the proxy.
Choose this option if:
- You want to have more control of your certificates (such as choosing your own CA or certificate expiration)
- You want to enable additional monitoring over your API calls to Auth0
To set up your custom domain using self-managed certificates, you need to provide your domain name to Auth0, verify that you own that domain, and configure the reverse proxy. Once your custom domain has been set up, you will need to configure your Auth0 features to start using your custom domain.
Provide your domain name to Auth0
Go to Dashboard > Tenant Settings.
Select the Custom Domains tab.
Enter your custom domain in the provided box and select Auth0-managed certificates.
Click Add Domain.
Before you can use the domain with Auth0, you'll need to verify that you own it.
- Go to Dashboard > Tenant Settings, copy the TXT verification record listed in the Dashboard to your domain's DNS record.
Add the TXT verification record to your domain's DNS record
The following steps may vary for your domain host provider.
Log in to your domain management service.
Create a new record:
|Name||Enter your custom domain name (such as login.northwind.com).|
|Time to Live (TTL)||Use default value|
|Value||Paste in the TXT value provided by the Auth0 Dashboard for your domain's DNS record.|
- When done, save your record.
It may take a few minutes before Auth0 can verify your TXT record, depending on your DNS settings.
- Click Verify to proceed.
If Auth0 was able to verify your domain name, you'll see a confirmation window.
The verification process is complete and within 1 to 2 minutes, your custom domain should be ready to use.
Configure reverse proxy
The reverse proxy server retrieves resources on behalf of your client from one or more servers. These resources are then returned to the client, appearing as if they originated from the proxy server itself.
You can use a service such as Cloudflare, Azure CDN, or AWS Cloudfront and configure settings for your custom domain. You will add the new CNAME value to your DNS for your custom domain pointing to the reverse proxy server domain name for distribution.
The way you configure the proxy server will vary depending on the service you use. You will likely need to configure the following types of settings:
After you've created the reverse proxy settings on your service, go to Dashboard > Tenant Settings Custom Domains tab, add a new CNAME record to your DNS for your custom domain pointing to the service (such as Cloudfront) domain name for your distribution. You can usually find this by looking for the Distribution ID on your reverse proxy server configuration.
|Origin Domain Name||Set this to the Origin Domain Name value obtained from the Auth0 Dashboard during the Custom Domains setup process|
|Origin ID||A description for the origin. This value lets you distinguish between multiple origins in the same distribution and therefore must be unique.|
|Origin Protocol Policy||Set to
|Alternate Domain Names (CNAMEs)||Set to your custom domain name (the same one your configured in the Auth0 Dashboard)|
Origin custom header settings
|Header Name||Set to
|Value||Set to the CNAME API Key value that you were given immediately after you verified ownership of your domain name with Auth0|
Default cache behavior settings
|Viewer Protocol Policy||Select Redirect HTTP to HTTPS|
|Allowed HTTP Methods||Select GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE|
|Cache Based on Selected Request Headers||Select Whitelist|
|Forward Cookies||Select All|
|Query String Forwarding and Caching||Select Forward all, cache based on all|
Additional steps for specific Auth0 features
There are additional configuration steps you must complete depending on which Auth0 features you are using. See the Configure Custom Domains for Specific Features document for more information.