I have been using a combination of Organizr and ForwardAuth to handle my authentication.
Now for this to work I have an error page within Organizr that handles all 401 errors
This is part of a static "file" config containing:
[HTTP.Middlewares.401.Errors]
Status = ["401"]
Service = "organizr-error@docker"
Query = "/error.html"
In my stack on the organizr container this looks like:
labels:
traefik.enable: "true"
traefik.http.services.organizr-error.loadbalancer.server.port: "80"
traefik.http.services.organizr-error.loadbalancer.PassHostHeader: "true"
And on other services I use:
traefik.http.routers.service-ext.middlewares: "401@file"
Now here is the problem.
The end-user browser gets redirected to https://organizr/
But of course, this is an unknown address as it's an internal (docker container) address
The error page isn't shown.
I can see that the forward authentication is working properly, I can see request coming into the authentication provider, and I can see it sends a response 401 "not authorized" back
I can also manually go to the error.html page and it returns the correct page
I have tested with latest table, and with latest RC
Am I missing something?