Description
I am developing an Oauth app and have followed the guidelines to the point. When I pass the authorize token to https://zoom.us/oauth/token, I get an error “The remote server returned an error: (403) Forbidden.”. I am clearly not the only one, having this problem, but all topics resolved regarding this, is solved offline behind the scenes and does not help me.
**Error**
The remote server returned an error: (403) Forbidden.
**Which App Type (OAuth / Chatbot / JWT / Webhook)?**
OAuth
**Which Endpoint/s?**
https://zoom.us/oauth/token
**How To Reproduce (If applicable)**
This is a Visual Studio 2019 MVC application.
The URL is https:// ZooMeeting.azurewebsites.net/Auth?code=*********************
The variable code is the return from a call to https://zoom.us/oauth/authorize directly from the Marketplace definition of my OAuth definition (ZooMeeting)
The function activated in the app is below
' GET: Index
Function Index() As ActionResult
Dim code As String = Request("code").ToString
Session("Request") = code
Log(Session("Møde"), Session("Emne"), "Auth return : " & code)
Log(Session("Møde"), Session("Emne"), "Token request")
Dim ZoomTokenRequest As New System.Net.WebClient
Dim uriData As String = "https://zoom.us/oauth/token"
Dim formData As System.Collections.Specialized.NameValueCollection = New System.Collections.Specialized.NameValueCollection()
formData("grant_type") = "authorization_code"
formData("code") = code
formData("redirect_uri") = "https://ZooMeeting.azurewebsites.net/Token"
ZoomTokenRequest.Headers.Set("Authorization", "Basic *************************************")
Try
Dim responseBytes As Byte() = ZoomTokenRequest.UploadValues(uriData, "POST", formData)
Catch ex As Exception
Log(Session("Møde"), Session("Emne"), "Upload - " & ex.Message)
End Try
Return View()
End Function
Extract from the Log table in my database
Auth return : VhUOUR1H3k_4bu-JrjvTM6rd204-qV6ww
Token request
Upload - The remote server returned an error: (403) Forbidden.
Please advise!
**Screenshots (If applicable)**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here.