# generateSignature - Angular

**URL:** <https://devforum.zoom.us/t/generatesignature-angular/38490>\
**Category:** Web\
**Created:** [December 15, 2020, 11:45pm UTC](https://devforum.zoom.us/t/generatesignature-angular/38490 "2020-12-15T23:45:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![silasas](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/silasas/32/20228_2.png) [@silasas](https://devforum.zoom.us/u/silasas)\
**Post date:** [December 15, 2020, 11:45pm UTC](https://devforum.zoom.us/t/generatesignature-angular/38490/1 "2020-12-15T23:45:28Z")

</div>

Dears,

I created a file.js to call the method generateSignature, then I pass apiKey, apiSecret, meetingNumber, role like params.

But, the **msg** ad **hash** don’t return value, therefore, I don’t have value to the Signature.

* * *

const msg = Buffer.from(apiKey + meetingNumber + timestamp + role).toString(‘base64’)  
alert(msg);

const hash = crypto.createHmac(‘sha256’, apiSecret).update(msg).digest(‘base64’)  
alert(hash);

* * *

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/f/8fa06cccf279bd9a24dde5bbfbd6261c1bf0e910.png)

---

<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:** [December 16, 2020, 11:40pm UTC](https://devforum.zoom.us/t/generatesignature-angular/38490/2 "2020-12-16T23:40:21Z")

</div>

Hey @silasas,

Are you seeing any errors being thrown in your console when you are running this code?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![silasas](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/silasas/32/20228_2.png) [@silasas](https://devforum.zoom.us/u/silasas)\
**Post date:** [December 16, 2020, 11:58pm UTC](https://devforum.zoom.us/t/generatesignature-angular/38490/3 "2020-12-16T23:58:33Z")

</div>

Hi Master,

Then, probably that doesn’t work using javascript, just nodejs, but I am not sure about it.

My project is on net core and I am using Angular in the front. So I decided change the signature to c# instead javascript.

Then, I got the signature, but show other error with black window:

See:

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

My code:

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

---

<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:** [December 18, 2020, 5:32pm UTC](https://devforum.zoom.us/t/generatesignature-angular/38490/4 "2020-12-18T17:32:17Z")

</div>

Hey @silasas,

Can you share the signature you are generating to [developersupport@zoom.us](mailto:developersupport@zoom.us) so I can help debug the issue?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![silasas](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/silasas/32/20228_2.png) [@silasas](https://devforum.zoom.us/u/silasas)\
**Post date:** [December 18, 2020, 5:50pm UTC](https://devforum.zoom.us/t/generatesignature-angular/38490/5 "2020-12-18T17:50:12Z")

</div>

Hi Tommy,

This picture is better to you see my problem.

Follow the signature:

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

---

<div class="post-metadata">

**Author:** ![silasas](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/silasas/32/20228_2.png) [@silasas](https://devforum.zoom.us/u/silasas)\
**Post date:** [December 18, 2020, 8:04pm UTC](https://devforum.zoom.us/t/generatesignature-angular/38490/6 "2020-12-18T20:04:09Z")

</div>

Hi Tommy,

I got…  
I am not expert in Angular, so it was hard for me.  
I am using Angular just for the Zoom and C# to the signature.

Follow my solution to this problem:

1. I created a file of service (meeting.service.ts) to make http from c# code.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/0/d05fd94ad770935d19c754a487a63100f35f70cb.png)

1. Then, Inside the method ngOnInit() on MEETINGS.COMPONENT.TS

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/0/00dd43df8704f85ccfb298149297504d079b1e78.png)

1. The startMeeting is standard from SDK Zoom:

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

1. To the constructor I use the meeting.service.ts and httpClient:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/8/2847fd7324f5f20eff6ab49e5777a5568ba20450.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/8/38b5acf731c782f10de863d4675fdfc0951e5ccc.png)

---

<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:** [December 21, 2020, 7:19pm UTC](https://devforum.zoom.us/t/generatesignature-angular/38490/7 "2020-12-21T19:19:46Z")

</div>

Happy to hear you got the issue sorted out! 🙂

Thanks for sharing your solution!

-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:** [January 21, 2021, 5:20am UTC](https://devforum.zoom.us/t/generatesignature-angular/38490/8 "2021-01-21T05:20:01Z")

</div>

Closed on January 21, 2021, 5:20am UTC

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