Pierre Noël
|
019007ba3e
|
improve error message + remove use of API_TOKEN_SALT
|
2022-04-07 16:34:57 +02:00 |
|
Pierre Noël
|
9fc63af260
|
harmonize secret generation + don't generate in production mode
|
2022-04-07 16:34:56 +02:00 |
|
tillschweneker
|
ac0c306a0b
|
[FIX] respect custom ENV_PATH when setting API_TOKEN_SALT
|
2021-12-22 10:08:47 +01:00 |
|
Alexandre Bodin
|
9cd59197b1
|
Fix tests and move api token config to use camelcase naming
|
2021-10-26 12:18:53 +02:00 |
|
Alexandre Bodin
|
a33d9e56be
|
Move admin config to config/admin.js
|
2021-10-26 12:12:02 +02:00 |
|
Dieter Stinglhamber
|
ed83cc353c
|
implement the ListView for the API Tokens
|
2021-10-25 09:15:03 +02:00 |
|
Dieter Stinglhamber
|
1a72747672
|
add api-token auth strategy to the content-api
|
2021-09-24 12:06:56 +02:00 |
|
Dieter Stinglhamber
|
31d74d2710
|
allow for partial payload to update a token
|
2021-09-24 12:05:40 +02:00 |
|
Dieter Stinglhamber
|
f7bd99cb74
|
implement PUT endpoint to update a token
|
2021-09-24 12:05:40 +02:00 |
|
Dieter Stinglhamber
|
78e5bd98d3
|
update tests and rename get method
|
2021-09-24 12:05:39 +02:00 |
|
Dieter Stinglhamber
|
a4e0df4ce8
|
implement GET endpoint to get a single token
|
2021-09-24 12:05:39 +02:00 |
|
Dieter Stinglhamber
|
930156a574
|
return deleted token
|
2021-09-24 12:05:38 +02:00 |
|
Dieter Stinglhamber
|
946d3a0ea3
|
add DELETE route and logic
|
2021-09-24 12:05:38 +02:00 |
|
Dieter Stinglhamber
|
a804b908c8
|
adds tests
|
2021-09-24 12:05:37 +02:00 |
|
Dieter Stinglhamber
|
fd0e206d83
|
add e2e tests
|
2021-09-24 12:05:37 +02:00 |
|
Dieter Stinglhamber
|
fd2b0d81ab
|
implement GET endpoint to list the api tokens
|
2021-09-24 12:05:37 +02:00 |
|
Dieter Stinglhamber
|
305547b9bb
|
use createHmac in favour of createHash for added security
|
2021-09-24 12:05:36 +02:00 |
|
Dieter Stinglhamber
|
ef36034acf
|
throw an error if there is an issue with the salt configuration
|
2021-09-24 12:05:36 +02:00 |
|
Dieter Stinglhamber
|
e9b897b66b
|
store the hashed accessKey in the database
|
2021-09-24 12:05:35 +02:00 |
|
Dieter Stinglhamber
|
5305f2e757
|
fix issues after rebasing on release/v4
|
2021-09-24 12:05:35 +02:00 |
|
Dieter Stinglhamber
|
1c10cf4acf
|
improve jsdoc comments
|
2021-09-24 12:05:35 +02:00 |
|
Dieter Stinglhamber
|
f2c6af61ee
|
fix exists function
|
2021-09-24 12:05:34 +02:00 |
|
Dieter Stinglhamber
|
3fb6b57808
|
implement POST endpoint to create api tokens
|
2021-09-24 12:05:34 +02:00 |
|