Enhancement: Add bearer authentication to whatsupdocker widget (#7134)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled

This commit is contained in:
Ben Belov
2026-09-11 23:24:08 -07:00
committed by GitHub
parent eacc205249
commit fcd9a715d9
4 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ export default async function credentialedProxyHandler(req, res, map) {
} else {
headers.Authorization = basicAuthHeader(widget);
}
} else if (widget.type === "ntfy") {
} else if (["ntfy", "whatsupdocker"].includes(widget.type)) {
if (widget.key) {
headers.Authorization = `Bearer ${widget.key}`;
} else if (widget.username && widget.password) {