mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-12 07:58:49 +00:00
Merge pull request #1701 from Nizzan943/feat/add-azure-pipelines
Adding Azure Pipelines
This commit is contained in:
commit
460c67be77
6 changed files with 60 additions and 0 deletions
|
@ -61,6 +61,9 @@ export default async function credentialedProxyHandler(req, res, map) {
|
|||
} else {
|
||||
headers.Authorization = `Basic ${Buffer.from(`${widget.username}:${widget.password}`).toString("base64")}`;
|
||||
}
|
||||
}
|
||||
else if (widget.type === "azurePipelines") {
|
||||
headers.Authorization = `Basic ${Buffer.from(`$:${widget.key}`).toString("base64")}`;
|
||||
} else {
|
||||
headers["X-API-Key"] = `${widget.key}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue