Skip to content

Forward Auth with Traefik is not working #1714

@louigitech

Description

@louigitech

Hello everyone,

I don't know if I am doing something wrong or not but i'm trying to use the "Forward Auth" with traefik as described here: https://docs.defguard.net/features/forward-auth but it's not working.

Something is wrong with the URL. For the moment, I need to manually change the URL to make it work... Let me explain. I'm trying to access a service called "Downloads", this service is protected via Forward Auth, here is the traefik labels:

- "traefik.http.middlewares.defguardauth.forwardauth.address=https://auth.mydomain.net/api/v1/forward_auth"
- "traefik.http.routers.qbittorrent.middlewares=defguardauth"

When I'm trying to access my service with the URL "downloads.mydomain.net", here is what I have:
Image

When I'm logging in, I got a blank page or I'm redirected to the defguard URL (can't reproduce the blank page at the moment):
Image

If I'm manually changing the URL, before trying to access to the service I want to secure via the "Forward Auth", in this case "downloads.mydomain.net", it's working :
Image

Don't know what I'm missing here... or maybe it's a bug?
Thanks a lot!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions