How to force custom domain to be used in login flow

We have successfully added a custom domain to our application, however, it’s just unclear how to get to actually work in the login flow.

In our application, the login link still sends to the preset tenant URL
https://[tenant].us.auth0.com/login…

If I just go to our custom domain, it redirects to our homepage.

The documentation I’ve found so far doesn’t address this step of the process. Where do we control and configure this please?

thank you

Hi @novatech,

Thanks for reaching out to the Auth0 Community!

To initiate the login flow, you need to begin the request to the /authorize endpoint. For example:

GET https://YOUR_CUSTOM_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    scope={scope}&
    audience={apiAudience}&
    state={state}
    ADDITIONAL_PARAMETERS

Reference doc: Custom Domain Configuration - Common Questions

Please let me know if you have any further questions.

Thanks,
Rueben

1 Like

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