Protecting static webpage with Traefik API gateway using forwardAuth directive


I am trying to integrate Auth0 with Traefik API gateway to protect static webpages. My idea is to use Traefik’s forwaredAuth directive with corresponding ‘regular web app’ app in Auth0. So that when user requests /protected, he would be redirected to Auth0’s new universal login, logged-in and with 200 redirected back to Traefik, which will upon the 200 pass the request to the protected path.

But I wasn’t able to succeed and I fail to see what am I doing wrong.

Could you please help me with this one?

Thank you