diff --git a/manifest.json b/manifest.json index a5b35ba..83f7b07 100644 --- a/manifest.json +++ b/manifest.json @@ -52,13 +52,35 @@ "whitelist": [ { "url": "https://login.teamviewer.com/oauth2/authorize", - "methods": ["GET"], - "timeout": 10 + "methods": ["GET", "POST"], + "timeout": 10, + "settingsInjection": { + "client_id": { + "body": ["client_id"] + }, + "client_secret": { + "body": ["client_secret"] + }, + "global_access_token": { + "body": ["refresh_token"] + } + } }, { "url": "https://webapi.teamviewer.com/api/v1/.*", "methods": ["GET", "POST", "PUT"], - "timeout": 10 + "timeout": 10, + "settingsInjection": { + "client_id": { + "body": ["client_id"] + }, + "client_secret": { + "body": ["client_secret"] + }, + "global_access_token": { + "body": ["refresh_token"] + } + } } ] } diff --git a/src/services/teamviewer/constants.ts b/src/services/teamviewer/constants.ts index 7d9f37c..065b380 100644 --- a/src/services/teamviewer/constants.ts +++ b/src/services/teamviewer/constants.ts @@ -5,4 +5,4 @@ export const placeholders = { GLOBAL_REFRESH_TOKEN: `__global_access_token.json("[refreshToken]")__`, ACCESS_TOKEN: "[[oauth/global/access_token]]", REFRESH_TOKEN: "[[oauth/global/refresh_token]]", -}; +} as const;