Multiple Environment Callback not working for OAuth App

Using this template helps us debug your issues more effectively :slight_smile:

Description
As mentioned in the below link,

I’m trying to use the same OAuth App for multiple env. e.g. cust1.app.domain.com, cust2.app.domain.com. I have added the callback url as “any.app.domain.com”.

Error
We I try to redirect to cust2.app.domain, then I get following error:
{"status":false,"errorCode":4700,"errorMessage":"Invalid redirect url","result":null}

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

Which Endpoint/s?
https://zoom.us/oauth/authorize

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Create an OAuth App
  2. Add redirect url as “http://any.app.domain.com/callbackurl
  3. Now test the Installation URL
    https://zoom.us/oauth/authorize?client_id={client_id}&response_type=code&redirect_uri=http%3A%2F%2Fcust1.app.domain.com%3A8080%2Fcallbackurl

Additional context
If we add cust1.app.domain.com in allow lists then it works.

I got it working. After reading below post by @tommy

The mistake I was making was not including the domain (i.e. app.domain.com) in whitelist url.

Thanks! :slightly_smiling_face:

2 Likes

I’m glad to hear that you were able to solve the issue @khanmdmudassir! Thanks for sharing your solution here.