# SSO sometimes redirects to meeting page

**URL:** <https://devforum.zoom.us/t/sso-sometimes-redirects-to-meeting-page/84039>\
**Category:** Authentication\
**Created:** [March 2, 2023, 2:30pm UTC](https://devforum.zoom.us/t/sso-sometimes-redirects-to-meeting-page/84039 "2023-03-02T14:30:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FBoxerDev](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@FBoxerDev](https://devforum.zoom.us/u/FBoxerDev)\
**Post date:** [March 2, 2023, 2:30pm UTC](https://devforum.zoom.us/t/sso-sometimes-redirects-to-meeting-page/84039/1 "2023-03-02T14:30:49Z")

</div>

We have our Android application using AppAuth library with custom tabs for OAuth authorization.

We are using ` /authorize`

```auto
zoom.us/oauth/authorize?redirect_uri=https%3A%2F%2Fzoomboxerredirect.vmware.com%2F&client_id=apBktPWPSCaawCXIBQHnaw&response_type=code&state=Myu2ygIaAzzi_RM6l4462g&nonce=yb2G_H8NlYVThRO0lsWDUQ&code_challenge=XQ4ZnjrEa06nUy8Dn2LePK70--Z9h9Uiw-AJchI2dpE&code_challenge_method=S256

```

User login using SSO, and they are redirected to VMware Workspace One SSO client, after user is Authenticated by vmware, zoom SSO page is loaded `vmware.zoom.us/saml/SSO`, and in most of the cases this redirects to our `redirect_uri`, but in some cases this page don’t load redirect URI but it loads `vmware.zoom.us/meeting`.

I have compare a network log for both cases (when redirect\_uri and when /meeting) and I can’t determine why is it that some cases we are being redirected to `vmware.zoom.us/meeting` instead of the redirect URI.

---

<div class="post-metadata">

**Author:** ![FBoxerDev](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@FBoxerDev](https://devforum.zoom.us/u/FBoxerDev)\
**Post date:** [March 2, 2023, 2:33pm UTC](https://devforum.zoom.us/t/sso-sometimes-redirects-to-meeting-page/84039/2 "2023-03-02T14:33:58Z")

</div>

These are the network trace for when we end in redirect\_uri and when we end on /meeting page

[meeting redirect.har](https://onevmw-my.sharepoint.com/:u:/g/personal/fcarapaica_vmware_com/EYUKJlKW5wdOk-k9h3WzxBoBMty08KHFX9kR3T1kLQhEIQ?e=PfDe6q)

[redirect\_uri redirect.har](https://onevmw-my.sharepoint.com/:u:/g/personal/fcarapaica_vmware_com/EQPtB8zQZclDnIqV7kwXjcsBV8bDIhNUtQpz9v3rO73lrA?e=pOePIW)

Reviewing the .har files we could see that the inflection point on which they start to differ is after user is authenticated by workspace one SSO and calls the zoom SSO to finish the OAuth flow.

We would see **location** header and **redirectURL** pointing to this /meeting for when we have this issue happening.

---

<div class="post-metadata">

**Author:** ![FBoxerDev](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@FBoxerDev](https://devforum.zoom.us/u/FBoxerDev)\
**Post date:** [March 4, 2023, 8:02am UTC](https://devforum.zoom.us/t/sso-sometimes-redirects-to-meeting-page/84039/3 "2023-03-04T08:02:27Z")

</div>

Hello forum, could someone please take a look to this issue.

Any ideas or suggestion on how to fix it are welcome 🙂

---

<div class="post-metadata">

**Author:** ![FBoxerDev](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@FBoxerDev](https://devforum.zoom.us/u/FBoxerDev)\
**Post date:** [March 8, 2023, 6:16am UTC](https://devforum.zoom.us/t/sso-sometimes-redirects-to-meeting-page/84039/4 "2023-03-08T06:16:45Z")

</div>

I was able to notice that when the authentication flow ends in the `/meetings` page, we are missing the `_zm_bu` cookie, this is when loading `https://vmware.zoom.us/saml/SSO`.

On the contrary when the flow ends on the redirectURI (the expected result), `_zm_bu` cookie is present containing the right `/authorized` endpoint with the redirectURI  
extract:

```auto
{
              "name": "_zm_bu",
              "value": "https%3A%2F%2Fzoom.us%2Foauth%2Fauthorize%3Fclient_id%3DapBktPWPSCaawCXIBQHnaw%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%252Fzoomboxerredirect.vmware.com%252F%26state%3DgEV8ROMUh9e0jh9dGC3yvw%26code_challenge%3D9h3F6xPpnmkR3olU_y7F73aM9cSwadSFoiYHV7HDmk0%26code_challenge_method%3DS256",
              "path": "/",
              "domain": ".zoom.us",
              "expires": "1969-12-31T23:59:59.000Z",
              "httpOnly": false,
              "secure": true
            },

```

I found this issue with the same cookie `_zm_bu`, but I believe is the opposite case.

> [@After authenticating OAuth app, redirect\_uri is persisted in a cookie, causing redirects back to the app on any zoom login](https://devforum.zoom.us/t/after-authenticating-oauth-app-redirect-uri-is-persisted-in-a-cookie-causing-redirects-back-to-the-app-on-any-zoom-login/13742):
>
> Description We are developing an OAuth user level App to enable integration with our scheduling service. We have everything working except we are seeing a strange behavior during user authentication. When in our application, we direct the user to enable the Zoom integration and authenticate with the OAuth app using the following URL: (trying to avoid links since I’m a new user, so bear with me) http:// zoom. us/oauth/authorize?client\_id=\<our\_client\_id\>&response\_type=code&redirect\_uri=https:…

Could someone help me find out why if both flow (`meeting redirect.har` and `redirect_uri redirect.har`) have the same steps but they end on a different page.
