# Invalid Redirect(4700) Error when oAuth flow

**URL:** <https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995>\
**Category:** App Marketplace\
**Created:** [April 27, 2020, 5:17am UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995 "2020-04-27T05:17:30Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![thanh.huynh](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@thanh.huynh](https://devforum.zoom.us/u/thanh.huynh)\
**Post date:** [August 11, 2020, 7:47am UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995/21 "2020-08-11T07:47:49Z")

</div>

Hi tommy,

I encoded the url but still received error

This one is not working: [https://zoom.us/oauth/authorize?response\_type=code&client\_id=C3ECOv6UQXysVDwKV0jN7Q&redirect\_uri=https%3A%2F%2F3cx-msteams-api.infisys.io%2FZoom%2FAuth?state=h682%7CM%7D%5D%5BM](https://zoom.us/oauth/authorize?response_type=code&client_id=C3ECOv6UQXysVDwKV0jN7Q&redirect_uri=https%3A%2F%2F3cx-msteams-api.infisys.io%2FZoom%2FAuth?state=h682%7CM%7D%5D%5BM)

But this one works fine: [https://zoom.us/oauth/authorize?response\_type=code&client\_id=C3ECOv6UQXysVDwKV0jN7Q&redirect\_uri=https%3A%2F%2F3cx-msteams-api.infisys.io%2FZoom%2FAuth?state=h682abc](https://zoom.us/oauth/authorize?response_type=code&client_id=C3ECOv6UQXysVDwKV0jN7Q&redirect_uri=https%3A%2F%2F3cx-msteams-api.infisys.io%2FZoom%2FAuth?state=h682abc)

---

<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, 5:24pm UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995/22 "2020-08-11T17:24:33Z")

</div>

Hey @thanh.huynh,

For the one that works, did you base64 encode it?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![thanh.huynh](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@thanh.huynh](https://devforum.zoom.us/u/thanh.huynh)\
**Post date:** [August 12, 2020, 2:27am UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995/23 "2020-08-12T02:27:37Z")

</div>

Hi,

After I base64 encoded the state value, its value became too long  
And the site threw 500 error code  
Maybe I will try cut some content

---

<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:03am UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995/24 "2020-08-12T06:03:40Z")

</div>

Thanks for the update @thanh.huynh

Let me know if you find a good middle ground. 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![thanh.huynh](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@thanh.huynh](https://devforum.zoom.us/u/thanh.huynh)\
**Post date:** [August 12, 2020, 11:14am UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995/25 "2020-08-12T11:14:29Z")

</div>

Hi tommy,

I still receive Invalid redirect url (4,700) error sometimes  
Because you know. Base64 can contain + character  
You can read the definition here: [https://en.wikipedia.org/wiki/Base64](https://en.wikipedia.org/wiki/Base64)  
For example, the following state value will cause error:  
TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz  
IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg  
dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu  
dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo  
ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4+=

It work fine if redirect url doesn’t contain any + characters

---

<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, 5:06pm UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995/26 "2020-08-12T17:06:06Z")

</div>

Hey @thanh.huynh,

You can also try url encoding your state param: [https://www.urlencoder.org/](https://www.urlencoder.org/)

My suggestion for you is to only have url safe characters in your state param.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![z.olexandr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/z.olexandr/32/32250_2.png) [@z.olexandr](https://devforum.zoom.us/u/z.olexandr)\
**Post date:** [October 28, 2021, 7:47am UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995/27 "2021-10-28T07:47:33Z")

</div>

Hi, we faced same issue for our project, but it works a bit weird. One of our customers keeps getting 4700 error, while for other people it works fine. We don’t use any additional parameters in our authorization url, so url is the same for every user. It’s just

[https://zoom.us/oauth/authorize?response\_type=code&redirect\_uri=](https://zoom.us/oauth/authorize?response_type=code&redirect_uri=)\<our\_redirect\>&client\_id=\<our\_client\_id\>

And our redirect\_url is also the same for every user, so it’s unclear for us why it works for most of the people, except for one specific person.

Can you please help us with this?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 29, 2021, 9:48am UTC](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995/28 "2021-10-29T09:48:04Z")

</div>

Hi @z.olexandr,

Can you send us an email at [developersupport@zoom.us](mailto:developersupport@zoom.us) with the authorization url being used and an example user/email that receives the error? This will help to take a closer look.

Thanks,  
Will

[Previous page](https://devforum.zoom.us/t/invalid-redirect-4700-error-when-oauth-flow/14995.md?page=1)
