# How to get the SSO Token for use with loginWithSSOToken?

**URL:** <https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024>\
**Category:** Meeting SDK\
**Created:** [December 9, 2020, 3:58pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024 "2020-12-09T15:58:31Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![don\_ucw](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@don\_ucw](https://devforum.zoom.us/u/don_ucw)\
**Post date:** [December 9, 2020, 3:58pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/1 "2020-12-09T15:58:31Z")

</div>

I understand, that to use the Windows SDK for SSO signin takes three steps:

(1) register our organization for ZOOM SSO and setup your Zoom SSO provider

(2) in our Windows App, do something that gets the user to login SSO, then get the SSO token

(3) in our Windows App, pass the SSO token to the SDK call `loginWithSSOToken`

We have done #1, and can login (manually) with SSO using our MS Azure AD.

We know how to do #3 - once we have the SSO token.

The problem is step #2 - _how do we get the SSO token_? We have scoured the forum postings, the SDK, and have had multiple tickets with Zoom, messages to the developer support and have not gotten _any_ answers.

The only asnwer we get is “the zoom backend returns the SSO token” - can someone please tell us how to call the zoom backend from a Windows App using the Zoom SDK to have it return us the SSO token? A code snippet would be greatly appreciated.

thanks

---

<div class="post-metadata">

**Author:** ![don\_ucw](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@don\_ucw](https://devforum.zoom.us/u/don_ucw)\
**Post date:** [December 10, 2020, 10:57pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/2 "2020-12-10T22:57:47Z")

</div>

We have tried using Zoom OAuth - but that token gets rejected by the loginWithSSOToken.

> **[OAuth 2.0 - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/oauth)**
>
> OAuth with Zoom
> 
> The Zoom API uses OAuth 2.0 to authenticate and authorize users to make requests. To setup access credentials and request scopes for yo...

We have tried using Users TOkens - but that gets rejected by the loginWithSSOToken.

> **[Access Credentials - Client SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/native-sdks/credentials)**
>
> Access Credentials
> 
> Zoom SDKs are authenticated using account-level access credentials (SDK Key & Secret) and user-level tokens (User Tokens and Zoom Ac...

We have tried scraping the screen results from an interactive SSO login - but that gets rejected by the loginWithSSOToken.  
https://.zoom.us/saml/login?from=desktop

We have contacted customer support many times, sent emails to the development group and posts on this forum - we are getting no answers - can you please directr this to someone who can help?

---

<div class="post-metadata">

**Author:** ![don\_ucw](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@don\_ucw](https://devforum.zoom.us/u/don_ucw)\
**Post date:** [December 11, 2020, 3:06pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/3 "2020-12-11T15:06:21Z")

</div>

It looks like we can get the token by going to: [https://xxxxx.zoom.us/saml/login?from=desktop](https://xxxxx.zoom.us/saml/login?from=desktop), then scraping the token from the launch zoom button. It appears this is a short lived token with one time use.

Is there an option we can put on the URL to have a redirect url? Scraping the screen for the token is a poor practice and we would like to avoid it.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 4, 2021, 10:49pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/4 "2021-01-04T22:49:54Z")

</div>

Hey @don_ucw,

Thanks for using the dev forum!

The SSO token is provided by the identity provider after your organization has been configured with Zoom SSO, and your identity provider has also been configured with Zoom SSO. If all went well, the user will login and then at some point in the SSO process the identity provider will provide the token appended to a url. The token will follow “zt=” in the url string. For example, if you used Google, there would be a url that looks like this:

 ![Screen Shot 2020-05-21 at 10.34.04 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/bf8f5322b8bf36c01daa8d1b51e1114adf34f3d4.png).

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![jackz314](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackz314/32/24376_2.png) [@jackz314](https://devforum.zoom.us/u/jackz314)\
**Post date:** [March 11, 2021, 6:36am UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/5 "2021-03-11T06:36:54Z")

</div>

This isn’t really clear, what exactly is “at some point”? Does this differ for all SSO providers? If this is defined by zoom’s API, is there a “universal” way that we can get this for different SSO providers (just like on the Zoom website)? Is there further documentation on this?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 11, 2021, 10:28pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/6 "2021-03-11T22:28:36Z")

</div>

Hey @jackz314,

I apologize, let me clarify. Zoom uses SAML 2.0 for SSO. The “at some point” that I am referring to is the reply URL with the token attached at the end. Check out Microsoft Azure’s explanation of reply URL here: [Understand SAML-based single sign-on (SSO) for apps in Azure Active Directory | Microsoft Docs](https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-saml-single-sign-on#:~:text=Specifies%20where%20the%20application%20expects,reply%20URLs%20for%20multiple%20subdomains). The SSOToken will be appended to the reply URL after “zt=”.

Thanks  
Michael

---

<div class="post-metadata">

**Author:** ![jackz314](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackz314/32/24376_2.png) [@jackz314](https://devforum.zoom.us/u/jackz314)\
**Post date:** [March 18, 2021, 12:08pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/7 "2021-03-18T12:08:38Z")

</div>

By going to the [https://xxx.zoom.us/saml/login?from=desktop](https://xxx.zoom.us/saml/login?from=desktop) URL, my idp provides a link with a short token (8 characters) with the URL like this [https://xxx.zoom.us/saml/mobile\_success?status=success&token=xxxxxxxx](https://xxx.zoom.us/saml/mobile_success?status=success&token=xxxxxxxx). How do I exchange that for the actual SSO token?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 18, 2021, 11:05pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/8 "2021-03-18T23:05:07Z")

</div>

Hey @jackz314,

Who is your IDP?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![jackz314](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackz314/32/24376_2.png) [@jackz314](https://devforum.zoom.us/u/jackz314)\
**Post date:** [March 19, 2021, 12:34pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/9 "2021-03-19T12:34:21Z")

</div>

USC (University of Southern California)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 22, 2021, 9:25pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/10 "2021-03-22T21:25:59Z")

</div>

Hey @jackz314,

And you have successfully configured that IDP to be compatible with Zoom?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![jackz314](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackz314/32/24376_2.png) [@jackz314](https://devforum.zoom.us/u/jackz314)\
**Post date:** [March 24, 2021, 12:39am UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/11 "2021-03-24T00:39:26Z")

</div>

I didn’t configure it, it was compatible before (I am able to login with SSO on Zoom clients).

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 24, 2021, 6:13pm UTC](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/12 "2021-03-24T18:13:41Z")

</div>

Hey @jackz314,

Do you have a vanityURL?

Thanks!  
Michael
