# OAuth Authorize breaks out of frame

**URL:** <https://devforum.zoom.us/t/oauth-authorize-breaks-out-of-frame/15589>\
**Category:** API and Webhooks\
**Created:** [April 30, 2020, 3:18pm UTC](https://devforum.zoom.us/t/oauth-authorize-breaks-out-of-frame/15589 "2020-04-30T15:18:43Z")\
**Posts on this page:** 6\
**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 30, 2020, 3:18pm UTC](https://devforum.zoom.us/t/oauth-authorize-breaks-out-of-frame/15589/1 "2020-04-30T15:18:43Z")

</div>

**Description**  
I feel like a few weeks ago this did not attempt to break frames.

We are using the WebSDK because we want to keep our clients within our application environment. The idea is that when they elect to leave the meeting, they are back to where they were in our environment instantly, without having to navigate windows.

We load this in a frame so that authentication does not take them out of our application. We then also load the Web UI in the same frame because many of the JS libraries required conflict with our application.

I also noticed that when clicking to Leave Meeting, the frame is again broken and takes the user to a Zoom URL, which also takes them out of our application.

There are dev solutions I can hack to get around all the noise in the process, but a solution from the source is always better.

What is the purpose behind the frame breaks, and what is a suggested workflow that is not cumbersome for our clients?

**Error**  
N/A

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

**Which Endpoint/s?**  
[https://zoom.us/oauth/authorize](https://zoom.us/oauth/authorize)

**How To Reproduce (If applicable)**  
N/A

**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 30, 2020, 4:06pm UTC](https://devforum.zoom.us/t/oauth-authorize-breaks-out-of-frame/15589/2 "2020-04-30T16:06:33Z")

</div>

In attempting to move to new window instead of iframe, I receive this error on initial authentication:

Invalid redirect: [https://azdt-kwilliams2/st2022/resources/WebMeet/Resources/WebMeetAPI\_AuthZoom.html](https://azdt-kwilliams2/st2022/resources/WebMeet/Resources/WebMeetAPI_AuthZoom.html) (4,700)

This is my OAuth App API redirect URL:

[https://azdt-kwilliams2/st2022/resources/WebMeet/Resources/WebMeetAPI\_AuthZoom.html](https://azdt-kwilliams2/st2022/resources/WebMeet/Resources/WebMeetAPI_AuthZoom.html)

**This did work last week, 4/22/2020**

---

<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 5, 2020, 5:45pm UTC](https://devforum.zoom.us/t/oauth-authorize-breaks-out-of-frame/15589/3 "2020-05-05T17:45:32Z")

</div>

Hey @kmwill23,

Make sure your redirect url is a valid url.

Also make sure your [redirect url in your OAuth requests](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token) matches with your redirect and whitelist urls in the Zoom App Marketplace settings.

Thanks,  
Tommy

---

<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 5, 2020, 6:07pm UTC](https://devforum.zoom.us/t/oauth-authorize-breaks-out-of-frame/15589/4 "2020-05-05T18:07:56Z")

</div>

Hello Tommy!

I did find that whitelist solution from another topic. Seems like it would make sense for this redirect url to be automatically whitelisted. As I mentioned above, this was not a requirement on April 22nd.

You didn’t respond to my original question about frame breaking in the original topic. Any feedback?

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [May 8, 2020, 9:23pm UTC](https://devforum.zoom.us/t/oauth-authorize-breaks-out-of-frame/15589/5 "2020-05-08T21:23:42Z")

</div>

Hey @kmwill23, please pardon the delay in our responses right now.

We don’t support the use of iframes to view Zoom auth pages or meetings; there are just too many contingencies where this could break for us to be able to support.

You are however able to pass the user’s state info on the end of the [Redirect URL](https://marketplace.zoom.us/docs/guides/auth/oauth#preserving-user-state-in-redirect-urls). This will bring the user back to the application with the needed context.

---

<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:07pm UTC](https://devforum.zoom.us/t/oauth-authorize-breaks-out-of-frame/15589/6 "2020-08-21T21:07:29Z")

</div>

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


