# Custom domain Auth0 and Weweb

**URL:** <https://community.weweb.io/t/custom-domain-auth0-and-weweb/498>\
**Category:** How do I?\
**Created:** [May 4, 2022, 10:06am UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498 "2022-05-04T10:06:33Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![william](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william](https://community.weweb.io/u/william)\
**Post date:** [May 4, 2022, 10:06am UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/1 "2022-05-04T10:06:33Z")

</div>

Hello there,

Do you have a more step by step instruction on setting up Auth0 with custom domain with Weweb? Right now my weweb is using the custom domain but Auth0 is not. They are considered 3rd party site and some information is not passing through correctly. What do I need to setup in auth0 and where do I pick up the domain and token necessary from auth0 for weweb plugin.

Right now, I’ve setup custom domain for auth0 and verified. Not sure what next. The auth0 management api seems to be only using the non-custom domain with auth0. Do I need to setup another API there and how?

I’ve created my M2M, my SPA. But they can only be setup to the Auth0 Management API. That’s the API with the non custom domain that can be connect to weweb plugin. When I setup a custom API with the custom domain, I couldn’t connect weweb to that API. There isn’t a access token to copy and paste into weweb plugin. I end up have to use the original non custom domain Auth0 Management API.

Please advise.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [May 4, 2022, 4:27pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/2 "2022-05-04T16:27:08Z")

</div>

Hi @william,

You might need to add “Allowed URL callbacks” with your custom domain in the Single Page Application that was created in Auth0 when you setup the plugin:

 ![Screenshot 2022-05-04 at 18.21.32](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/12ea3aea01d0e202074c164dc7fbf0d0ec770f39.png)

By default, when you add the Auth0 plugin, it creates the SPA with URLs from the WeWeb editor (so you can test inside the editor) and weweb-preview website (so you can test on a published website before adding a custom domain):

 ![Screenshot 2022-05-04 at 18.18.55](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/a5177ee2fb5825e9c64cbd039b738ccad26c40c3.jpeg)

Does that help?

If not, would you mind recording a loom to walk us through your setup in WeWeb and Auth0?

---

<div class="post-metadata">

**Author:** ![william](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william](https://community.weweb.io/u/william)\
**Post date:** [May 4, 2022, 5:08pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/3 "2022-05-04T17:08:15Z")

</div>

Yes, I’ve added this already for my final domain. Still the same. I don’t have any software for recording, any recommandation?

The problem is, I am not sure how to use my custom domain API. Weweb doesn’t seems to allow it. I can only use the Auth0 Management API with the Token copied from API Explorer. API Explorer only exist under Auth0 Management API and not any created Custom API. It seems for Custom API, my app need to send a POST to auth0 and request the token. Unlike API Explorer from Auth0 Management API, I can copy and paste it into the Weweb plugins,

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [May 5, 2022, 8:35am UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/4 "2022-05-05T08:35:10Z")

</div>

Hi @william,

[Loom](https://www.loom.com/) is good and has a great free plan 🙂

---

<div class="post-metadata">

**Author:** ![william](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william](https://community.weweb.io/u/william)\
**Post date:** [May 5, 2022, 10:10am UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/5 "2022-05-05T10:10:40Z")

</div>

Hi Joyce,

I sent you a private message with my video. I prefer not to sure my video public.

Also I tried adding all my URL in the callback and saved. Still not working. I found out that in about 5 minutes, all those call back URL I added is gone. It revert back to only the weweb URL.

Please advise.

Thank you.

---

<div class="post-metadata">

**Author:** ![william](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william](https://community.weweb.io/u/william)\
**Post date:** [May 5, 2022, 4:00pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/6 "2022-05-05T16:00:13Z")

</div>

Hello,

Any update on this topic?

Thank you

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [May 6, 2022, 8:14am UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/7 "2022-05-06T08:14:31Z")

</div>

Hi @william, no update. The tech team is looking into it.

We might ask you to add one of us as an Admin Tenant member in Auth0 if we can’t find a bug on the WeWeb side.

I’ll keep you posted.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [May 6, 2022, 8:44am UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/8 "2022-05-06T08:44:57Z")

</div>

Hi again William,

Can you please add Damien to your Auth0 Tenant to help us investigate this further?

 ![Screenshot 2022-05-06 at 10.12.24](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/31a9662a3098fbe4b8efa1381dd593913880d9c3.png)

Thank you!  
Joyce

---

<div class="post-metadata">

**Author:** ![william](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william](https://community.weweb.io/u/william)\
**Post date:** [May 6, 2022, 12:17pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/9 "2022-05-06T12:17:36Z")

</div>

Hello Joyce,

Ok. let me add Damien. Please becareful. My site should be launched by my client already yesterday. Make sure not to take any step that may affect the process to the sign up and login to the site.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [May 6, 2022, 12:19pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/10 "2022-05-06T12:19:42Z")

</div>

Thank you, William. Noted 👌

---

<div class="post-metadata">

**Author:** ![william](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william](https://community.weweb.io/u/william)\
**Post date:** [May 6, 2022, 12:20pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/11 "2022-05-06T12:20:40Z")

</div>

Thank you Joyce and Damien.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [May 6, 2022, 4:13pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/12 "2022-05-06T16:13:12Z")

</div>

The fix is live. We’ve simplified the UX at the same time so you can test it on your side.

All you have to do is add your custom domain in the Auth0 plugin settings (nothing to do on the Auth0 side) and republish your project:

 ![Screenshot 2022-05-06 at 18.00.01](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/bbbf6013d8a0b28fa692d8eada466b6422b9feab.png)

Let us know if it works for you. If not, we’ll have to roll-back and investigate further.

---

<div class="post-metadata">

**Author:** ![william](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william](https://community.weweb.io/u/william)\
**Post date:** [May 6, 2022, 5:18pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/13 "2022-05-06T17:18:10Z")

</div>

This look awesome. Let me give it a try.

---

<div class="post-metadata">

**Author:** ![william](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william](https://community.weweb.io/u/william)\
**Post date:** [May 6, 2022, 5:48pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/14 "2022-05-06T17:48:48Z")

</div>

Joyce and Damien,

I can assure you, you guys are AWESOME. This update to the plugins work SUPER. It is great. I re-published my site and it is working under all the condition I tested so far.

Awesome Update. Awesome Weweb team.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [May 6, 2022, 5:57pm UTC](https://community.weweb.io/t/custom-domain-auth0-and-weweb/498/15 "2022-05-06T17:57:26Z")

</div>

That’s great news! Thanks for letting us know @william 🙌

And thanks @Damien for pulling this off so quickly 😉
