# When Adding a new Oauth App, Zoom tries to re-direct to localhost

**URL:** <https://devforum.zoom.us/t/when-adding-a-new-oauth-app-zoom-tries-to-re-direct-to-localhost/88193>\
**Category:** Authentication\
**Created:** [May 10, 2023, 11:09pm UTC](https://devforum.zoom.us/t/when-adding-a-new-oauth-app-zoom-tries-to-re-direct-to-localhost/88193 "2023-05-10T23:09:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![accesstelehealth](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/accesstelehealth/32/822_2.png) [@accesstelehealth](https://devforum.zoom.us/u/accesstelehealth)\
**Post date:** [May 10, 2023, 11:09pm UTC](https://devforum.zoom.us/t/when-adding-a-new-oauth-app-zoom-tries-to-re-direct-to-localhost/88193/1 "2023-05-10T23:09:37Z")

</div>

When I attempt to add a new server-to-server Oauth application (using the blue ‘Add’ button under the ‘Add your app’ heading on the ‘Activcation’ step) It will take me to `https://zoom.us/oauth/authorize?response_type=code&client_id={ClientId}&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fcallback` Which then redirects back to `http://localhost:5000/callback?code={code}`.

I do not define localhost anywhere in my configuration, that seems to be hardcoded somewhere in the zoom website.

The resulting issue is that the app is not being added.

---

<div class="post-metadata">

**Author:** ![MultiplayerSession](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/multiplayersession/32/66446_2.png) [@MultiplayerSession](https://devforum.zoom.us/u/MultiplayerSession)\
**Post date:** [May 11, 2023, 7:38pm UTC](https://devforum.zoom.us/t/when-adding-a-new-oauth-app-zoom-tries-to-re-direct-to-localhost/88193/2 "2023-05-11T19:38:05Z")

</div>

For our OAuth application, the **Activation** section’s **Add** button seems to be using the URL we entered in the **App Credentials** section’s **Redirect URL for OAuth** field. What field value do you see there?

---

<div class="post-metadata">

**Author:** ![accesstelehealth](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/accesstelehealth/32/822_2.png) [@accesstelehealth](https://devforum.zoom.us/u/accesstelehealth)\
**Post date:** [May 11, 2023, 11:46pm UTC](https://devforum.zoom.us/t/when-adding-a-new-oauth-app-zoom-tries-to-re-direct-to-localhost/88193/3 "2023-05-11T23:46:57Z")

</div>

Thanks, I had not entered a value in that field so I guess it was using a default? However after updating the Redirect URL the application is still not added, is there something I need to do with the code value in the callback? I can’t see it mentioned in the documentation anywhere.

---

<div class="post-metadata">

**Author:** ![MultiplayerSession](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/multiplayersession/32/66446_2.png) [@MultiplayerSession](https://devforum.zoom.us/u/MultiplayerSession)\
**Post date:** [May 16, 2023, 2:00pm UTC](https://devforum.zoom.us/t/when-adding-a-new-oauth-app-zoom-tries-to-re-direct-to-localhost/88193/4 "2023-05-16T14:00:07Z")

</div>

I guess I’m a little confused about which type of app you’re creating. OAuth apps have that Add button, but normally your user-facing workflow would be doing the redirect to Zoom and you’d populate your own URL, so I’m not sure why you’d want to use that Add button. Server-to-Server OAuth apps just have an Activate button. [Compare the two types of OAuth apps](https://developers.zoom.us/docs/api/rest/using-zoom-apis/#oauth-grant-types) and see which one makes most sense for your workflow.
