# Generate SDK Signature with ASP.NET Core (C#) backend

**URL:** <https://devforum.zoom.us/t/generate-sdk-signature-with-asp-net-core-c-backend/78401>\
**Category:** Web\
**Tags:** api\
**Created:** [November 7, 2022, 6:36am UTC](https://devforum.zoom.us/t/generate-sdk-signature-with-asp-net-core-c-backend/78401 "2022-11-07T06:36:46Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [November 29, 2022, 3:56pm UTC](https://devforum.zoom.us/t/generate-sdk-signature-with-asp-net-core-c-backend/78401/8 "2022-11-29T15:56:42Z")

</div>

@allen ,

Great question! I believe you just need to create a function that handles creating the SDK JWT and endpoint that will return the token. The endpoint should be a POST and take the meeting number and role.

**POST** [http://localhost:8080](http://localhost:8080)  
{  
“meetingNumber”: “94843468909”,  
“role”: 0  
}

SDK JWT consists of three parts:

1. **Header** : encoded data of the token type and the algorithm used to sign the data.

```auto
{
  "alg": "HS256",
  "typ": "JWT"
}

```

1. **Payload** : encoded data of claims intended to share.

```auto
{
  "appKey": SDK_KEY,
  "sdkKey": SDK_KEY,
  "mn": MEETING_NUMBER,
  "role": ROLE,
  "iat": 1646937553,
  "exp": 1646944753,
  "tokenExp": 1646944753
}

```

1. **Signature** : created by signing (encoded header + encoded payload) using the SDK secret through an HMAC SHA256 algorithm.

```auto
HMACSHA256(
  base64UrlEncode(header) + '.' + base64UrlEncode(payload),
  SDK_SECRET
);

```

Here is our help documentation with those details for your reference 😃

## Generate the SDK JWT

[https://marketplace.zoom.us/docs/sdk/native-sdks/auth/#generate-the-sdk-jwt](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/#generate-the-sdk-jwt)

Let me know if I missing anything. If so, can you share more details regarding your current implementation? This will help provide more context on what needs to be changed. In the meantime, I did some googling and found some helpful resources on generating JWT tokens.

> **[Generate tokens with dotnet user-jwts](https://learn.microsoft.com/en-us/aspnet/core/security/authentication/jwt-authn?view=aspnetcore-7.0&tabs=linux)**
>
> Learn how to set up manage JSON Web Tokens in development with dotnet user-jwts

> **[How to Implement JWT Authentication in Web API Using .Net 6.0, Asp.Net Core](https://www.c-sharpcorner.com/article/how-to-implement-jwt-authentication-in-web-api-using-net-6-0-asp-net-core/)**
>
> In this article, we are going to create a REST API using .Net 6.0, ASP.NET Core and perform basic CRUD operations, create a JWT token, and secure the APIs by implementing JWT Authentication.

---

_[View the full topic](https://devforum.zoom.us/t/generate-sdk-signature-with-asp-net-core-c-backend/78401)._
