# When JWT -\> OAuth migration in C++: Do I need to call IAuthService::SDKAuth() still?

**URL:** <https://devforum.zoom.us/t/when-jwt-oauth-migration-in-c-do-i-need-to-call-iauthservice-sdkauth-still/88742>\
**Category:** Windows\
**Tags:** api\
**Created:** [May 21, 2023, 10:10am UTC](https://devforum.zoom.us/t/when-jwt-oauth-migration-in-c-do-i-need-to-call-iauthservice-sdkauth-still/88742 "2023-05-21T10:10:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsuchi](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@tsuchi](https://devforum.zoom.us/u/tsuchi)\
**Post date:** [May 21, 2023, 10:10am UTC](https://devforum.zoom.us/t/when-jwt-oauth-migration-in-c-do-i-need-to-call-iauthservice-sdkauth-still/88742/1 "2023-05-21T10:10:03Z")

</div>

Hi,

I am developing an application using the Zoom Meeting SDK in C++. After June 2023, it will no longer be possible to create apps of the JWT type, and existing JWT apps will need to migrate to OAuth. However, the Zoom official documentation advises using JWT for SDK authentication. So, my question is, does OAuth only refer to “user authentication” and is it separate from “SDK authentication”? In other words, even if I migrate to an OAuth-type app, do I still need to use JWT for SDK authentication, or can SDK authentication also be done using OAuth token or something?

more detal:  
I have been able to obtain an access token and a Zak token using the PKCE OAuth, and I am currently testing how it works using the demo source code provided by Zoom (which is included the SDK). Currently, it seems to work fine when I input the Client ID and Client Secret obtained when creating the app on the Zoom Marketplace, or a JWT token generated on the server-side with them, into IAuthService::SDKAuth(). The demo app works well with this approach, but it only works when SDKAuth() is called. Will this method still be available after Zoom stops JWT authentication, September 2023?

Thanks,  
Tsuchi

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [May 22, 2023, 3:29am UTC](https://devforum.zoom.us/t/when-jwt-oauth-migration-in-c-do-i-need-to-call-iauthservice-sdkauth-still/88742/2 "2023-05-22T03:29:16Z")

</div>

Hi @tsuchi ,

Thanks for your question. Here are clarification to help you understand

`JWT App Type` is often confused with `JWT Token`, but they refer to 2 different things.  
`JWT App Type` is not `JWT Token`

`JWT App Type` which is deprecating in June 2023 (soft deadline) is used to call `Zoom REST API`  
The recommended upgrade path after Sep 2023 (hard deadline) is to use `Server to server OAuth App Type` or `OAuth App Type`. These will allow you to get ZAK token for user authentication.

`Meeting SDK App Type` has `Client ID` and `Client Secret`, which allow developers to create a `JWT Token` to auth `Zoom Meeting SDK`. These `Client ID` and `Client Secret` also allows you to call `Zoom REST API`

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/7/472055e0e67bc72ec1a2dc5c0bb4616ddda36efa.png)

Please do reply if you need additional clarifications.

---

<div class="post-metadata">

**Author:** ![tsuchi](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@tsuchi](https://devforum.zoom.us/u/tsuchi)\
**Post date:** [May 22, 2023, 6:43am UTC](https://devforum.zoom.us/t/when-jwt-oauth-migration-in-c-do-i-need-to-call-iauthservice-sdkauth-still/88742/3 "2023-05-22T06:43:42Z")

</div>

Hi Chun,

Thank you for your reply.

Now, in my understanding, there are 4 different kinds of APP Type in this topic:

1. JWT App Type
2. Server to server OAuth Type
3. OAuth Type
4. Meeting SDK App Type

and an app of 1. `JWT App Type` needs to be migrated to 2. `Server to server OAuth Type` or 3. `OAuth Type`.  
The `Meeting SDK App Type` is slightly different from other types. For authentication of the SDK itself, either the Client ID and Client Secret or a JWT Token (it is a different conception from `JWT App Type` 🙂 ) generated from them is required. The Zoom REST API can also be invoked using the Client ID and Client Secret. However, if I want to call the Zoom REST API **with using a ZAK Token** , the app needs to generate the ZAK Token using either Server-to-server OAuth or OAuth (or PKCE OAuth) scheme.

So in the case when I develop an app with Meeting SDK (and the app doesn’t call some APIs that require a ZAK Token), I don’t need to care about OAuth things.

Thank you again, I think I’m clear now.  
Please let me know if my understanding is wrong in any way.

Tsuchi

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [May 22, 2023, 8:30am UTC](https://devforum.zoom.us/t/when-jwt-oauth-migration-in-c-do-i-need-to-call-iauthservice-sdkauth-still/88742/4 "2023-05-22T08:30:32Z")

</div>

Hi @tsuchi ,

Thats correct.

For authentication of the SDK itself, the Meeting SDK App Type will provide you with Client ID and Client Secret. You use the Client ID and Client Secret to generate / sign a JWT Token. This JWT token is used for SDK Auth.

---

<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:** [June 21, 2023, 6:30pm UTC](https://devforum.zoom.us/t/when-jwt-oauth-migration-in-c-do-i-need-to-call-iauthservice-sdkauth-still/88742/5 "2023-06-21T18:30:34Z")

</div>

Closed on June 21, 2023, 6:30pm UTC

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