TechClusterHQ / qbt-portchecker

3 stars 0 forks source link

403 Forbidden: portchecker does not auth with QBitTorrent #2

Closed GamingLiamStudios closed 2 days ago

GamingLiamStudios commented 2 days ago

As stated in the docs

All API methods require authentication (except /api/v2/auth/login, obviously).

This causes any interaction with qbit to return a 403 Forbidden. To fix all that would need to be done is allowing qbit login info at script start and storing the login cookie between requests, as also demonstrated on the qbit api docs.

TechClusterHQ commented 2 days ago

The first paragraph in the "Installation" section of the README describes that you need to enable the "Bypass authentication for clients on localhost" in your qBittorrent settings. This setting disables the need to authenticate when the request is coming from localhost (which is the case when running a docker mod).

TechClusterHQ commented 2 days ago

If you have a reason to keep that setting turned off I could look into optionally adding the login cookies to the requests, just let me know 🙂

GamingLiamStudios commented 2 days ago

completely missed that one :p

TechClusterHQ commented 2 days ago

all good!