Does zoom support more than two environments for oauth2?

Hey @tuancode, @michael.solomon,

This is totally possible! :slight_smile: Let me walk you through how to do this with the base domain of example.com

For your whitelist, simply add your base domain: https://example.com

Then in your dev/prod redirect url field, add a default redirect, https://any.example.com (this will be programmatically overridden to the correct sub domain, continue reading below)

Now, with your install URL (the url mentioned in Step 1. of the OAuth guide) in your code, dynamically set the respective sub domain on the redirect.

For https://sub1.example.com:

https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://sub1.example.com

For https://sub2.example.com:

https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://sub2.example.com

Let me know if that helps! :slight_smile:

Thanks,
Tommy

3 Likes