# Redirect URL for OAuth with variable in URL when submit app

**URL:** <https://devforum.zoom.us/t/redirect-url-for-oauth-with-variable-in-url-when-submit-app/15400>\
**Category:** API and Webhooks\
**Created:** [April 29, 2020, 11:59am UTC](https://devforum.zoom.us/t/redirect-url-for-oauth-with-variable-in-url-when-submit-app/15400 "2020-04-29T11:59:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 4, 2020, 9:56pm UTC](https://devforum.zoom.us/t/redirect-url-for-oauth-with-variable-in-url-when-submit-app/15400/2 "2020-05-04T21:56:12Z")

</div>

Hey @arcangelgirl,

> [@arcangelgirl](#):
>
> he question is, how should I write the URL? What should be written instead of USERNAME\_VARIABLE and VARIABLE? I can not use static URL for redirect and the URL has to be exactly like below, otherwise it will not work.
> 
> [https://mydomain.com/members/USERNAME\_VARIABLE/events/create/?cnum=VARIABLE](https://mydomain.com/members/USERNAME_VARIABLE/events/create/?cnum=VARIABLE)

You can just submit a default redirect url. Just make sure your domain is in your whitelist.

See my explanation here:

> [@Does zoom support more than two environments for oauth2?](https://devforum.zoom.us/t/does-zoom-support-more-than-two-environments-for-oauth2/11052/12):
>
> 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](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token)) in your code, dyna…

> [@arcangelgirl](#):
>
> Also in section “Feature” it says “ _Use this verification token to validate an event notification request from [zoom.us](https://zoom.us/) for this app_ ”. I didn’t find much about this, what should I do and where to add this token.

This is for validating that any [webhooks](https://marketplace.zoom.us/docs/api-reference/webhook-reference) you receive come from Zoom and not a DDOS attacker.

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/redirect-url-for-oauth-with-variable-in-url-when-submit-app/15400)._
