Using this template helps us debug your issues more effectively
Description
I’ve read until my eyes are popping out. And still can’t find a solution for receiving the error “Redirect URI mismatch issue”
Error
{“reason”:“Invalid request : Redirect URI mismatch.”,“error”:“invalid_request”}
Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAUTH
Which Endpoint/s?
https://zoom.us/oauth/token
How To Reproduce (If applicable)
Steps to reproduce the behavior:
-
Initial Request: https://zoom.us/oauth/authorize?response_type=code&client_id=ZcyVHYAeREuscd9kC0S33w&redirect_uri=https%3A%2F%2Fpreviewdev.xcatalyst.com%2FLogMeInAuth.asp](https://zoom.us/oauth/authorize?response_type=code&client_id=ZcyVHYAeREuscd9kC0S33w&redirect_uri=https://previewdev.xcatalyst.com/LogMeInAuth.asp
-
Step one properly returns to me https://previewdev.xcatalyst.com/LogMeInAuth.asp?MODE=CallBack&code={a good code appears here}
-
I take the code and use the following vbscript code in legacy asp
- HttpReq.open “POST”, “https://zoom.us/oauth/token”, False
----------------------all 3 headers here have been added and removed in combinations – - HttpReq.setRequestHeader “Authorization”, "Basic " & sAuthToken (this is the Base64Encode of clientID:secret and I’ve tested them by decoding after encoding)
- HttpReq.setRequestHeader “Content-Type” , “application/x-www-form-urlencoded”
- HttpReq.setRequestHeader “Accept” , “application/json”
- HttpReq.send “grant_type=authorization_code&code=” & sCode & "&redirect_uri=https%3A%2F%2Fpreviewdev.xcatalyst.com%2FLogMeInAuth.asp (where sCode is the code sent to me)
- HttpReq.open “POST”, “https://zoom.us/oauth/token”, False
-
I get a JSON return of “{“reason”:“Invalid request : Redirect URI mismatch.”,“error”:“invalid_request”}”
I’ve used Step 3 for vbscript for many other ReST calls without issue. I presume this has something to do with the redirect URL and Whitelist. But have added and removed parameters until I’m blue and cannot get off this issue. The redirect URL and Whitelist have exactly the same uri in them (https://previewdev.xcatalyst.com/LogMeInAuth.asp).
I hope you guys don’t send me the same answers I’ve already read through. They all seem useless. What I need, perhaps, is a step by step critique of the things I’ve described above, ok?
Thanks guys for being around to hear me huff and puff. ~BG