[Feature Request] Environment switching for same tenant/account
See original GitHub issueMotivation
I’m contributing to a large project that relies very heavily on Preview Apps provided by Netlify. Preview Apps are demo sites that are created automatically for Pull Requests. The master branch serves as the production branch.
In this setup, we don’t have staging, functional testing or production environments per se. Any branch can be used by a customer if it offers value to them. Sometimes a branch could require Auth0 configuration that is unique to that branch. For example, we might want to add another app that is only available on that branch.
I spent quite a bit of time trying to figure out how to get this working, but I realized that this is not possible without creating separate tenants/accounts for each branch. This is not workable because tenants can’t be created via the API.
Approach
I would really love to see some kind of Environments setup that would allow me to specify a group of environment variables that would overwrite the settings of the account. Ideally, I would be able to add a file to a Pull Request that would override settings for that particular deployment of the application.
What are the changes that this could become possible in the near future?
FYI: I borrowed Environment switching terminology from the description in #86.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)

Top Related StackOverflow Question
Yeah, no worries. The simulator gives us the ephemeral tenants that we need. If someone is looking for this, they can use our simulator since it’s open source.
@taras Thanks for the update. I understand the request, and unfortunately, Auth0 doesn’t support ephemeral tenants that you can spin-up on demand for feature branches and other tests. But if that changes in the future, I’ll follow-up on this thread.