News called /api/v1/client/news through apiGet(), which sends the webtoken Bearer obtained from POST /api/v1/client/user/webtoken. But that route is a defineClientEventHandler -- it verifies the clients own short-lived signed JWT and never consults the webtokens ACLs at all, so it rejected the request outright. Store and Library have always worked because they already use the JWT path. Adds api_get_jwt on the Rust side and apiGetClient() in the composable, and points News at it. Verified working against the live server. Two auth mechanisms coexist here and picking the wrong one yields a clean 403 that looks like a permissions problem: /api/v1/client/* wants the client JWT, while routes gated by aclManager.getUserIdACL want the webtoken plus the right ACL. |
||
|---|---|---|
| .. | ||
| .vscode | ||
| libs/appletrust | ||
| main | ||
| src-tauri | ||
| .bashrc | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .nvmrc | ||
| build.mjs | ||
| changelog.md | ||
| DEBUG.md | ||
| drop.svg | ||
| LICENSE | ||
| nvidia-prop-dev.sh | ||
| optimize-appimage.sh | ||
| package.json | ||
| README.md | ||
Desktop
The official desktop client for Drop.