# Authenticate User using REST API using C# - from server side

**URL:** <https://devforum.zoom.us/t/authenticate-user-using-rest-api-using-c-from-server-side/7593>\
**Category:** API and Webhooks\
**Created:** [January 20, 2020, 7:10am UTC](https://devforum.zoom.us/t/authenticate-user-using-rest-api-using-c-from-server-side/7593 "2020-01-20T07:10:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 21, 2020, 8:03pm UTC](https://devforum.zoom.us/t/authenticate-user-using-rest-api-using-c-from-server-side/7593/2 "2020-01-21T20:03:41Z")

</div>

Hey @crajeevc,

It sounds like you should use the [JWT flow](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app) instead of the [OAuth flow](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-oauth-app).

Simply generate a JWT Token here and pass it in as the Authorization Bearer:

> [@C# JWT token invalid](https://devforum.zoom.us/t/c-jwt-token-invalid/5968/4):
>
> Hey @nvanderson, Can you try hard coding the JWT token from your Zoom App Dashboard and see if the error goes away? request.AddHeader("Authorization", "Bearer JWTTOKEN"); If it works, that would mean your JWT generation code is not working properly. Thanks, Tommy

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/authenticate-user-using-rest-api-using-c-from-server-side/7593)._
