Skip to content

Commit

Permalink
* (bluefox) Fixing encryption of the access token
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Aug 20, 2024
1 parent f140bb6 commit ca405a6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,29 +82,32 @@ Or you can use the tab **files** to upload the file. (see image below)
<!--
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
-->
### **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

Expand All @@ -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.
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ca405a6

Please sign in to comment.