# Server to server oauth app using ZoomMtg, sdk 2.9.5

**URL:** <https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919>\
**Category:** Meetings\
**Tags:** api, server-to-server\
**Created:** [January 23, 2023, 8:54am UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919 "2023-01-23T08:54:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauravdev](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gauravdev](https://devforum.zoom.us/u/gauravdev)\
**Post date:** [January 23, 2023, 8:54am UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/1 "2023-01-23T08:54:42Z")

</div>

We are currently using JWT with websdk 2.6.0. which will be deprecated in June 2023. Now we want to use server to server oauth app. I have a query regarding server to server oauth app using ZoomMtg. I am able to get Access token and Create meeting using simple api calls using server to server oauth account id, client id and client secret. Getting a response with start url, join url, meeting id, password etc. Now we want to integrate it with our web application. I am having trouble using ZoomMtg with Server to server oauth. Please help in this regard.

my previous code:

document.getElementById(‘join\_meeting’).addEventListener(‘click’, function(e){  
e.preventDefault();

```
var meetConfig = {
  apiKey: API_KEY,
  apiSecret: API_SECRET,
  meetingNumber: MEETING_NUMBER,
  // passWord: MEETING_PASSWORD,
  // leaveUrl: "<%FULL_URL%>",
  leaveUrl: "<%FULL_URL%>/end-session?status=error&login="+LOGIN,
  userName: "<?=$_GET['name'] ?? 'Anonymous'?>",
  role: <?=$_GET['role'] ?? 0?>
};

var signature = ZoomMtg.generateSignature({
  meetingNumber: meetConfig.meetingNumber,
  apiKey: meetConfig.apiKey,
  apiSecret: meetConfig.apiSecret,
  // passWord: meetConfig.passWord,
  role: meetConfig.role,
  success: function(res){
    console.log(res.result);
  }
});

ZoomMtg.init({
  leaveUrl: "<%FULL_URL%>/end-session?status=finished&s_id="+SESSION_ID+"&login="+LOGIN,
  // leaveUrl: "<%FULL_URL%>/"+LOGIN+"/coaching",
  // leaveUrl: '<%FULL_URL%>/end-session',
  isSupportAV: true,
  success: function () {
    ZoomMtg.join(
      {
        userName: meetConfig.userName,
        meetingNumber: meetConfig.meetingNumber,
        signature: signature,
        apiKey: meetConfig.apiKey,
        passWord: MEETING_PASSWORD,
        success: function(res){
          $('#nav-tool').hide();
          console.log('join meeting success');
        },
        error: function(res) {
          console.log(res);
        }
      }
    );
  },
  error: function(res) {
    console.log(res);
  }
});

```

});

and if we can’t use ZoomMtg with Server to server oauth app. is there any other way. please help  
@michael.zoom @gianni.zoom@tommy @elisa.zoom

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 23, 2023, 4:36pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/2 "2023-01-23T16:36:54Z")

</div>

Hey @gauravdev ,

You will need to use a Meeting SDK app type for the Meeting SDK credentials:

Please follow this guide: [https://marketplace.zoom.us/docs/guides/build/jwt-app/jwt-app-migration/#jwt-app-type-to-sdk-app-type-migration](https://marketplace.zoom.us/docs/guides/build/jwt-app/jwt-app-migration/#jwt-app-type-to-sdk-app-type-migration)

Best,  
Tommy

---

<div class="post-metadata">

**Author:** ![gauravdev](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gauravdev](https://devforum.zoom.us/u/gauravdev)\
**Post date:** [January 23, 2023, 4:41pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/3 "2023-01-23T16:41:25Z")

</div>

Thank you tommy,  
one more thing with websdk 2.6.0 we can use jwt till june 2023?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 23, 2023, 4:53pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/4 "2023-01-23T16:53:11Z")

</div>

Yes, that is the correct cut off date.

Best,  
Tommy

---

<div class="post-metadata">

**Author:** ![gauravdev](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gauravdev](https://devforum.zoom.us/u/gauravdev)\
**Post date:** [January 23, 2023, 5:20pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/5 "2023-01-23T17:20:14Z")

</div>

Ok. But if i need to use server to server oauth with my web application is there any ways i can use the start and join url in an iframe. Like we use in jwt. Because when i use it in an iframe they don’t work properly.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 23, 2023, 5:48pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/6 "2023-01-23T17:48:56Z")

</div>

Hey @gauravdev ,

You shouldn’t embed the [Zoom Web Client](https://support.zoom.us/hc/en-us/articles/201362593-Join-My-Meeting-via-Browser) in an iFrame.

You can use the [Meeting SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web/), and even embed that in an iFrame if you choose.

Best,  
Tommy

---

<div class="post-metadata">

**Author:** ![gauravdev](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gauravdev](https://devforum.zoom.us/u/gauravdev)\
**Post date:** [January 24, 2023, 5:18am UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/7 "2023-01-24T05:18:08Z")

</div>

able to generate sdk signature but can’t join meeting. and there is no error in console.  
and i used instant meeting id and password not passcode from my zoom profile  
code using sdk app:

@tommy

var meetingConfig = {  
skdKey: SDK\_KEY,  
sdkSecret: SDK\_SECRET,  
meetingNumber: MEETING\_NUMBER,  
passWord: MEETING\_PASSWORD,  
leaveUrl: “\<%FULL\_URL%\>/end-session?status=error&login=”+LOGIN,  
userName: “\<?=$\_GET['name'] ?? 'Anonymous'?\>”,  
role: \<?=$\_GET['role'] ?? 0?\>  
};

```
var signature = ZoomMtg.generateSDKSignature({
  meetingNumber: meetingConfig.meetingNumber,
  sdkKey: meetingConfig.sdkKey,
  sdkSecret: meetingConfig.sdkSecret,
  role: meetingConfig.role,
  success: function (res) {
    console.log(res.result);
    meetingConfig.signature = res.result;
  },
});

ZoomMtg.init({
  leaveUrl: "<%FULL_URL%>/end-session?status=finished&s_id="+SESSION_ID+"&login="+LOGIN,
  // leaveUrl: "<%FULL_URL%>/"+LOGIN+"/coaching",
  // leaveUrl: '<%FULL_URL%>/end-session',
  isSupportAV: true,
  success: function () {
    ZoomMtg.join(
      {
        skdKey: meetingConfig.skdKey,
        meetingNumber: meetingConfig.meetingNumber,
        passWord: meetingConfig.passWord,
        userName: meetingConfig.userName,
        signature: meetingConfig.signature,
        success: function(res){
          $('#nav-tool').hide();
          console.log('join meeting success');
        },
        error: function(res) {
          console.log(res);
        }
      }
    );
  },
  error: function(res) {
    console.log(res);
  }
});

```

});

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [January 24, 2023, 7:11am UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/8 "2023-01-24T07:11:48Z")

</div>

@gauravdev You are using PHP or??

---

<div class="post-metadata">

**Author:** ![gauravdev](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gauravdev](https://devforum.zoom.us/u/gauravdev)\
**Post date:** [January 24, 2023, 7:12am UTC](https://devforum.zoom.us/t/server-to-server-oauth-app-using-zoommtg-sdk-2-9-5/81919/9 "2023-01-24T07:12:25Z")

</div>

php, javascript, ZoomMtg
