Best Practice
If you do have multiple applications, and you need to leverage SSO, then we recommend you check out our How to Implement Single Sign-On training guidance before continuing.- What should the URL look like when Auth0 needs to present a web page to a user?
- How can Auth0 be structured to support your SDLC (Software Development Lifecycle)?
- How can you ensure that your Auth0 tenants are appropriately associated with your contract?
- What do you need to consider if there are other projects in your organization integrating with Auth0? Particularly projects that target their own, or a different domain of users (for example, applications that only employees will use)?
Best Practice
It’s not uncommon for companies to have identity requirements that address multiple user communities: customers, partners, employees, etc. So be sure to consider other projects or future requirements when designing your architecture.Best Practice
Other groups within your organization may also be working with Auth0; it’s not uncommon for our customers to have disparate departments that serve different user communities. Identifying these will potentially influence your design choices, and doing so early could mitigate decisions that might prove costly later on.Tenant provision
Everything starts with an Auth0 tenant. This is where you will be configuring your use of Auth0, and the where Auth0 assets - such as Applications, Connections and user profiles are defined, managed and stored. Access to an Auth0 tenant is performed via the Auth0 Dashboard, and via the Dashboard you can also create additional, associated tenants; you’re allowed to create more than one Auth0 tenant so that you can structure your tenants in a way that will isolate different domains of users and also support your Software Development Life Cycle (SDLC).Tenant names cannot be changed, nor reused once deleted. So, make sure you’re happy with your name(s) before you create your Auth0 tenants.
Tenant association
To ensure that your tenants are all associated with your Auth0 contractual agreement and have the same features, ensure all your tenants are associated with your company account. If you have individual developers that want to create their own sandboxes for testing, make sure they get associated with your account so they have the same permissions too. To do this you should contact your Auth0 representative or the Auth0 Support Center.Custom domains
When you setup your Auth0 tenant, the URL for accessing that tenant will be of the formhttps://yourTenant.auth0.com
. Providing a Custom Domain (also known as a vanity URL), for your Auth0 tenant is not only an important factor for supporting your Branding requirements, but more importantly will also provide you with security benefits too:
- Some browsers will, by default, make it difficult to communicate in an iFrame if you don’t have a shared domain.
- It’s harder to phish your domain if you have a vanity URL, as the phisher must also create a vanity URL to mimic yours. For example, with a you can use your own certificate to get an “Extended Validation”, making phishing even harder.
You are allowed only one custom domain per Auth0 Tenant. This is because a tenant in Auth0 is intended to represent a “domain” of users. If you need more than one vanity URL, then you likely have more than one domain of users and should be using multiple tenants.
Best Practice
Create a custom domain (a.k.a.CNAME
) for your Auth0 tenant, and also create one in development too so you can ensure you have managed the CNAME
correctly. For example, you could create a CNAME
which maps login.mycompany.com
to mycompany-prod.auth0.com
.SDLC support
Every company has some form of Software Development Life Cycle (SDLC), and throughout the development process you will want to align with that strategy. For instance, you need to be able to test your integration with Auth0 in a similar fashion as you test the applications themselves. It is therefore important to structure Auth0 tenants to support your SDLC, and there is a consistent pattern which our customers typically follow when it comes to the best practices associated with tenant layout for doing so:Environment | Sample Tenant Name | Description |
---|---|---|
Development | company-dev | A shared environment where most of your development work occurs |
QA/Testing | company-qa or company-uat | An environment for formal testing of the changes you’ve made |
Production | company-prod | The production tenant |