# Wildcard for callback urls

**URL:** <https://community.auth0.com/t/wildcard-for-callback-urls/82962>\
**Category:** Get Help\
**Tags:** callback\
**Created:** [May 5, 2022, 1:58pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962 "2022-05-05T13:58:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh.jeyaraman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vignesh.jeyaraman/32/33660_2.png) [@vignesh.jeyaraman](https://community.auth0.com/u/vignesh.jeyaraman)\
**Post date:** [May 5, 2022, 1:58pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/1 "2022-05-05T13:58:10Z")

</div>

Hey guys,

We are implementing auth0 in our project and it is working real nice but the problem we are facing is with list of callback URLs. We have a flow where we first it in a demo and each demo has a different id and we have to add each demo in callback and logout URLs.

Is there any way where we can use wildcard instead of giving list of callbacks?

Any help on this would be really helpful

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 5, 2022, 4:02pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/3 "2022-05-05T16:02:27Z")

</div>

Hi @vignesh.jeyaraman ,

[This](https://auth0.com/docs/get-started/applications/wildcards-for-subdomains#how-url-evaluation-works) article explains using the wildcard for callback URLs. Hope this helps!

---

<div class="post-metadata">

**Author:** ![vignesh.jeyaraman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vignesh.jeyaraman/32/33660_2.png) [@vignesh.jeyaraman](https://community.auth0.com/u/vignesh.jeyaraman)\
**Post date:** [May 5, 2022, 5:56pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/4 "2022-05-05T17:56:27Z")

</div>

Hello Lihua,

Thank you so much for replying to me :). I actually tried like this for example

**https://\*/api/test/redirect**

but this is not working when I am calling my API which redirects to auth0 it is saying that callback URL is not matching.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 5, 2022, 6:21pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/5 "2022-05-05T18:21:27Z")

</div>

Thank you for the additional details.

Could you please confirm if the “Allowed Callback URLs” field of the application has the url like [https://mysubdomain/api/test/redirect](https://mysubdomain/api/test/redirect) added?

---

<div class="post-metadata">

**Author:** ![vignesh.jeyaraman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vignesh.jeyaraman/32/33660_2.png) [@vignesh.jeyaraman](https://community.auth0.com/u/vignesh.jeyaraman)\
**Post date:** [May 5, 2022, 6:25pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/6 "2022-05-05T18:25:33Z")

</div>

what would be the mysubdomain here?

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 5, 2022, 6:37pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/7 "2022-05-05T18:37:11Z")

</div>

my bad, I misread your link.

The article I provided earlier mentions a few rules like this one.

- The wildcard **must** be located in a subdomain within the hostname component. `https://*.com` will not work.

Therefore, your example will not work.

---

<div class="post-metadata">

**Author:** ![vignesh.jeyaraman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vignesh.jeyaraman/32/33660_2.png) [@vignesh.jeyaraman](https://community.auth0.com/u/vignesh.jeyaraman)\
**Post date:** [May 5, 2022, 6:43pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/8 "2022-05-05T18:43:09Z")

</div>

oh ok so there is no way to use wildcard in my case?

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 5, 2022, 7:05pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/9 "2022-05-05T19:05:28Z")

</div>

That’s correct. In the current design, we only support wildcard located in subdomain.

Please communicate your use case directly to our product team using our [feedback page](https://auth0.com/feedback) and click on the Vote button. Thank you!

---

<div class="post-metadata">

**Author:** ![gal1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gal1/32/33850_2.png) [@gal1](https://community.auth0.com/u/gal1)\
**Post date:** [May 5, 2022, 10:35pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/10 "2022-05-05T22:35:04Z")

</div>

Hi All,  
I am developing react-native application.  
I am using auth0 library and I succeeded to define social connection to Facebook and google but fail to define apple sign in.  
Can you help me ?  
thanks

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 5, 2022, 10:50pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/11 "2022-05-05T22:50:35Z")

</div>

This seems to be a new topic. Could you please create a new one? Thanks!

---

<div class="post-metadata">

**Author:** ![gparascandolo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gparascandolo/32/38788_2.png) [@gparascandolo](https://community.auth0.com/u/gparascandolo)\
**Post date:** [May 31, 2022, 7:56pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/12 "2022-05-31T19:56:12Z")

</div>

This previous post may help for this scenario - it discusses setting up a dynamic callback url by creating a single page and using the ‘state’ parameter to store the desired redirect URL

[https://community.auth0.com/t/how-do-i-set-up-a-dynamic-allowed-callback-url/60268](https://community.auth0.com/t/how-do-i-set-up-a-dynamic-allowed-callback-url/60268)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 4:06pm UTC](https://community.auth0.com/t/wildcard-for-callback-urls/82962/13 "2022-12-21T16:06:24Z")

</div>


