# Login with Oauth2 API Invalid redirect url (4,700)

**URL:** <https://devforum.zoom.us/t/login-with-oauth2-api-invalid-redirect-url-4-700/51097>\
**Category:** API and Webhooks\
**Created:** [May 26, 2021, 2:13pm UTC](https://devforum.zoom.us/t/login-with-oauth2-api-invalid-redirect-url-4-700/51097 "2021-05-26T14:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hipogea](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hipogea/32/27354_2.png) [@hipogea](https://devforum.zoom.us/u/hipogea)\
**Post date:** [May 26, 2021, 2:13pm UTC](https://devforum.zoom.us/t/login-with-oauth2-api-invalid-redirect-url-4-700/51097/1 "2021-05-26T14:13:44Z")

</div>

I have created my app in zoom marketplace, everything is fine. Now I try to authenticate with OAuth2, as follows:

1. First I place a login link, with two query url params, where the CLIENT\_ID and the REDIRECT\_URL appear, both very well checked, the url is identical to the url of my app (The one that appears next to the install button, and the REDIRECT\_URL also is included in white list, all ok) .

**[https://zoom.us/oauth/authorize?response\_type=code&client\_id=[CLIENT\_ID]&redirect\_uri=[REDIRECT\_URL]](https://zoom.us/oauth/authorize?response_type=code&client_id=%5BCLIENT_ID%5D&redirect_uri=%5BREDIRECT_URL%5D)**

So far so good, the problem is that this URL only works when you have previously logged into the zoom account, and it fails when you have not logged in. The following error appears.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/0/302a7a80e94512805db573bfcc48f94cd6016b1b.png)

Please maybe I am in a misconception and it is not a problem, or is it a requirement to have a session open in zoom to authenticate?

---

<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:** [May 27, 2021, 4:47pm UTC](https://devforum.zoom.us/t/login-with-oauth2-api-invalid-redirect-url-4-700/51097/2 "2021-05-27T16:47:56Z")

</div>

Hi @hipogea,

Please see my reply here:

> [@Invalid Redirect URL 4,700](https://devforum.zoom.us/t/invalid-redirect-url-4-700/50799/5):
>
> Hi @hipogea, Thanks for sharing these details. When I tested your app just now, I didn’t have any issues installing using the installation URL: This is the URL you should be using to initiate the authorization/install flow. Thanks, Will

Thanks!  
Will

---

<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:** [May 27, 2021, 4:47pm UTC](https://devforum.zoom.us/t/login-with-oauth2-api-invalid-redirect-url-4-700/51097/3 "2021-05-27T16:47:59Z")

</div>

Closed on May 27, 2021, 4:47pm UTC


