# OAuth redirect advanced setup issues

**URL:** <https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659>\
**Category:** App Marketplace\
**Created:** [June 17, 2020, 9:03pm UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659 "2020-06-17T21:03:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![thandley](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@thandley](https://devforum.zoom.us/u/thandley)\
**Post date:** [June 17, 2020, 9:03pm UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/1 "2020-06-17T21:03:21Z")

</div>

**Description**  
I’m developing a Zoom App that needs to interact with two versions of my own website. My website is going through a full rewrite and has different URL schemes for the same feature set. I want to have one Zoom App work with both of them so I don’t need to duplicate the work and confuse my users.

The problem I am encountering is the wildcard setup for multi-environment OAuth redirect URLs.

The old version of my website has to receive the redirect to this kind of URL scheme: https://[customer name].civicclerk.com/admin/setup/zoom.aspx

The new version of my website has to receive the redirect to this kind of URL scheme: https://[customer name].v8.civicclerk.com/SiteSettings/GlobalSettings/Integrations/Zoom/ConnectToZoom

I need help configuring the OAuth redirect URLs in Zoom App Marketplace to make this work for all environments.

**Error**  
I can not get the zoom app OAuth redirect to work for both situations at the same time.

**Which App?**  
[https://marketplace.zoom.us/develop/apps/MkM3NqfZSf2a3pTBwdR0rQ](https://marketplace.zoom.us/develop/apps/MkM3NqfZSf2a3pTBwdR0rQ)

---

<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:** [June 18, 2020, 10:33pm UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/2 "2020-06-18T22:33:29Z")

</div>

Hey @thandley,

Have you tried the dynamic redirect url flow?

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

---

<div class="post-metadata">

**Author:** ![thandley](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@thandley](https://devforum.zoom.us/u/thandley)\
**Post date:** [June 18, 2020, 11:25pm UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/3 "2020-06-18T23:25:54Z")

</div>

Oops. It seems I failed to update my client id and secret on this version of the app. Sorry!

---

<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:** [June 19, 2020, 10:04pm UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/4 "2020-06-19T22:04:14Z")

</div>

Happy to hear you figured out the issue! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![raynald](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@raynald](https://devforum.zoom.us/u/raynald)\
**Post date:** [August 10, 2020, 9:52am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/5 "2020-08-10T09:52:17Z")

</div>

Hi @tommy,

Our app encounters this error “Invalid Redirect URL” today when someone links their zoom to our app. this not happen last week and everything is working fine until yesterday. What went wrong why the linking of the account no longer works, the app was published without a problem. Now our users can no longer link their zoom due to the error we encountered.

We have many subdomains e.g. [https://abc.domain.com](https://abc.domain.com), [https://xyz.domain.com](https://xyz.domain.com), etc.

Now we followed these steps but Still, I got the ‘Invalid Url’ error.

I’m looking forward to hearing from you, Thank you and have a good day.

Regards,  
Raynald

---

<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 10, 2020, 5:44pm UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/6 "2020-08-10T17:44:19Z")

</div>

Hey @raynald,

What is the name of your app? Happy to look into this for you.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![raynald](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@raynald](https://devforum.zoom.us/u/raynald)\
**Post date:** [August 11, 2020, 3:23am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/7 "2020-08-11T03:23:27Z")

</div>

Hi @tommy

Thank you for your quick response, the name of our app is ‘ **Squadzip** ’ and **'Squadzip - Zero Rated** ’

Regards,  
Raynald

---

<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 11, 2020, 4:40am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/8 "2020-08-11T04:40:02Z")

</div>

Thanks @raynald,

I have notified our engineers and they are looking into the issue. (ZOOM-162618)

-Tommy

---

<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 12, 2020, 6:58am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/9 "2020-08-12T06:58:57Z")

</div>

Hey @raynald, @thandley,

It should be fixed now! 🙂

Please try and let me know if you see any issue.

-Tommy

---

<div class="post-metadata">

**Author:** ![raynald](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@raynald](https://devforum.zoom.us/u/raynald)\
**Post date:** [August 13, 2020, 1:23am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/10 "2020-08-13T01:23:33Z")

</div>

Hi @tommy,

I confirm that the issue has been resolved, thank you for your quick response and have a nice day

Regards,  
Raynald

---

<div class="post-metadata">

**Author:** ![taylor.hurt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/taylor.hurt/32/6554_2.png) [@taylor.hurt](https://devforum.zoom.us/u/taylor.hurt)\
**Post date:** [August 13, 2020, 3:35am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/11 "2020-08-13T03:35:32Z")

</div>

@tommy

We seem to be experiencing something very similar. We are using the dynamic redirect flow and are experiencing issues with one of our subdomains returning the Invalid redirect: (4700) error. The error for us is specific to subdomains in Production. The setup and subdomains we have in Development work fine. We have double checked client IDs and domain setups. Any help would be appreciated!

The name of our app is Spaces by High Alpha.

Thanks!

---

<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 13, 2020, 5:48am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/12 "2020-08-13T05:48:34Z")

</div>

You are welcome! 🙂

Thanks,  
Tommy

---

<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 13, 2020, 5:49am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/13 "2020-08-13T05:49:21Z")

</div>

Hey @taylor.hurt,

Can you please create a new topic, as the original topic has been solved.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![raynald](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@raynald](https://devforum.zoom.us/u/raynald)\
**Post date:** [August 13, 2020, 6:53am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/14 "2020-08-13T06:53:51Z")

</div>

Hi @tommy

sorry to bother again

We have the same issue again but this time it only happens to the new users of zoom or to the first time linking their zoom account. This not happen if the zoom account is registered as our developer or the account was previously linked before.

Regards,  
Raynald

---

<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 13, 2020, 4:11pm UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/15 "2020-08-13T16:11:56Z")

</div>

Hey @raynald,

Can you please share steps to reproduce the issue in a new topic: #zoom-api

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![raynald](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@raynald](https://devforum.zoom.us/u/raynald)\
**Post date:** [August 27, 2020, 1:23am UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/16 "2020-08-27T01:23:25Z")

</div>

Hi @tommy

The issue has been fixed with the latest release last week. Thank you for your quick response and have a good day.

Regards,  
Raynald

---

<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 27, 2020, 10:38pm UTC](https://devforum.zoom.us/t/oauth-redirect-advanced-setup-issues/21659/17 "2020-08-27T22:38:29Z")

</div>

Hey @raynald,

You are welcome! Thanks, you too! 🙂

-Tommy
