# Join Meeting in Windows C++ SDK when Require Authentication is enabled

**URL:** <https://devforum.zoom.us/t/join-meeting-in-windows-c-sdk-when-require-authentication-is-enabled/90310>\
**Category:** Windows\
**Created:** [June 16, 2023, 2:50pm UTC](https://devforum.zoom.us/t/join-meeting-in-windows-c-sdk-when-require-authentication-is-enabled/90310 "2023-06-16T14:50:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![durgaprasad.pennada](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@durgaprasad.pennada](https://devforum.zoom.us/u/durgaprasad.pennada)\
**Post date:** [June 16, 2023, 2:50pm UTC](https://devforum.zoom.us/t/join-meeting-in-windows-c-sdk-when-require-authentication-is-enabled/90310/1 "2023-06-16T14:50:33Z")

</div>

Hi,

In Zoom Windows C++ SDK Application, when we try to join meeting for the meeting which are enabled Require Authentication.

I tried the approach with JWT Token generated from Zoom SDK Key and Secret during authentication of SDK and while join meeting I tried as REST API Join with user ZAK Token, Meeting Id, Passcode. but, I am unable to join the meeting. if I provided the ZAK token that exists in Join URL of Meeting in the place of ZAK token, I was able to join as Co-Host. But,I need to join as a participant level from the Zoom Windows C++ App.

Is there a way to join meeting with any token (multiple tokens) in C++ App, if the App can able to join as a participant in both General & Personal Meetings and please provide the approach in detail to get and use in C++ App.

---

<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:** [June 19, 2023, 2:33am UTC](https://devforum.zoom.us/t/join-meeting-in-windows-c-sdk-when-require-authentication-is-enabled/90310/2 "2023-06-19T02:33:55Z")

</div>

For the scenario which you are highlighting @durgaprasad.pennada ,

you will need to get the user’s ZAK token.

There are couple of ways of doing so, using **OAuth App Type** or **Server to Server App Type**

> **[Meeting SDK Auth](https://developers.zoom.us/docs/meeting-sdk/auth/#join-meetings-and-webinars-with-the-meeting-sdk-jwt)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

You will need to get user’s permission to access these scope `user:read` or `user:read:admin`

From a high level, here’s the process.

1. Use **OAuth App Type** or **Server to Server OAuth App Type**. Note: OAuth will require explicit user’s permission, Server to Server OAuth will require admin permission.
2. Get a token (applies for both OAuth App or Server to Server App Type) to call Zoom Meeting API
3. Receive a specific user’s ZAK token
4. Use this ZAK token in the join meeting params of **Meeting SDK for Windows**

---

<div class="post-metadata">

**Author:** ![durgaprasad.pennada](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@durgaprasad.pennada](https://devforum.zoom.us/u/durgaprasad.pennada)\
**Post date:** [June 19, 2023, 6:16am UTC](https://devforum.zoom.us/t/join-meeting-in-windows-c-sdk-when-require-authentication-is-enabled/90310/3 "2023-06-19T06:16:16Z")

</div>

Hi @chunsiong.zoom,

Thanks for your reply, I tried the same approach as you suggested. below are the steps I followed. please guide me if I done wrong at anywhere.

1. Created a New Server-to-Server OAuth App Type
2. I tried to get ZAK Token with both REST API End Points ([https://api.zoom.us/v2/users/userId/token?type=ZAK](https://api.zoom.us/v2/users/userId/token?type=ZAK)) & ([https://api.zoom.us/v2/users/me/token?type=ZAK](https://api.zoom.us/v2/users/me/token?type=ZAK))
3. Specified the ZAK Token obtained from above API endpoint and used in Zoom C++ Windows App.

Please refer below the sample code used in C++ Windows App.

ZOOM\_SDK\_NAMESPACE::JoinParam joinParam;  
joinParam.userType = ZOOM\_SDK\_NAMESPACE::SDK\_UT\_WITHOUT\_LOGIN;  
ZOOM\_SDK\_NAMESPACE::JoinParam4WithoutLogin& RestAPIUserJoinParam = joinParam.param.withoutloginuserJoin;  
RestAPIUserJoinParam.userZAK = “”; // Use ZAK Token obtained from REST API End Points  
RestAPIUserJoinParam.userName = “Testing”;  
RestAPIUserJoinParam.meetingNumber =12345678;  
RestAPIUserJoinParam.psw = “”; // Use Meeting Passcode in digits (non-encrypted password)  
RestAPIUserJoinParam.vanityID = NULL;  
RestAPIUserJoinParam.hDirectShareAppWnd = NULL;  
RestAPIUserJoinParam.customer\_key = NULL;  
RestAPIUserJoinParam.webinarToken = NULL;  
RestAPIUserJoinParam.isVideoOff = true;  
RestAPIUserJoinParam.isAudioOff = true;  
RestAPIUserJoinParam.isDirectShareDesktop = false;

ZOOM\_SDK\_NAMESPACE::SDKError err = m\_RestAPIUserWorkFlow.RestAPIJoinMeeting(joinParam);

---

<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:** [June 20, 2023, 2:26am UTC](https://devforum.zoom.us/t/join-meeting-in-windows-c-sdk-when-require-authentication-is-enabled/90310/4 "2023-06-20T02:26:11Z")

</div>

@durgaprasad.pennada

The sample code looks ok. I’m assuming the code below does something like `meetingService->Join(RestAPIUserJoinParam)` ?

ZOOM\_SDK\_NAMESPACE::SDKError err = m\_RestAPIUserWorkFlow.RestAPIJoinMeeting(joinParam);

---

<div class="post-metadata">

**Author:** ![durgaprasad.pennada](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@durgaprasad.pennada](https://devforum.zoom.us/u/durgaprasad.pennada)\
**Post date:** [June 20, 2023, 1:12pm UTC](https://devforum.zoom.us/t/join-meeting-in-windows-c-sdk-when-require-authentication-is-enabled/90310/5 "2023-06-20T13:12:30Z")

</div>

@chunsiong.zoom,

Yes, it will be same as you expected

---

<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:** [July 20, 2023, 11:12pm UTC](https://devforum.zoom.us/t/join-meeting-in-windows-c-sdk-when-require-authentication-is-enabled/90310/6 "2023-07-20T23:12:46Z")

</div>

Closed on July 20, 2023, 11:12pm UTC

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