From ca405a6bc41faa50f4a97e089e97bef062469e37 Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Tue, 20 Aug 2024 07:53:08 +0700 Subject: [PATCH] * (bluefox) Fixing encryption of the access token --- README.md | 27 +++++++++++++++------------ src/main.ts | 10 +++++----- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 0df55d0..d1bcf69 100644 --- a/README.md +++ b/README.md @@ -82,29 +82,32 @@ Or you can use the tab **files** to upload the file. (see image below) +--> +### **WORK IN PROGRESS** +* (bluefox) Fixing encryption of the access token + ### 2.0.0 (2024-08-18) * (bluefox) BREAKING CHANGE: You must enter your credentials again * (bluefox) Old code has been removed and GUI has been rewritten -* (bluefox) Dependencies have been updated - +* (bluefox) Dependencies have been updated + ### 1.2.0 (2024-04-28) * (mcm1957) Adapter requires node.js >= 18 and js-controller >= 5 now -* (mcm1957) Dependencies have been updated - +* (mcm1957) Dependencies have been updated + ### 1.1.0 (2023-11-05) * (Scrounger) Bugfix: objects will be created only if necessary * (Scrounger) Bugfix for excessive number of warnings has been added -* (Scrounger) Distance calculation between ioBroker and tracker has been added - +* (Scrounger) Distance calculation between ioBroker and tracker has been added + ### 1.0.0 (2023-11-04) * (mcm1957) Adapter has been moved into iobroker-community-adapters organisation -* (mcm1957) Dependencies have been updated - +* (mcm1957) Dependencies have been updated + ### 0.1.2 (2023-02-24) * (xXBJXx) Dependencies updated -* (xXBJXx) UI updated - +* (xXBJXx) UI updated + ## License MIT License @@ -127,4 +130,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. diff --git a/src/main.ts b/src/main.ts index 2433f68..e3443dd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -520,7 +520,7 @@ class TractiveGPS extends utils.Adapter { 'Content-Type': 'application/json', 'x-tractive-client': this.client_id, 'x-tractive-user': this.allData.userInfo.user_id, - Authorization: `Bearer ${this.decrypt(this.config.access_token)}`, + Authorization: `Bearer ${this.config.access_token}`, }, }; try { @@ -586,7 +586,7 @@ class TractiveGPS extends utils.Adapter { 'Content-Type': 'application/json', 'x-tractive-client': this.client_id, 'x-tractive-user': this.allData.userInfo.user_id, - Authorization: `Bearer ${this.decrypt(this.config.access_token)}`, + Authorization: `Bearer ${this.config.access_token}`, }, }; try { @@ -639,7 +639,7 @@ class TractiveGPS extends utils.Adapter { 'Content-Type': 'application/json', 'x-tractive-client': this.client_id, 'x-tractive-user': this.allData.userInfo.user_id, - Authorization: `Bearer ${this.decrypt(this.config.access_token)}`, + Authorization: `Bearer ${this.config.access_token}`, }, }; try { @@ -704,7 +704,7 @@ class TractiveGPS extends utils.Adapter { 'Content-Type': 'application/json', 'x-tractive-client': this.client_id, 'x-tractive-user': this.allData.userInfo.user_id, - Authorization: `Bearer ${this.decrypt(this.config.access_token)}`, + Authorization: `Bearer ${this.config.access_token}`, }, }; try { @@ -770,7 +770,7 @@ class TractiveGPS extends utils.Adapter { 'Content-Type': 'application/json', 'x-tractive-client': this.client_id, 'x-tractive-user': this.allData.userInfo.user_id, - Authorization: `Bearer ${this.decrypt(this.config.access_token)}`, + Authorization: `Bearer ${this.config.access_token}`, }, }; try {