# Does zoom support more than two environments for oauth2?

**URL:** <https://devforum.zoom.us/t/does-zoom-support-more-than-two-environments-for-oauth2/11052>\
**Category:** API and Webhooks\
**Created:** [April 3, 2020, 10:50pm UTC](https://devforum.zoom.us/t/does-zoom-support-more-than-two-environments-for-oauth2/11052 "2020-04-03T22:50:17Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 15, 2020, 8:14pm UTC](https://devforum.zoom.us/t/does-zoom-support-more-than-two-environments-for-oauth2/11052/12 "2020-04-15T20:14:52Z")

</div>

Hey @tuancode, @michael.solomon,

This is totally possible! 🙂 Let me walk you through how to do this with the base domain of `example.com`

For your whitelist, simply add your base domain: `https://example.com`

Then in your dev/prod redirect url field, add a default redirect, `https://any.example.com` (this will be programmatically overridden to the correct sub domain, continue reading below)

Now, with your install URL ([the url mentioned in Step 1. of the OAuth guide](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token)) in your code, dynamically set the respective sub domain on the redirect.

For `https://sub1.example.com`:

`https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://sub1.example.com`

For `https://sub2.example.com`:

`https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://sub2.example.com`

Let me know if that helps! 🙂

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/does-zoom-support-more-than-two-environments-for-oauth2/11052)._
