# Custom domain for SAML IDP connection

**URL:** <https://community.auth0.com/t/custom-domain-for-saml-idp-connection/63062>\
**Category:** Get Help\
**Tags:** custom-domain, saml\
**Created:** [May 19, 2021, 5:16pm UTC](https://community.auth0.com/t/custom-domain-for-saml-idp-connection/63062 "2021-05-19T17:16:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gratus-BenchSci](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gratus-benchsci/32/22674_2.png) [@Gratus-BenchSci](https://community.auth0.com/u/Gratus-BenchSci)\
**Post date:** [May 19, 2021, 5:16pm UTC](https://community.auth0.com/t/custom-domain-for-saml-idp-connection/63062/1 "2021-05-19T17:16:21Z")

</div>

Hi,

I have configured a custom domain that points to my tenant.  
When I start the login experience it works just as I want it.

However, recently I set up a SAML connection where auth0 is the IDP. The metadata provides this as my sign url:  
[https://my-tenant.us.auth0.com/samlp/abcd](https://my-tenant.us.auth0.com/samlp/abcd)…  
I want to know what I should do to enable custom domains:

[https://mycustom.domain.com/samlp/abcd](https://mycustom.domain.com/samlp/abcd)…

I have the same issue with password reset emails.

In addition to not using the custom domain, the result is that the login screen does not have the syling we have applied (which I believe requires the custom domain).

---

<div class="post-metadata">

**Author:** ![thameera](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thameera/32/13430_2.png) [@thameera](https://community.auth0.com/u/thameera)\
**Post date:** [May 20, 2021, 12:30pm UTC](https://community.auth0.com/t/custom-domain-for-saml-idp-connection/63062/2 "2021-05-20T12:30:23Z")

</div>

Hey @Gratus-BenchSci !

Can you try using the custom domain in the SAML metadata URL? eg: `https://custom.domain.tld/samlp/metadata/CLIENT_ID`

Regarding emails, have you checked this out? [Configure Features to Use Custom Domains](https://auth0.com/docs/custom-domains/configure-features-to-use-custom-domains#use-custom-domains-in-emails)

---

<div class="post-metadata">

**Author:** ![Gratus-BenchSci](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gratus-benchsci/32/22674_2.png) [@Gratus-BenchSci](https://community.auth0.com/u/Gratus-BenchSci)\
**Post date:** [May 20, 2021, 12:55pm UTC](https://community.auth0.com/t/custom-domain-for-saml-idp-connection/63062/3 "2021-05-20T12:55:33Z")

</div>

Thank you! This worked.

---

<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:** [May 20, 2021, 5:32pm UTC](https://community.auth0.com/t/custom-domain-for-saml-idp-connection/63062/4 "2021-05-20T17:32:48Z")

</div>

Perfect! Let us know if you have any other questions down the road!

---

<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:** [May 27, 2021, 10:30am UTC](https://community.auth0.com/t/custom-domain-for-saml-idp-connection/63062/5 "2021-05-27T10:30:00Z")

</div>


