# Invalid Signature during Review process

**URL:** <https://devforum.zoom.us/t/invalid-signature-during-review-process/35148>\
**Category:** Web\
**Created:** [November 4, 2020, 8:50pm UTC](https://devforum.zoom.us/t/invalid-signature-during-review-process/35148 "2020-11-04T20:50:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RustamA](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@RustamA](https://devforum.zoom.us/u/RustamA)\
**Post date:** [November 4, 2020, 8:50pm UTC](https://devforum.zoom.us/t/invalid-signature-during-review-process/35148/1 "2020-11-04T20:50:58Z")

</div>

**Description**  
I’m trying to create a meeting with SDK. It is working OK with accounts linked to the dev account.  
However during publish app review process, reviewer always gets “Signature is Invalid” error.  
I sent request to open the application for test purposes, and was able to replicate the problem for account which is not linked to the dev account

**Error**

1. errorCode: 3712
2. errorMessage: “Signature is invalid.”
3. method: “join”
4. result: “Invalid signature.”
5. status: false

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/c/ac5fcc214f874d4ba9ab2292331a2497f3fe0a8a.jpeg)

**Additional context**  
Development account id:  
Signature:

---

<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:** [November 6, 2020, 6:29pm UTC](https://devforum.zoom.us/t/invalid-signature-during-review-process/35148/2 "2020-11-06T18:29:03Z")

</div>

Hey @RustamA, happy to help!

Can you share the code you are using to generate the signature?

Also, is the meeting you are trying to start owned by the same account as the Web SDK?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![RustamA](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@RustamA](https://devforum.zoom.us/u/RustamA)\
**Post date:** [November 6, 2020, 6:46pm UTC](https://devforum.zoom.us/t/invalid-signature-during-review-process/35148/3 "2020-11-06T18:46:47Z")

</div>

Hello @tommy!  
Please find below code for signature generation (backend, c#)

Meeting is created & started by different account ([rustam.akimovv@outlook.com](mailto:rustam.akimovv@outlook.com)) than account creating zoom app ([s@treemple.com](mailto:s@treemple.com))

```auto
private static void AddSignature(ZoomMeeting meeting, int hostRole)
        {
            static long ConvertToTimestamp(DateTime value)
            {
                var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);

                var elapsedTime = value - epoch;
                return (long)elapsedTime.TotalMilliseconds;
            }
            
             static long ToTimestamp (DateTime value) {
                long epoch = (value.Ticks - 621355968000000000) / 10000;
                return epoch;
            }
            
            var ts = (ToTimestamp(DateTime.UtcNow.ToUniversalTime()) - 30000).ToString();

            var signature = GenerateToken(meeting.Id, ts, hostRole);

            meeting.Signature = signature;
        }
        
          static string GenerateToken (long meetingNumber, string ts, int role) {
            var message = $"{ApiKey}{meetingNumber}{ts}{role}";
            var encoding = new ASCIIEncoding();
            var keyByte = encoding.GetBytes (ApiSecret);
            var messageBytesTest = encoding.GetBytes (message);
            var msgHashPreHmac = System.Convert.ToBase64String (messageBytesTest);
            var messageBytes = encoding.GetBytes (msgHashPreHmac);
            using var hmacSha256 = new HMACSHA256 (keyByte);
            var hashMessage = hmacSha256.ComputeHash (messageBytes);
            var msgHash = System.Convert.ToBase64String (hashMessage);
            var token = $"{ApiKey}.{meetingNumber}.{ts}.{role}.{msgHash}";
            var tokenBytes = System.Text.Encoding.UTF8.GetBytes (token);
            return System.Convert.ToBase64String (tokenBytes).TrimEnd (Padding);
          }

```

---

<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:** [November 9, 2020, 9:24pm UTC](https://devforum.zoom.us/t/invalid-signature-during-review-process/35148/4 "2020-11-09T21:24:24Z")

</div>

Hey @RustamA,

> [@RustamA](#):
>
> Meeting is created & started by different account ([rustam.akimovv@outlook.com](mailto:rustam.akimovv@outlook.com)) than account creating zoom app ([s@treemple.com](mailto:s@treemple.com))

That is indeed the issue. Checkout this thread for more info:

> [@Start a meeting on behalf of a user - Web SDK with OAuth](https://devforum.zoom.us/t/regarding-the-zoom-meeting-setup-in-my-website/27245/2):
>
> Hey @mayank.patel, We discourage asking customers to share their JWT Credentials with developers. I do see the headache here how you can’t use OAuth to start meetings for a user via the Web SDK since the Web SDK can only start meetings owned by the same account as the JWT App. I will share this feedback with our team and see if we can expand the Web SDK authentication to allow authorized users to start their own meetings. (CS-2206) In the meantime, I suggest having the host of the meeting s…

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![RustamA](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@RustamA](https://devforum.zoom.us/u/RustamA)\
**Post date:** [November 10, 2020, 7:20pm UTC](https://devforum.zoom.us/t/invalid-signature-during-review-process/35148/5 "2020-11-10T19:20:52Z")

</div>

Hello @tommy,  
Thank you for reply.

Can you please provide any updates about this yours comment:

> I will share this feedback with our team and see if we can expand the Web SDK authentication to allow authorized users to start their own meetings. (CS-2206)

---

<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:** [November 11, 2020, 7:05pm UTC](https://devforum.zoom.us/t/invalid-signature-during-review-process/35148/6 "2020-11-11T19:05:19Z")

</div>

Hey @RustamA,

You are welcome!

No updates so far other than we are in the planning stages of developing this feature.

Thanks,  
Tommy

---

<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:** [December 12, 2020, 5:05am UTC](https://devforum.zoom.us/t/invalid-signature-during-review-process/35148/7 "2020-12-12T05:05:35Z")

</div>

Closed on December 12, 2020, 5:05am UTC

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