# Disable social signup for custom domain

**URL:** <https://community.auth0.com/t/disable-social-signup-for-custom-domain/33788>\
**Category:** Get Help\
**Tags:** login\
**Created:** [November 14, 2019, 9:18pm UTC](https://community.auth0.com/t/disable-social-signup-for-custom-domain/33788 "2019-11-14T21:18:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiagob](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tiagob/32/13337_2.png) [@tiagob](https://community.auth0.com/u/tiagob)\
**Post date:** [November 14, 2019, 9:18pm UTC](https://community.auth0.com/t/disable-social-signup-for-custom-domain/33788/1 "2019-11-14T21:18:39Z")

</div>

Hi,

I have a [custom domain](https://auth0.com/docs/custom-domains) setup for my [React SPA application](https://auth0.com/docs/quickstart/spa/react/01-login) which works fine except when I try to [disable social signups](https://auth0.com/rules/disable-social-signup). It gets stuck in a redirect loop. Continually attempting to authorize and failing. When I don’t use a custom domain it correctly redirects to the login page.

Request URL (with custom domain)  
https://{CUSTOM\_DOMAIN}.com/authorize?{QUERY\_STRING}

Response Header Location (with custom domain)  
{REDIRECT\_URI}?error=access\_denied&error\_description=Signup%20disabled&state={STATE}

The expected behavior (which works when I remove the custom domain by changing the `domain` in `auth_config.json` to `{SUBDOMAIN}.auth0.com`) is that it calls `/authorize` and gets directed to `/u/login` (the login page).

Request URL (without custom domain)  
https://{SUBDOMAIN}.auth0.com/authorize?{QUERY\_STRING}

Response Header Location (without custom domain)  
/u/login?state={STATE}

Any help is greatly appreciated.

Best,  
Tiago

---

<div class="post-metadata">

**Author:** ![colin.coutts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/colin.coutts/32/17217_2.png) [@colin.coutts](https://community.auth0.com/u/colin.coutts)\
**Post date:** [January 8, 2020, 11:46pm UTC](https://community.auth0.com/t/disable-social-signup-for-custom-domain/33788/2 "2020-01-08T23:46:02Z")

</div>

Hi @tiagob and welcome to the Auth0 Community!

This sounds like it could be a relatively minor configuration issue causing this. Have you reviewed the [troubleshooting guide](https://auth0.com/docs/custom-domains/troubleshoot) for Custom Domains to see if any of the behavior applies to your situation?

If that doesn’t provide any help, would you mind sending me a [.har](https://auth0.com/docs/troubleshoot/guides/generate-har-files) (of the failing custom domain call and the successful call using your auth0 domain) as well as your tenant name in a DM? Please remove any sensitive information from the .har prior to attaching and I’ll have a look at it to see if I can gather any more information surrounding this.

Best Regards,  
Colin

---

<div class="post-metadata">

**Author:** ![tiagob](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tiagob/32/13337_2.png) [@tiagob](https://community.auth0.com/u/tiagob)\
**Post date:** [January 15, 2020, 11:23pm UTC](https://community.auth0.com/t/disable-social-signup-for-custom-domain/33788/3 "2020-01-15T23:23:59Z")

</div>

In the QUERY\_STRING I added “prompt=login” which worked for a custom domain

---

<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:** [January 16, 2020, 3:07pm UTC](https://community.auth0.com/t/disable-social-signup-for-custom-domain/33788/4 "2020-01-16T15:07:03Z")

</div>

Glad you have it working now!

---

<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:** [January 31, 2020, 3:07pm UTC](https://community.auth0.com/t/disable-social-signup-for-custom-domain/33788/5 "2020-01-31T15:07:04Z")

</div>

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