Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom headers for bypassing 2 factor auth #664

Open
FredHaa opened this issue Dec 30, 2023 · 4 comments
Open

Custom headers for bypassing 2 factor auth #664

FredHaa opened this issue Dec 30, 2023 · 4 comments

Comments

@FredHaa
Copy link

FredHaa commented Dec 30, 2023

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?

@erickok
Copy link
Owner

erickok commented Dec 31, 2023

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.

@FredHaa
Copy link
Author

FredHaa commented Dec 31, 2023

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.

@ruifung
Copy link

ruifung commented Jan 14, 2024

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.)

@queimadus
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants