# 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:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crajeevc](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@crajeevc](https://devforum.zoom.us/u/crajeevc)\
**Post date:** [January 20, 2020, 7:10am UTC](https://devforum.zoom.us/t/authenticate-user-using-rest-api-using-c-from-server-side/7593/1 "2020-01-20T07:10:26Z")

</div>

Hello,

**Description**  
We are trying to create a server-side application to create a meeting. To call the REST API we need to get the authorization token. We need assistance to get the authorization token from the server-side without using the Redirect URL. When we are calling the authorization API “[https://zoom.us/oauth/authorize?response\_type=code&client\_id=ps82Oy\_NQ9eFDwkOG3JkVw&redirect\_uri=https%3A%2F%2Fyourapp.com](https://zoom.us/oauth/authorize?response_type=code&client_id=ps82Oy_NQ9eFDwkOG3JkVw&redirect_uri=https%3A%2F%2Fyourapp.com)” , in the resposne we are getting the Zoom Login page

**Error**  
When we are calling authorization URL, in reposne we are getting the HTML of Zoom login page. We need to get the Access Code in the reposne.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
App Type : OAuth

**Which Endpoint/s?**

> **[Video Conferencing, Web Conferencing, Webinars, Screen Sharing](https://zoom.us/oauth/signin?_rnd=1579509022642&client_id=ps82Oy_NQ9eFDwkOG3JkVw&redirect_uri=https%3A%2F%2Fyourapp.com&response_type=code)**
>
> Zoom is the leader in modern enterprise video communications, with an easy, reliable cloud platform for video and audio conferencing, chat, and webinars across mobile, desktop, and room systems. Zoom Rooms is the original software-based conference...

**Screenshots (If applicable)**

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

Thanks

Rajeev

---

<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

---

<div class="post-metadata">

**Author:** ![crajeevc](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@crajeevc](https://devforum.zoom.us/u/crajeevc)\
**Post date:** [January 24, 2020, 3:57am UTC](https://devforum.zoom.us/t/authenticate-user-using-rest-api-using-c-from-server-side/7593/3 "2020-01-24T03:57:16Z")

</div>

Hello @tommy ,

As you suggested, we have generated JWT token and passed as the Authorization Bearer. This works fine for us!!

Thanks for your help.  
Rajeev

---

<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 24, 2020, 4:28pm UTC](https://devforum.zoom.us/t/authenticate-user-using-rest-api-using-c-from-server-side/7593/4 "2020-01-24T16:28:57Z")

</div>

Happy to hear! 🙂

Let us know if you have additional questions!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:12pm UTC](https://devforum.zoom.us/t/authenticate-user-using-rest-api-using-c-from-server-side/7593/5 "2020-08-21T19:12:38Z")

</div>


