# How to generate JWT token using JWT App in android studio

**URL:** <https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832>\
**Category:** API and Webhooks\
**Created:** [September 22, 2021, 12:36pm UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832 "2021-09-22T12:36:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Megha1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/megha1/32/17391_2.png) [@Megha1](https://devforum.zoom.us/u/Megha1)\
**Post date:** [September 22, 2021, 12:36pm UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/1 "2021-09-22T12:36:20Z")

</div>

Hi,  
I am using Zoom Android Meeting SDK, I have created JWT App and able to start meeting and join meeting but not able to schedule meeting in new android SDK. I need to generate JWT token for my app through code to call Zoom API to schedule meeting. Please help me out to generate JWT Token with JWT App in android.

Thank you  
Megha

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [September 24, 2021, 9:32pm UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/2 "2021-09-24T21:32:53Z")

</div>

Hey @Megha1,

Thank you for reaching out to the Zoom Developer Forum. When using the Android SDK, please make sure that you create an _SDK App_ to access your credentials instead of a JWT App.

You can learn more here:

> **[Authentication - Meeting SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/native-sdks/auth#authentication)**
>
> Authentication
> 
> 
> 
> Zoom Meeting SDK apps authenticate with Zoom through a pair of access credentials, SDK Key and SDK Secret, which are signed and commun...

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![Megha1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/megha1/32/17391_2.png) [@Megha1](https://devforum.zoom.us/u/Megha1)\
**Post date:** [September 27, 2021, 4:51pm UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/3 "2021-09-27T16:51:31Z")

</div>

Hi @MaxM,

Thanks for reply!  
We need to authorize the OAuth app to install and get ZAK of user. Can I authorize OAuth app using android webview and get a ZAK for a user?

Thank you  
Megha

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [October 1, 2021, 10:59pm UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/4 "2021-10-01T22:59:22Z")

</div>

Hey @Megha1,

Yes, you should be able to redirect a user to the authorization URL using a WebView on Android.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![Megha1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/megha1/32/17391_2.png) [@Megha1](https://devforum.zoom.us/u/Megha1)\
**Post date:** [October 4, 2021, 1:54pm UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/5 "2021-10-04T13:54:47Z")

</div>

Hey @MaxM,

I am using **[https://zoom.us/oauth/authorize](https://zoom.us/oauth/authorize)** url in android webview to login and authorize user in app. User is able to login and authorize the app and I am getting code also in query parameter but when Backend is requesting for user ZAK **[https://zoom.us/oauth/token](https://zoom.us/oauth/token)** with this API, it is sending 403 error. Our web application is also doing same and backend is also getting User’s ZAK but when backend request for ZAK with code I am getting after authorization in query parameter , it gives error but this works properly in Web. I am redirecting to the same url which is using in Web application and Client Id is also same. We are facing problems from last many days. Please share documentation If there is to use android webview to authorize users or any other way to guide in this situation.

Please help us out from following situation as soon as possible as we need to deploy latest changes also.

Thank you  
Megha

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [October 5, 2021, 7:41pm UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/6 "2021-10-05T19:41:30Z")

</div>

Hey @Megha,

Thanks for following up on this. If you’re running into issues using the WebView, I would expect there is a detail there we’re missing in regard to how it operates. I would try opening the user’s browser directly in that case and they should be able to complete the authorization process before redirecting back to your application.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![Megha1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/megha1/32/17391_2.png) [@Megha1](https://devforum.zoom.us/u/Megha1)\
**Post date:** [October 9, 2021, 5:31am UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/7 "2021-10-09T05:31:13Z")

</div>

Hey @MaxM,

Thanks for reply! As you mention to open user’s browsers but I am a kind of thing in web view also, I am using **[https://marketplace.zoom.us/docs/guides/auth/oauth](https://marketplace.zoom.us/docs/guides/auth/oauth)** steps to authorize and I am getting code in query parameter also in redirect\_uri after user authorization. but in step 2 when I am sending POST request to `https://zoom.us/oauth/token`, I am getting 403 error code.  
Thats why I woud like to ask what is wrong with the code as it is sending 403.

Thank you,  
Megha

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [October 15, 2021, 6:01pm UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/8 "2021-10-15T18:01:19Z")

</div>

Hey @Megha1,

I’m happy to look further into this to see if we can determine the cause of the 403 error that you’re seeing. Please submit a ticket and include a link to this thread. You can submit a ticket by navigating to our [Developer Support Center](https://devsupport.zoom.us/).

In that email, please also include the POST request that you’re making when you see this error. I’ll use that to investigate further.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 15, 2021, 4:01am UTC](https://devforum.zoom.us/t/how-to-generate-jwt-token-using-jwt-app-in-android-studio/57832/9 "2021-11-15T04:01:36Z")

</div>

Closed on November 15, 2021, 4:01am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
