I have a regular web application built with Flask, and I am using the universal login page (I have done some styling updates to the default page). I have successfully set up custom domain and pass the test in Branding->Custom Domains page.
When I try to log in though, this update does not appear on the address bar and I still see auth0 url. This page does not say how to do this for a python code with universal login page. Could someone give me examples/pointers?
Hi @amohajerani.
Welcome to the Auth0 Community!
When using the Python Flask SDK with custom domains, you must make sure to change the AUTH0_DOMAIN definition in your /.env file.
After that is done, it should open the login page with your custom domain in the URL structure:
https://{YOUR_CUSTOM_DOMAIN}/authorize?
response_type=code&
client_id={yourClientId}&
redirect_uri={https://yourApp/callback}&
scope={scope}&
audience={apiAudience}&
state={state}
As an additional test, you could paste the /authorize URL with your custom domain into a browser and see that it works.
I hope this helps!
Please let me know if you have any questions.
Thanks,
Rueben