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