Disable social signup for custom domain

Hi,

I have a custom domain setup for my React SPA application which works fine except when I try to disable social signups. 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

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 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 (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

In the QUERY_STRING I added “prompt=login” which worked for a custom domain

1 Like

Glad you have it working now!

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