How to Join a zoom meeting as a host from android client sdk, where as the meeting already created from zoom api

Hi @jon.lieblich

Yes, I have checked the sdk key/secret which am using related to the Type SDK only while creating token…

Hi @mallikarjunreddy751,

Can you please provide the JWT you are using with your developer credentials redacted so that we may investigate further?

Thanks!

Hi @jon.lieblich

Below is the JWT token i have generated recently with my developer credentials.

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJteUtleSIsImlhdCI6MTYyNjcyMjY5MCwiZXhwIjoxNjI2ODA5MDg5LCJ0b2tlbkV4cCI6MTYyNjgwOTA4OX0.0s9Y1o4m_Zyqh_-bvJa9RucHpaUfTo0YKYtP543BFyI

Hi @mallikarjunreddy751,

Note that I have edited your post since it contained your credentials. Please do not post any of your credentials publicly on the dev forum.

After adding my key to the JWT you have provided and signing it with my secret, I am able to successfully initialize the SDK with it. How are you generating the JWT?

Thanks!

Hi @jon.lieblich

Actually am generating JWT token from jwt.io as per the document( for testing).

Below steps we are following (I have provided these steps in previous post as well)

Header:

{
“alg”: “HS256”,
“typ”: “JWT”
}

Payload Sample:

{
“appKey”: “SDK_KEY”,
“iat”: 1626806923,
“exp”: 1626979722,
“tokenExp”: 1626979722
}

Along with this payload am generating signature as well with SDK_SECRET as below:

HMACSHA256(
base64UrlEncode(header) + “.” +
base64UrlEncode(payload),
SDK_SECRET
)

One More Question Here: ( Alternate method we are following to get the JWT token to pass it to initialize the SDK)

We have even tried including JWT token to initialize the SDK from JWT App which we have created on Market Place (Please find the below attached screen shot → On click on highlighted area we are able to see JWT token and custom expiration time of JWT token). Even with that also we are un-able to initialize the SDK. Is this the correct way to get the JWT token from here to initialize the SDK ?

It will be very helpful if we can connect on this issue through zoom call or some how, so that we can sort this out quickly. It’s been almost two week we are un-able to figure out the issue.

Hope will get the response ASAP.

Thanks!

Hi @mallikarjunreddy751,

The JWT app type is not meant for use with the SDK. It is an entirely different app type. You need to use the key and secret values from your SDK app, directly under the JWT type in the screenshot you included. Can you please confirm that you are NOT using the JWT credentials to generate the JWT for the SDK?

Thanks!

Hi @jon.lieblich

Yes, Am not using the JWT App credentials(API_KEY & API_SECRET) to generate the JWT for the SDK. Am using the SDK app credentials only to generate JWT(from jwt.io) i.e SDK_KEY & SDK_SECRET.

The Below is another question I have

As you mentioned JWT app type is not meant for use with SDK.
What is the correct way to use the JWT app to start / join the meeting with mobile application ?

Thanks!

Hi @mallikarjunreddy751,

Thanks for confirming you are not using the JWT credentials to initialize the SDK. Since I am able to insert my own developer credentials into the JWT structure you are using and successfully initialize the SDK, this means that the error you are experiencing must be localized to the credentials you are using. Are you able to generate a new SDK secret through the Marketplace? Note that this will invalidate any existing app using your current developer credentials.

As you mentioned JWT app type is not meant for use with SDK.
What is the correct way to use the JWT app to start / join the meeting with mobile application ?

As mentioned previously, the JWT app type is not meant for use with the SDK. For more information on the available options through which you can join or start a meeting with the SDK, see our documentation here.

Thanks!

Hi @jon.lieblich

Yes, I am able to generate new SDK secret through Marketplace. Since we are testing the zoom functionality with that SDK app credentials in our test application. It wont affect any application. You want me to generate a new SDK secret ?

If there is a localized issue I don’t know what is that issue I have just followed the documentation and provided all the steps which we are following in the previous posts.

As per the documentation the SDK app credentials meant to initialize the Client SDK in order to start meeting / join the meeting either by using SDK_KEY, SDK_SECRET or by using JWT token (which is generated by using SDK_KEY & SDK_SECRET).

Note: The above mentioned steps we are using mobile client SDK only with SDK App In Marketplace.

Simultaneously we would like to test the other possible way as well in order to start / join the meeting with JWT App from Marketplace. Could you also direct us on utilizing the JWT app credentials to start / join the meeting from the mobile application.
I don’t know weather it could be done by using Zoom Client SDK because the Client SDK only initialized with SDK_KEY and SDK_SECRET or by generating JWT token with the SDK App credentials.

If the above mentioned point is correct. What could be the better approach / proper way to use the JWT app( or its credentials) to start / join meeting from mobile app ?

Hope you understand what am asking here.

Thanks!

Hi @mallikarjunreddy751,

Yes, I am able to generate new SDK secret through Marketplace. Since we are testing the zoom functionality with that SDK app credentials in our test application. It wont affect any application. You want me to generate a new SDK secret ?

Yes, please try generating a new secret and using that in your JWT. Let me know if this has any effect. :slightly_smiling_face:

If there is a localized issue I don’t know what is that issue I have just followed the documentation and provided all the steps which we are following in the previous posts.

Since the JWT you provided works when I input my developer credentials, this means it is localized to one of two areas: your credentials themselves, or how you are adding them to the JWT. If generating a new secret does not have any effect, it is possible that something is going wrong when inputting your credentials on jwt.io.

If the above mentioned point is correct. What could be the better approach / proper way to use the JWT app( or its credentials) to start / join meeting from mobile app ?

A JWT app cannot replace the use of an SDK app when using the Android SDK. It is possible to start a meeting as an API user instead of logging in as mentioned in our documentation here. Is that what you are looking for? This is really the only interaction the SDK could possibly have with a Marketplace JWT app.

Thanks!

Hi @jon.lieblich

Finally we are able to initialize the SDK with jwt token which is generated by our backend.

But still i don’t know why the jwt token which is generated by jwt.io (followed all the steps as per the doc)did’t work to initialize the sdk.

Please let me know if you found anything am missing to generate jwt in my previous posts.

Thanks for your support.

Hi @mallikarjunreddy751,

I’m glad to hear it’s working!

But still i don’t know why the jwt token which is generated by jwt.io (followed all the steps as per the doc)did’t work to initialize the sdk.

Before I am able to answer this, can you share how you were able to resolve the issue? Did it start working again after generating a new secret?

Thanks!