# Incorrect redirections with Google SSO authentication

**URL:** <https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240>\
**Category:** API and Webhooks\
**Created:** [May 12, 2020, 1:47pm UTC](https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240 "2020-05-12T13:47:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kahuja](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kahuja/32/6977_2.png) [@kahuja](https://devforum.zoom.us/u/kahuja)\
**Post date:** [May 12, 2020, 1:47pm UTC](https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240/1 "2020-05-12T13:47:28Z")

</div>

Hi Folks,

Here is my situation:

- I have Oauth implemented for an app which works fine for authorizing the app using my developer account.
- The developer account is tied to Zoom via Google SSO
- When I visit my app and try to authorize it to connect to Zoom, I am asked to log into my Zoom account and then post authentication, redirected back to my website’s authorization url.
- All works as expected.

However, I noticed that when I am logged into multiple Google accounts. The process of authorization breaks and needs to started again. **It only succeeds on second attempt.**

**When I am signed into multiple Google accounts** ,  
– the workflow initially redirects to:  
_https:// zoom. us/oauth2/login?client\_id=XXXXXXX&response\_type=code&redirect\_uri=my-redirection-url&\_x\_zm\_rtaid=XXXXXXXXX&\_x\_zm\_rhtaid=xxxx_

– and ends up on error page (on first attempt):  
_https:// zoom. us/signin?error=access\_denied&\_x\_zm\_rtaid=xxxxxx&\_x\_zm\_rhtaid=xxxxxxx_

On second attempt, it works fine.

**When I am signed into only one Google account** , no issues occur and I am correctly authorized and redirected back to my authorization URL

Has someone faced similar problems? Can someone confirm if this is something related to my implementation or possibly an issue with Zoom’s authentication mechanism?

Thank you.

---

<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 18, 2020, 5:00pm UTC](https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240/2 "2020-05-18T17:00:45Z")

</div>

Hey @kahuja,

I have seen a similar issue, which was resolved by making sure there were no spaces in the authorize and redirect urls.

> [@"Invalid Token!" error message when trying to refresh oauth token](https://devforum.zoom.us/t/invalid-token-error-message-when-trying-to-refresh-oauth-token/13363/40):
>
> Happy to help @picktime! In case this can help others, Picktime’s issue was an empty space in the [authorize url](https://marketplace.zoom.us/docs/guides/auth/oauth#step-1-request-user-authorization) between the client\_id and redirect\_url query param: https://zoom.us/oauth/authorize?response\_type=code&client\_id={client\_id} &redirect\_uri={redirect\_url} -Tommy

Please let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![kahuja](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kahuja/32/6977_2.png) [@kahuja](https://devforum.zoom.us/u/kahuja)\
**Post date:** [May 18, 2020, 6:20pm UTC](https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240/3 "2020-05-18T18:20:49Z")

</div>

Thanks Tommy.  
I have checked my code as well the URI I specified in Zoom App panel - both are correct and without spaces. I do have the redirect URI encoded but when I decode it, I get the correct URI.

Thinking through, if the URI had any issues, it should not work normally when only one Google account is logged into.

Any other suggestions?

---

<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 21, 2020, 11:58pm UTC](https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240/4 "2020-05-21T23:58:49Z")

</div>

Hey @kahuja,

True, can you attach a video of this issue so I can send it to our engineers?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![kahuja](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kahuja/32/6977_2.png) [@kahuja](https://devforum.zoom.us/u/kahuja)\
**Post date:** [May 22, 2020, 2:23am UTC](https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240/5 "2020-05-22T02:23:54Z")

</div>

I was making the video, but the issue vanished! Retried a number of times, including on different browsers but I am unable to replicate it.

If it recurs, I will get you the video in this thread.

Thanks for looking into this, Tommy.

---

<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 27, 2020, 7:54pm UTC](https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240/6 "2020-05-27T19:54:02Z")

</div>

Thanks @kahuja! Glad it is working! 🙂

-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:33pm UTC](https://devforum.zoom.us/t/incorrect-redirections-with-google-sso-authentication/17240/7 "2020-08-21T21:33:25Z")

</div>

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


