transdroid icon indicating copy to clipboard operation
transdroid copied to clipboard

Custom headers for bypassing 2 factor auth

Open FredHaa opened this issue 1 year ago • 4 comments

I run qBittorrent behind Authelia, and I have not found a way to use transdroid to connect to the server.

One way would be by sending a custom header with the requests a la LunaSea which would make it possible for my reverse proxy to detect this and then bypass Authelia.

Is a feature like that feasible to implement?

FredHaa avatar Dec 30 '23 21:12 FredHaa

Indeed there is no way currently to set custom headers. I am not at all familiar with Authelia, but perhaps you could set up some app-specific basic auth? It's a but much to add (yet another) connection feature for such a usage-specific case.

erickok avatar Dec 31 '23 09:12 erickok

I see that it wasn't really clear in the original issue, but this wouldn't be specific to Authelia, but rather Traefik or any reverse proxy which supports routing logic via custom headers, but I get it if it is too big a hassle.

I would use the custom headers to basically tell Traefik (or any other reverse proxy) to ignore the Authelia middleware.

FredHaa avatar Dec 31 '23 11:12 FredHaa

Or if you're using authentik, you can also send additional credentials via HTTP Basic auth (But you have to always send it since authentik won't sent a HTTP Basic challenge.)

ruifung avatar Jan 14 '24 04:01 ruifung

Can comment I would use this feature to access my transmission instance behind a Cloudflare tunnel which uses oauth authentication by default. Adding a complete oauth flow would be overkill though. Allowing to send an extra header in the requests (with a generated authentication token) would work great.

queimadus avatar May 19 '24 08:05 queimadus