# Oauth app for zoom integration

**URL:** <https://devforum.zoom.us/t/oauth-app-for-zoom-integration/9695>\
**Category:** API and Webhooks\
**Created:** [March 26, 2020, 7:05am UTC](https://devforum.zoom.us/t/oauth-app-for-zoom-integration/9695 "2020-03-26T07:05:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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 2, 2020, 6:44pm UTC](https://devforum.zoom.us/t/oauth-app-for-zoom-integration/9695/7 "2020-04-02T18:44:48Z")

</div>

Hey @schopra,

Thanks for the detailed explanation!

The OAuth app you are developing is not hosted on a salesforce domain though. Your code does not live in salesforce, it lives within your own domain which is also the domain of the redirect url, whitelist url, and verification url (we can also do domain verification via DNS).

I think your question is really how do I redirect back to either [companyalpha.my.salesforce.com](http://companyalpha.my.salesforce.com/) or [companybeta.my.salesforce.com](http://companybetamy.salesforce.com/) after they install the app since my redirect URL takes me to my domain. You can simply use the `state` query param which persists through the [OAuth flow](https://marketplace.zoom.us/docs/guides/auth/oauth). The user would click the connect Zoom account button (in their salesforce account or where ever they are connecting from) which navigates to [your Zoom Apps install url](https://marketplace.zoom.us/docs/guides/auth/oauth#step-1-request-user-authorization) (with the state query param), then authorize your app, and then land on your redirect url with the query param `?state=companyalpha` which you can then redirect them back to [companyalpha.my.salesforce.com](http://companyalpha.my.salesforce.com).

You can see an example of this OAuth flow with the Zoom Sales Force App:

[https://marketplace.zoom.us/apps/c8ZcoziZQoaFPE8x6INBag](https://marketplace.zoom.us/apps/c8ZcoziZQoaFPE8x6INBag)

Let me know if that clears things up! 🙂

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/oauth-app-for-zoom-integration/9695)._
