Flask + custom domain = You should not be hitting this endpoint when using

I followed the tutorial in https://auth0.com/docs/quickstart/webapp/python/01-login for My project using Python and Flask, no issue

But after switching to use custom domain, I just set
api_base_url=‘https://CUSTOM_DOMAIN’
access_token_url=‘https://CUSTOM_DOMAIN/oauth/token’
authorize_url=‘https://CUSTOM_DOMAIN/authorize’

Browser redirect to custom domain but this error alert raised:

You should not be hitting this endpoint. Make sure to use the code snippets shown in the tutorial or visit support.auth0.com for help.

Is there any config missing?

Please give me some support. Thanks

Hi @tuan.nguyen,

Welcome to the Community!

Take a look at this post and see if it helps you:

Thanks,
Dan

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