po123
(Po)
September 21, 2020, 1:43am
1
Description
I’m trying to get an oAuth access token from a user, but I keep getting the 403 forbidden error when sending the POST request.
I have followed the tutorial at https://marketplace.zoom.us/docs/guides/auth/oauth religiously. I have even checked previous threads that talked about this error, but still couldn’t fix it
How To Reproduce (If applicable)
var fetchURL = ‘https://zoom.us/oauth/token?grant_type=authorization_code&code=dHrAQyHrTw_C1zkc5XgTO-fCRTjmsfWeg&redirect_uri=http://localhost:3000/ ’
const response = await fetch(fetchURL, {method:“POST”, headers{ “Authorization” : "Basic " + encoded_cred}})
–> encoded cred is encoded in base64 and contains Client_ID:Client_Secret
Please help, thank you.
Hey @po123
Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question.
Checkout this related thread that may have the answer you are looking for:
If this thread did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.
Thanks,
DeveloperBot
po123
(Po)
September 21, 2020, 1:50am
3
I’ve looked there, but it doesn’t help me. Please send a developer relations member. Thanks
tommy
(Tommy Gaessler)
September 22, 2020, 4:43pm
4
Hey @po123 ,
What content type are you setting for your request?
Try setting "Content-Type": "application/json"
in the header.
Thanks,
Tommy
po123
(Po)
September 28, 2020, 5:02am
6
@tommy Hi, thanks for your reply. I tried that, but it’s still returning 403 error. I’m trying to use localhost as the redirect URI, is that potentially a problem?
Here are my headers:
{method:“POST”, headers:{ “Authorization”:"Basic " + encoded_cred, “Content-Type”: “application/json”}
Here is the response I received:
Thanks in advance
tommy
(Tommy Gaessler)
September 29, 2020, 8:07pm
7
Hey @po123 ,
I have just private messaged you.
Thanks,
Tommy
system
(system)
Closed
October 30, 2020, 6:07am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.