# Requesting Assistance: meetingsdk-web-sample Integration Error (Laravel, "Signature is invalid")

**URL:** <https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519>\
**Category:** Web\
**Tags:** recurring-meeting, api, sdk, sdk-jwt\
**Created:** [May 8, 2024, 1:20pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519 "2024-05-08T13:20:02Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahid.cs96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shahid.cs96/32/59446_2.png) [@shahid.cs96](https://devforum.zoom.us/u/shahid.cs96)\
**Post date:** [May 8, 2024, 1:20pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/1 "2024-05-08T13:20:02Z")

</div>

Hi Folks,

I’m writing to request assistance with integrating the Zoom Meeting SDK into a Laravel application running on localhost. I’m using the sample code provided in the meetingsdk-web-sample repository on GitHub:  
[MeetingSDK](https://github.com/zoom/meetingsdk-web-sample)

I’ve followed the instructions and updated the clientID and clientSecret credentials within the CDN directory code with those obtained from my Zoom Server-to-Server OAuth App. However, when attempting to join a meeting, I encounter a popup error stating:

## Joining Meeting Timeout or Browser restriction

Signature is invalid.

I would greatly appreciate your support in resolving this integration issue. Please let me know if you require any additional information or have any questions.

Thank you for your time and assistance.

Best Regards,

Muhammad Shahid

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 8, 2024, 2:27pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/2 "2024-05-08T14:27:22Z")

</div>

Hi @shahid.cs96 , is this a legacy meeting SDK app type you are using or unified build flow? Either way, use the application credentials from within that app, not from a separate S2S app. See [here](https://developers.zoom.us/docs/meeting-sdk/auth/#generate-a-meeting-sdk-jwt) for details.

---

<div class="post-metadata">

**Author:** ![shahid.cs96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shahid.cs96/32/59446_2.png) [@shahid.cs96](https://devforum.zoom.us/u/shahid.cs96)\
**Post date:** [May 8, 2024, 3:01pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/4 "2024-05-08T15:01:17Z")

</div>

Hi @gianni.zoom I created the App as both General and S2S Oauth but both thrown same error of Signature is inavlid…

 ![ZoomApp](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/a/3a7b05734a0d6421bc2c27d0b9039e83ae0da47c.png)

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 8, 2024, 3:16pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/5 "2024-05-08T15:16:53Z")

</div>

@shahid.cs96 , you need to use Unified Build Flow which you can access by clicking “Build App” (not Legacy or Server to Server).

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/4/646849e003671032c1127c2952b8e5b3ce4d67a1.png)

Then click, “Embed” and enable Meeting SDK. From there, use the application credentials to generate your JWT as described in the linked docs from my last response.

---

<div class="post-metadata">

**Author:** ![shahid.cs96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shahid.cs96/32/59446_2.png) [@shahid.cs96](https://devforum.zoom.us/u/shahid.cs96)\
**Post date:** [May 8, 2024, 3:20pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/6 "2024-05-08T15:20:11Z")

</div>

Alright @gianni.zoom I will follow this approach, and hopefully it will work. Thanks for your support

---

<div class="post-metadata">

**Author:** ![shahid.cs96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shahid.cs96/32/59446_2.png) [@shahid.cs96](https://devforum.zoom.us/u/shahid.cs96)\
**Post date:** [May 8, 2024, 4:18pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/7 "2024-05-08T16:18:17Z")

</div>

Dear @gianni.zoom

Thank you again for your prompt and helpful support in getting the Zoom Meeting web sample running smoothly. I truly appreciate your assistance.

Looking ahead, I’m aiming to integrate Zoom’s Meeting, Webinar, and Video SDKs into a full application. This will provide a robust and convenient built-in communication mechanism for our users.

I anticipate encountering additional challenges as I delve deeper into the integration process and strive to ensure everything aligns with Zoom’s standards. When these arise, I won’t hesitate to reach out to the fantastic support team, and I’m confident that your expertise will be invaluable.

Thank you once again.

Best regards,

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 8, 2024, 5:25pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/8 "2024-05-08T17:25:02Z")

</div>

Hi @shahid.cs96 , thank you for your kind statement! Our developer advocacy and support teams look forward to you creating on the platform. Just a note, Video SDK is a separate developer account and it not a part of the creation flow you currently see. You would have a different developer email that allows you to build Video SDK.

Here’s some links for more info and help with the process:

- [Plans & Pricing for Developer | Zoom - Zoom](https://zoom.us/pricing/developer)
- [https://www.youtube.com/watch?v=zyBdE\_s7QvY&list=PLcoexfT63OeGPT5xM5Y1UnVkCX2EGOh4Z](https://www.youtube.com/watch?v=zyBdE_s7QvY&list=PLcoexfT63OeGPT5xM5Y1UnVkCX2EGOh4Z)

---

<div class="post-metadata">

**Author:** ![shahid.cs96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shahid.cs96/32/59446_2.png) [@shahid.cs96](https://devforum.zoom.us/u/shahid.cs96)\
**Post date:** [May 9, 2024, 9:26am UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/9 "2024-05-09T09:26:49Z")

</div>

Hi @gianni.zoom  
I’m reaching out regarding the Zoom SDK’s Unified Build Flow. While this approach seems effective for joining meetings, I’m encountering an error when attempting to create new meetings using the same Client ID and Client Secret credentials.

The error message indicates a “400 Bad Request” response with the reason “unsupported grant type.” I’ve attached the relevant code snippet for your reference.

My understanding is that this error arises because the Unified Build Flow application doesn’t support Account IDs, unlike Server-to-Server (S2S) applications. Interestingly, the same code successfully creates meetings with an S2S App, but then throws an “invalid signature” error when joining meetings.

Therefore, I’d like to inquire:

- Are there guidelines to achieve both meeting creation and joining functionalities with a single application using the Unified Build Flow?
- Would separate applications be required for these distinct functionalities (one for creation and another for joining)?

Your insights and guidance would be greatly appreciated.

Thank you for your time and assistance.

Code:  
public function getToken()  
{  
// Check if Zoom credentials are configured  
$settings = Utility::settings(\Auth::user()-\>id);  
if (  
isset($settings[‘zoom\_account\_id’]) && !empty($settings[‘zoom\_account\_id’]) &&  
isset($settings[‘zoom\_client\_id’]) && !empty($settings[‘zoom\_client\_id’]) &&  
isset($settings[‘zoom\_client\_secret’]) && !empty($settings[‘zoom\_client\_secret’])  
) {  
// Construct the basic authentication header  
$basicAuthHeader = base64\_encode($settings[‘zoom\_client\_id’] . ‘:’ . $settings[‘zoom\_client\_secret’]);

```
        // Prepare the request to obtain the access token
        $response = $this->client->request('POST', 'https://zoom.us/oauth/token', [
            'headers' => [
                'Authorization' => 'Basic ' . $basicAuthHeader,
            ],
            'form_params' => [
                'grant_type' => 'account_credentials',
                'account_id' => $settings['zoom_account_id']
            ],
        ]);

        // Decode the response and retrieve the access token
        $token = json_decode($response->getBody(), true);

        if (isset($token['access_token'])) {
            return $token['access_token'];
        }
    }

    return false;
}

```

---

<div class="post-metadata">

**Author:** ![shahid.cs96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shahid.cs96/32/59446_2.png) [@shahid.cs96](https://devforum.zoom.us/u/shahid.cs96)\
**Post date:** [May 9, 2024, 10:26pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/10 "2024-05-09T22:26:19Z")

</div>

Hi @gianni.zoom  
I’m looking for your response on this thread please.

---

<div class="post-metadata">

**Author:** ![longoff](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@longoff](https://devforum.zoom.us/u/longoff)\
**Post date:** [May 10, 2024, 1:26am UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/11 "2024-05-10T01:26:30Z")

</div>

I was facing all sorts of problems, so I had posted a question. After trying a lots of things, I was able to make Web SDK and Server to Server App combination work.

I had posted my question here

> [@Invalid Signature using SDK as well custom signature creation](https://devforum.zoom.us/t/invalid-signature-using-sdk-as-well-custom-signature-creation/108566):
>
> I have been trying to search for last 2 days but when nothing seemed to work, I am posting here: I need to add a Zoom app to my website (not open to everyone), where multiple hosts can create a meeting and other users who have the link can join those meetings. There does not need to be any manual intervention to authorize the users to join or host the meeting. I have created a developer account. I was never really sure about where to start so,firstly, I created a normal app using Develop → B…

It explains the problems.

And here:

> [@Meeting Web SDK + Server to Server App](https://devforum.zoom.us/t/meeting-web-sdk-server-to-server-app/108961):
>
> Hello, I had already posted a question but could not solve my problem. For now I am testing on a local server without https. I had started by creating a normal app (Develop → Build App) and added client\_id and client\_secret Web SDK js/index.js. But it was resulting in an invalid signature error. So I thought, as Web SDK was not creating the meeting, I needed to create it through REST API. For that, I needed to create Server to Server App as ZAK needed an account ID. Using Server to Server Ap…

The second link might help you.

I will try to post Laravel part of it here as well.

---

<div class="post-metadata">

**Author:** ![longoff](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@longoff](https://devforum.zoom.us/u/longoff)\
**Post date:** [May 10, 2024, 4:13am UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/12 "2024-05-10T04:13:19Z")

</div>

Using Server to Server App Credentials here:

```auto
use App\Http\Controllers\Controller;
use GuzzleHttp\Client as GHttp;
use GuzzleHttp\Psr7\Request as GRequest;

```

```auto
// access token
$url = env('ZOOM_API_URL');
        $basic_auth = new GHttp(['base_uri' => $url]);
        $account_id = env('ZOOM_ACCOUNT_ID');
        $client_id = env('ZOOM_CLIENT_ID');
        $client_secret = env('ZOOM_CLIENT_SECRET');

        $credentials = base64_encode($client_id . ':' . $client_secret);

        $meeting_id = ''; 
        $access_token = ''; 
        $zak_token = ''; 
        $user_id = ''; // add your user id

 $response = $basic_auth->post(
            'oauth/token',
            [
                'headers' =>
                [
                    'Content-Type' => 'application/x-www-form-urlencoded',
                    'Authorization' => 'Basic ' . $credentials,

                ],
                'form_params' => [
                    "grant_type" => "account_credentials",
                    "account_id" => $account_id
                ]
            ]
        )->getBody()->getContents();

        $json_response = json_decode($response);
        $access_token = $json_response->access_token;

```

```auto
       //get zak token, if needed

        $zak_url = $url . 'v2/users/' . $user_id . '/token/?type=zak';
        $headers = ['headers' =>, 
        [
            'Authorization' => 'Bearer ' . $access_token

        ]];
        $request = new GRequest('GET', $zak_url);

        $response = $basic_auth->send($request, $headers)->getBody()->getContents();

        $json_response = json_decode($response);
        $zak_token = $json_response->token;

```

create meeting

```auto
$response = $basic_auth->post(
            '/v2/users/' . $user_id . '/meetings',
            [
                'headers' =>
                [
                    'Content-Type' => 'application/json',
                    'Authorization' => 'Bearer ' . $access_token,

                ],
                'json' => [
                    'topic' => 'My Topic',
                    'type' => 1,
                    'agenda' => '',
                    'settings' => [
                        'waiting_room' => false,
                        'host_video' => true,
                        'participant_video' => true,
                        'join_before_host' => true,
                        'mute_upon_entry' => true,
                        'approval_type' => 0,
                        'auto_recording' => 'cloud'
                    ]
                ]
            ]
        )->getBody()->getContents();

        $meeting_json_response = json_decode($response);

```

```auto
// get user details if needed
$user_details = $basic_auth->get(
            'v2/users/' . $user_id,
            [
                'headers' =>
                [
                    'Content-Type' => 'application/x-www-form-urlencoded',
                    'Authorization' => 'Bearer ' . $access_token,

                ]
            ]
        )->getBody()->getContents();

        dd($user_details);

```

---

<div class="post-metadata">

**Author:** ![shahid.cs96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shahid.cs96/32/59446_2.png) [@shahid.cs96](https://devforum.zoom.us/u/shahid.cs96)\
**Post date:** [May 11, 2024, 10:03am UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/13 "2024-05-11T10:03:43Z")

</div>

Hi @longoff  
Thanks for your detail response.  
Though our use cases look same for Zoom integration and your code looks fine to create the meeting via S2S app, but how do you manage to join the meeting, perhaps using normal app separately from S2S.  
Please also advice how to assign multiple users in meeting

---

<div class="post-metadata">

**Author:** ![longoff](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@longoff](https://devforum.zoom.us/u/longoff)\
**Post date:** [May 15, 2024, 1:49am UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/14 "2024-05-15T01:49:57Z")

</div>

Yes. I am using a Web SDK on the frontend and second app credentials (Not server to Server App) to join, create signatures etc. Please check the links that I have posted above. Second link might help you. It has all the detailed discussion of what I tried, and how it finally seems to have worked.

I tested with more than one host users now.

Only thing is, the normal App remains in draft mode and I do not want to publish it. It is for our internal use.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 23, 2024, 9:18pm UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/15 "2024-05-23T21:18:11Z")

</div>

Hi @longoff , thank you for sharing the links to the other threads! This is the guidance we recommend.

---

<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 23, 2024, 7:18am UTC](https://devforum.zoom.us/t/requesting-assistance-meetingsdk-web-sample-integration-error-laravel-signature-is-invalid/109519/16 "2024-06-23T07:18:55Z")

</div>

Closed on June 23, 2024, 7:18am UTC

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