# Zoom Application Wrong redirect

**URL:** <https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402>\
**Category:** App Marketplace\
**Created:** [May 27, 2019, 5:19am UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402 "2019-05-27T05:19:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![subhan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/subhan/32/923_2.png) [@subhan](https://devforum.zoom.us/u/subhan)\
**Post date:** [May 27, 2019, 5:19am UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/1 "2019-05-27T05:19:39Z")

</div>

Hi There,

1. I’ve created a new application for oAuth purpose.
2. I’ve put a redirect URI to my local host auth.
3. When I try to test the app using the given link in the application, it takes me to wrong url.

Here is the url I end up with: [https://zoom.us/](https://zoom.us/) **api/v1/zoom/complete-oauth?code=uEv2ENbnUG\_3bvrpQKqRa-lo3\_Gr7w-6g**

The highlighted part of the url is my local path, It should be localhost:8080/ **api/v1/zoom/complete-oauth?code=uEv2ENbnUG\_3bvrpQKqRa-lo3\_Gr7w-6g** instead of the above URL.

Can anyone please help me understand what can be possibly wrong with the app?

Thanks,  
Subhan Ahmed

---

<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:** [May 28, 2019, 8:41pm UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/2 "2019-05-28T20:41:26Z")

</div>

Hey @subhan, happy to help!

I am trying to reproduce the issue, Is this what your redirect URI field looks like?

![05%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/123cafb1e8d2989f4d18cb038813e6bd3f1819e8.png)

If not can you show me what you have in this field?

---

<div class="post-metadata">

**Author:** ![subhan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/subhan/32/923_2.png) [@subhan](https://devforum.zoom.us/u/subhan)\
**Post date:** [May 29, 2019, 1:39am UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/3 "2019-05-29T01:39:59Z")

</div>

Yes, This is exactly what I have. 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:** [May 29, 2019, 10:24pm UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/4 "2019-05-29T22:24:17Z")

</div>

Hey Subhan,

I was able to reproduce this issue, and we are working on a solution now.

I will post back when we have a solution.

Thanks for your patience!

---

<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:** [May 29, 2019, 10:38pm UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/5 "2019-05-29T22:38:08Z")

</div>

Hey @subhan,

This issue only happens with localhost urls. To solve this you could use [https://ngrok.com/](https://ngrok.com/) to turn your localhost server into a free server with a url, and replace the localhost redirect url with the ngrok url.

Instead of [http://localhost:8080/api/v1/zoom/complete-oauth](http://localhost:8080/api/v1/zoom/complete-oauth) it would be  
[https://d4c4477b.ngrok.io/api/v1/zoom/complete-oauth](https://d4c4477b.ngrok.io/api/v1/zoom/complete-oauth)

This way you can still develop and test locally and have your redirect url work!

Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![robinjoseph08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robinjoseph08/32/4584_2.png) [@robinjoseph08](https://devforum.zoom.us/u/robinjoseph08)\
**Post date:** [March 31, 2020, 8:20pm UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/6 "2020-03-31T20:20:47Z")

</div>

Hi,

I was originally having issues with a localhost URL as well, which is what brought me to this thread. I’m trying it with ngrok as well, and that’s also not working.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/4fc331eed6a181655c72668f17f106c0823eec09.png)

I tried it with my real domain/URL (even though nothing has been deployed yet), and that seems to work just fine. So it looks like there might be something specific to ngrok URLs.

Any help would be appreciated!

Thanks,  
Robin

---

<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:** [March 31, 2020, 10:21pm UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/7 "2020-03-31T22:21:40Z")

</div>

Hey @robinjoseph08,

Double check you have the correct ngrok url in your [whitelist urls](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-oauth-app#app-credentials).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:24pm UTC](https://devforum.zoom.us/t/zoom-application-wrong-redirect/4402/8 "2020-08-21T19:24:11Z")

</div>


