Cant Authenticate Qbittorrent container webui with 3rd Party apps #24820
Replies: 2 comments 1 reply
|
Auth isn't failing — that 204 with a The likely reason is the cookie's name. qBittorrent builds it from the configured WebUI port: const QString SESSION_COOKIE_NAME_PREFIX = u"QBT_SID_"_s;m_sessionCookieName = SESSION_COOKIE_NAME_PREFIX + QString::number(pref->getWebUIPort());Two things fall out of that. Older qBittorrent used a plain Radarr and Sonarr work because they use a normal cookie jar that stores whatever name arrives rather than looking for a specific one. Rather than fight that, the better fit for a third-party app is the API key, since qBittorrent accepts bearer tokens: const bool isUsingApiKey = (authScheme.compare(BEARER_AUTH, Qt::CaseInsensitive) == 0);So generate a key in the WebUI and have the app send If it only speaks username and password, then it's a bug on their side worth reporting as "does not persist the |
|
Title: WebUI Options dialog: Save button non‑functional on WebUI and Downloads pages (Debian 13 Qt6 build) Package: qBittorrent 5.x from Debian archive Build: Qt6 Interface: WebUI Browser: Any (tested in Edge, Firefox, Chromium) Summary WebUI Downloads Clicking Save on these pages does not write any settings, does not send a POST request, and simply scrolls the page upward. No changes are saved, no config updates occur, and no errors are logged. Saving from other pages (e.g., General, Connection, Speed, Advanced) works normally. This regression breaks WebUI configuration and also disables the WebAPI magnet POST endpoint until a valid Preferences write occurs. Symptoms Downloads → Save does nothing Page scrolls upward No POST request sent No config writes No Preferences update No password hash written No directory changes saved No WebUI settings saved No error messages ✔ Working pages Connection → Save works Speed → Save works Advanced → Save works Saving from these pages correctly writes the config, updates Preferences, writes the PBKDF2 hash, and closes the dialog. Impact WebUI password changes to fail Save path changes to fail Incomplete/complete directory changes to fail WebUI settings changes to fail Preferences subsystem to remain uninitialised WebAPI magnet POST (/api/v2/torrents/add) to silently fail Automation pipelines relying on magnet forwarding to break The failure is silent and difficult for users to diagnose. Reproduction Steps Open WebUI Go to Options → WebUI Change any setting Click Save Observe: page scrolls up, nothing saved Go to Options → Downloads Change any setting Click Save Same behaviour: scrolls up, nothing saved Go to Options → General Click Save Settings save correctly, dialog closes Workaround Switch to General (or any working page) Click Save Settings save correctly This workaround confirms the backend Preferences write‑path is functional and the issue is isolated to page‑local handlers. Expected Behaviour POST request should be sent Preferences should update Config should write WebAPI should remain functional Actual Behaviour No POST request No config write No Preferences update WebAPI magnet POST fails until a valid Preferences write occurs Notes I cannot create new Discussions due to repository restrictions. Could a maintainer please convert this into a bug report? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm setting up a mobile companion app (Directarr) to manage my qBittorrent instance remotely behind a reverse proxy / tunnel.
While services like Radarr/Sonarr manage to connect to qBittorrent without issue, 3rd-party companion mobile apps fail when attempting to log in via
/api/v2/auth/loginusing standard username and password credentials.When testing the login endpoint via
curl:All reactions