# Oauth/token redirects to oauth/signin

**URL:** <https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736>\
**Category:** API and Webhooks\
**Created:** [April 17, 2020, 8:03pm UTC](https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736 "2020-04-17T20:03:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmwill23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kmwill23/32/6297_2.png) [@kmwill23](https://devforum.zoom.us/u/kmwill23)\
**Post date:** [April 17, 2020, 8:03pm UTC](https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736/1 "2020-04-17T20:03:51Z")

</div>

**Description**  
In the documentation located at [https://marketplace.zoom.us/docs/guides/auth/oauth](https://marketplace.zoom.us/docs/guides/auth/oauth) the API call for oath/token is called using the code gathered from oath/authorize. However, when I take that code and all the other requirements for oath/token and make the call, the response is HTML content from the following URL:

“[https://zoom.us/oauth/signin?\_rnd=1587150466063&client\_id&redirect\_uri=](https://zoom.us/oauth/signin?_rnd=1587150466063&client_id&redirect_uri=)&response\_type&\_x\_zm\_rtaid=tAkgwXs0SASxLwBK-JJyJw.1587150466062.f99016a0bfd7e10c817eee68728833dd&\_x\_zm\_rhtaid=383”

I tried this server-side and client-side with the same response result. I tried client-side just to see if it was doing icky session checks, thus the redirect to signin.

The documentation states that a JSON result is returned on success, but it does not mention what result to expect on failure. So I expect this is some undesirable failure result. Undesirable because it would be so much more handy if, on failure, a JSON response with a reason for failure was returned!

My first thought is something off in the way I am creating the header for the call:

ClientID:ClientSecret  
IFAJNnvTzyQ\_Ue1hv3PCg:ERQHCytYJXYWCcHBb2BguRxTzAQDfFdz

Resulting Base64 String:  
SUZBSk5udlR6eVFfVWUxaHYzUENnOkVSUUhDeXRZSlhZV0NjSEJiMkJndVJ4VHpBUURmRmR6

Applied as the header:  
Authorization: Basic SUZBSk5udlR6eVFfVWUxaHYzUENnOkVSUUhDeXRZSlhZV0NjSEJiMkJndVJ4VHpBUURmRmR6

Just verified the Base64 conversion here: [https://www.base64encode.org/](https://www.base64encode.org/)

Here’s the URI I am using:  
[https://zoom.us/oauth/token?grant\_type=authorization\_code&code=Ty0VjQvN3V\_pzBbxhWAQsSA\_GZVVLnLZg&redirect\_uri=](https://zoom.us/oauth/token?grant_type=authorization_code&code=Ty0VjQvN3V_pzBbxhWAQsSA_GZVVLnLZg&redirect_uri=)

The code changes each time I run outh/authorize. Always leads to the redirect.

**Error**  
HTTP redirect + HTML instead of JSON

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
oauth/token

**How To Reproduce (If applicable)**  
Not sure in this case

**Screenshots (If applicable)**  
N/A

**Additional context**  
N/A

---

<div class="post-metadata">

**Author:** ![kmwill23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kmwill23/32/6297_2.png) [@kmwill23](https://devforum.zoom.us/u/kmwill23)\
**Post date:** [April 17, 2020, 8:14pm UTC](https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736/2 "2020-04-17T20:14:06Z")

</div>

Self-solve!

I made the assumption that if the endpoint did not require POST data, then it must be a GET.

Switched to POST, and works.

---

<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 19, 2020, 6:15am UTC](https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736/3 "2020-04-19T06:15:49Z")

</div>

Happy to hear you figured it out! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![laxman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/laxman/32/7429_2.png) [@laxman](https://devforum.zoom.us/u/laxman)\
**Post date:** [May 6, 2020, 10:10am UTC](https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736/4 "2020-05-06T10:10:56Z")

</div>

when I add button in my aapication  
Add to ZOOM and when external user click on button then we got the message

You cannot authorize the app

This app cannot be installed outside of the developer’s account. Please contact the application developer to get support with installing this application.

please help me How I can add seeting so everyone can use this

---

<div class="post-metadata">

**Author:** ![kmwill23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kmwill23/32/6297_2.png) [@kmwill23](https://devforum.zoom.us/u/kmwill23)\
**Post date:** [May 6, 2020, 7:18pm UTC](https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736/5 "2020-05-06T19:18:11Z")

</div>

Off topic, but I think I have an answer for you. Curious that it is related to a question I am asking in a different topic!

The OAuth API for your App is not published to the marketplace. This works fine for development purposes, but it does restrict your users to only that single Developer account which controls the APIs. Others will get this message that they are not authorized.

If you are ready to make this public, you can Publish to the Marketplace. If you are not ready, and still want to test with more users, those users need to be added to your Developer account. This can be done here:

> **[Video Conferencing, Web Conferencing, Webinars, Screen Sharing](https://zoom.us/signin)**
>
> Zoom is the leader in modern enterprise video communications, with an easy, reliable cloud platform for video and audio conferencing, chat, and webinars across mobile, desktop, and room systems. Zoom Rooms is the original software-based conference...

Click on User Management. Here you can invite others to your account, and they will then be able to test using your unpublished API.

Official Dev Advocates, feel free to correct any points that may not be clear!

---

<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 12, 2020, 5:14am UTC](https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736/6 "2020-05-12T05:14:26Z")

</div>

Spot on @kmwill23!

@laxman, to install your OAuth / Chatbot app outside your Zoom account, you need to publish it to the [Zoom App Marketplace](https://marketplace.zoom.us/docs/guides/publishing).

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, 9:15pm UTC](https://devforum.zoom.us/t/oauth-token-redirects-to-oauth-signin/13736/7 "2020-08-21T21:15:22Z")

</div>

Closed on August 21, 2020, 9:15pm UTC


