# Switched to custom domain but test still sends auth0 domain as callback

**URL:** <https://community.auth0.com/t/switched-to-custom-domain-but-test-still-sends-auth0-domain-as-callback/97839>\
**Category:** Get Help\
**Tags:** google-social-connection, connections\
**Created:** [January 10, 2023, 12:36pm UTC](https://community.auth0.com/t/switched-to-custom-domain-but-test-still-sends-auth0-domain-as-callback/97839 "2023-01-10T12:36:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stackref-kmcduffee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stackref-kmcduffee/32/40913_2.png) [@stackref-kmcduffee](https://community.auth0.com/u/stackref-kmcduffee)\
**Post date:** [January 10, 2023, 12:36pm UTC](https://community.auth0.com/t/switched-to-custom-domain-but-test-still-sends-auth0-domain-as-callback/97839/1 "2023-01-10T12:36:45Z")

</div>

We have a custom domain setup and have non-development keys for Google social. The callback has been set there to the custom domain as well. However, when hitting the “Try Connection” button for Google, the error “Error 400: redirect\_uri\_mismatch” appears. Looking at its details, the redirect\_uri is still using the [auth0.com](http://auth0.com) URL. Gave it several hours, still happening.

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [January 29, 2023, 10:07pm UTC](https://community.auth0.com/t/switched-to-custom-domain-but-test-still-sends-auth0-domain-as-callback/97839/3 "2023-01-29T22:07:28Z")

</div>

Hi @stackref-kmcduffee

Thanks for getting in touch with us at Auth0 Community.

The Try button within connections actually uses the tenant’s canonical domain as opposed to the custom domain if one is setup. To test you would need to either try the connection from one of your applications that uses the custom domain or you can try this method [https://community.auth0.com/t/try-button-for-any-sso-connection-has-trouble-with-redirect-uri/91004](https://community.auth0.com/t/try-button-for-any-sso-connection-has-trouble-with-redirect-uri/91004)

Warm regards.

---

<div class="post-metadata">

**Author:** ![stackref-kmcduffee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stackref-kmcduffee/32/40913_2.png) [@stackref-kmcduffee](https://community.auth0.com/u/stackref-kmcduffee)\
**Post date:** [January 29, 2023, 11:17pm UTC](https://community.auth0.com/t/switched-to-custom-domain-but-test-still-sends-auth0-domain-as-callback/97839/4 "2023-01-29T23:17:38Z")

</div>

Thanks @SaqibHussain . It seems clunky to have to do that, but thanks for the suggestion and reasoning.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 12, 2023, 11:17pm UTC](https://community.auth0.com/t/switched-to-custom-domain-but-test-still-sends-auth0-domain-as-callback/97839/5 "2023-02-12T23:17:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
