# How to login mobile sdk using OAuth?

**URL:** <https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954>\
**Category:** Meeting SDK\
**Created:** [July 10, 2019, 5:53am UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954 "2019-07-10T05:53:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [July 10, 2019, 5:53am UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/1 "2019-07-10T05:53:39Z")

</div>

**Description**  
Current Android SDK provides two ways to login to zoom account: email/password and SSO token.

There’s little document regarding how SSO token works. I tried to use Zoom REST API to complete OAuth flow, and get a so called “toke” via “[https://api.zoom.us/v2/users/me/token](https://api.zoom.us/v2/users/me/token)”. But sdk.loginWithSSOToken() does not seem to accept that token. I also tried to feed in access token directly, which does not work, either.

So my question is, is there any way in Android SDK to login without using email and password? The ideal flow is to use same user interface that Zoom app uses, where user can choose to enter email / password or use OAuth such as Google account to login.

**Which version?**  
Android SDK [v4.3.1.47200.0322](https://github.com/zoom/zoom-sdk-android/releases/tag/v4.3.1.47200.0322)

Thank you!  
-Jiulong

---

<div class="post-metadata">

**Author:** ![Fred\_Luo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fred_luo/32/62_2.png) [@Fred\_Luo](https://devforum.zoom.us/u/Fred_Luo)\
**Post date:** [July 10, 2019, 7:12am UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/2 "2019-07-10T07:12:33Z")

</div>

Hi liulongw  
Thanks for using zoom sdk.

You can login with zoom access token.

> **[Zoom Token & Zoom Access Token(ZAK) - Preface - Native SDKs - Zoom...](https://marketplace.zoom.us/docs/sdk/native-sdks/preface/zak)**
>
> Zoom Token & Zoom Access Token (ZAK) -- Non-login User Only
> 
> 
> 
> Contents
> 
> 
> 
> For Non-login users, the following three values are required to make API requ...

Sample : APIUserStartJoinMeetingActivity

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 10, 2019, 6:23pm UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/3 "2019-07-10T18:23:08Z")

</div>

Hi Jiulong,

Thanks for the post. The token that the loginWithSSOToken is expected is different from the token you retrieved from the Zoom API.

- The token for the loginWithSSOToken is from the SSO service provider. If you would like to know more: [https://support.zoom.us/hc/en-us/sections/200305453-Single-Sign-On](https://support.zoom.us/hc/en-us/sections/200305453-Single-Sign-On)
- The token you retrieved from the API is the Zoom API tokens, you can use these tokens to start a meeting without using email and password. The detailed info regarding this is mentioned by Fred.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [July 10, 2019, 8:42pm UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/4 "2019-07-10T20:42:55Z")

</div>

Thank you guys! I will check ZAK out.

---

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [July 11, 2019, 2:41am UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/5 "2019-07-11T02:41:42Z")

</div>

Hi @carson.zoom @Fred_Luo ,

Seems like I need to use StartMeetingParamsWithoutLogin with token and ZAK. However this params requires a scheduled meeting number as described in the document. Is there similar options (use token and zak) for instant meeting? Or is the meeting number optional I can simply put a null string?

Thanks,  
-Jiulong

---

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [July 11, 2019, 4:26pm UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/6 "2019-07-11T16:26:51Z")

</div>

Never mind. I can create an instant meeting via REST API.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 11, 2019, 5:33pm UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/7 "2019-07-11T17:33:14Z")

</div>

Hi jiulong,

Thanks for your reply and glad to hear that the problem is resolved. Please feel free to let us know if any other questions.

Thanks!

---

<div class="post-metadata">

**Author:** ![Fred\_Luo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fred_luo/32/62_2.png) [@Fred\_Luo](https://devforum.zoom.us/u/Fred_Luo)\
**Post date:** [July 12, 2019, 12:53am UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/8 "2019-07-12T00:53:59Z")

</div>

Hi jiulongw

StartMeetingParams4APIUser can start a instant meeting with token and ZAK.

public int startMeetingWithParams(Context context, StartMeetingParams param)

---

<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, 6:33pm UTC](https://devforum.zoom.us/t/how-to-login-mobile-sdk-using-oauth/4954/9 "2020-08-21T18:33:19Z")

</div>

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


