# Integrating zoom in multi tenant application

**URL:** <https://devforum.zoom.us/t/integrating-zoom-in-multi-tenant-application/27377>\
**Category:** Web\
**Created:** [August 17, 2020, 1:44pm UTC](https://devforum.zoom.us/t/integrating-zoom-in-multi-tenant-application/27377 "2020-08-17T13:44:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [August 19, 2020, 7:53pm UTC](https://devforum.zoom.us/t/integrating-zoom-in-multi-tenant-application/27377/4 "2020-08-19T19:53:43Z")

</div>

Hey @nandish.y5,

> [@nandish.y5](#):
>
> Authorization code changes every time for same user  
> I would need user to give permissions once, and then use his account without navigating to authorization page every time.

The best way to handle this is to authorize once, and then use the [refresh tokens](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing).

> [@nandish.y5](#):
>
> Will OAuth take care requests coming from different domains, I mean if tenant1 configured his account with OAUTH app1, then for tenant2 with same OAUTH app1 it should ask to give permissions.

Not sure what you mean by this? Are you referring to multiple sub domains for OAuth?

> [@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…

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/integrating-zoom-in-multi-tenant-application/27377)._
