# Multiple Environment Callback not working for OAuth App

**URL:** <https://devforum.zoom.us/t/multiple-environment-callback-not-working-for-oauth-app/62743>\
**Category:** API and Webhooks\
**Created:** [January 17, 2022, 7:46am UTC](https://devforum.zoom.us/t/multiple-environment-callback-not-working-for-oauth-app/62743 "2022-01-17T07:46:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![khanmdmudassir](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/khanmdmudassir/32/18223_2.png) [@khanmdmudassir](https://devforum.zoom.us/u/khanmdmudassir)\
**Post date:** [January 19, 2022, 7:41am UTC](https://devforum.zoom.us/t/multiple-environment-callback-not-working-for-oauth-app/62743/2 "2022-01-19T07:41:15Z")

</div>

I got it working. After reading below post by @tommy

> [@Does zoom support more than two environments for oauth2?](https://devforum.zoom.us/t/does-zoom-support-more-than-two-environments-for-oauth2/11052/12):
>
> Hey @tuancode, @michael.solomon, This is totally possible! slight_smile 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, dyna…

The mistake I was making was not including the domain (i.e. [app.domain.com](http://app.domain.com)) in whitelist url.

Thanks! 🙂

---

_[View the full topic](https://devforum.zoom.us/t/multiple-environment-callback-not-working-for-oauth-app/62743)._
