# Zoom API in localhost

**URL:** <https://devforum.zoom.us/t/zoom-api-in-localhost/1431>\
**Category:** API and Webhooks\
**Created:** [July 14, 2018, 10:02am UTC](https://devforum.zoom.us/t/zoom-api-in-localhost/1431 "2018-07-14T10:02:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maja\_Grubic](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@Maja\_Grubic](https://devforum.zoom.us/u/Maja_Grubic)\
**Post date:** [July 14, 2018, 10:02am UTC](https://devforum.zoom.us/t/zoom-api-in-localhost/1431/1 "2018-07-14T10:02:38Z")

</div>

Hi,

I’m having a hard time authenticating with OAuth in localhost. I have a server running on localhost with an associated domain name. When registering the new app for OAuth access and entering this domain name for redirect URI, I can’t even&nbsp;save that domain name (I assume it’s because it’s not https). I overcome this by entering a \_bit.ly&nbsp;\_redirect url. I issue a successful request to&nbsp;

```
https://zoom.us/oauth/authorize?response\_type=code&client\_id=CLIENT\_ID&redirect\_uri=REDIRECT\_URI

```

I grant access and am redirected back to my redirect uri, but with no code.

When I replace the redirect uri with a&nbsp;publicly&nbsp;available https website, I get a code back. I assume this is again because of http redirect uri.

What is the proper way to test OAuth on localhost?&nbsp;

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [July 16, 2018, 4:50pm UTC](https://devforum.zoom.us/t/zoom-api-in-localhost/1431/2 "2018-07-16T16:50:41Z")

</div>

Hi Maja,&nbsp;

A good workaround to test OAuth on your localhost is to use a service that exposes your localhost to the internet such as [ngrok.io](http://ngrok.io). Afterwards you can use the ngrok url as the redirect url.

Thanks

---

<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, 5:50pm UTC](https://devforum.zoom.us/t/zoom-api-in-localhost/1431/3 "2020-08-21T17:50:30Z")

</div>


