From c2c56dc798e063de3d77476998b4577aeadf5f6e Mon Sep 17 00:00:00 2001 From: Paul Hutchinson Date: Tue, 18 Nov 2025 15:57:12 +0000 Subject: [PATCH] [feature] SC-166737/improve app proxy security by restricting where token replacements can go --- manifest.json | 13 ++++++++++++- src/constants.ts | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index c302b3d..26b0cd7 100644 --- a/manifest.json +++ b/manifest.json @@ -54,7 +54,18 @@ { "url": "https://api.lansweeper.com/api/*", "methods": ["POST"], - "timeout": 20 + "timeout": 20, + "settingsInjection": { + "client_id": { + "body": ["client_id"] + }, + "client_secret": { + "body": ["client_secret"] + }, + "global_access_token": { + "body": ["refresh_token"] + } + } } ] } diff --git a/src/constants.ts b/src/constants.ts index 988feaf..e5af768 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -26,7 +26,7 @@ export const placeholders = { ACCESS_TOKEN: `[[${ACCESS_TOKEN_PATH}]]`, GLOBAL_ACCESS_TOKEN: `__global_access_token.json("[access_token]")__`, GLOBAL_REFRESH_TOKEN: `__global_access_token.json("[refresh_token]").urlencode__`, -}; +} as const; /** Lansweeper */ export const APP_URL = "https://app.lansweeper.com";