39 Commits

Author SHA1 Message Date
Ben Irvin
353efdf84c fix test 2022-08-23 18:28:34 +02:00
Ben Irvin
e3961fb298 rename lastUsed to lastUsedAt 2022-08-19 16:36:28 +02:00
Ben Irvin
fd05d49346 fix linting 2022-08-18 12:24:13 +02:00
Ben Irvin
7b60783888 fix e2e tests 2022-08-18 11:02:24 +02:00
Ben Irvin
0972919247 list and get should return array of action strings 2022-08-12 09:52:47 +02:00
Ben Irvin
f97c59ff90 fix token builder 2022-08-12 09:50:10 +02:00
Ben Irvin
2d9c9a2119 update permissions works 2022-08-11 10:48:40 +02:00
Ben Irvin
f16d86f8ec remove test 2022-08-10 17:36:21 +02:00
Ben Irvin
7d59934668 allow empty permissions array on non-custom tokens 2022-08-10 10:55:49 +02:00
Ben Irvin
385fbe500e add non-custom permissions param test 2022-08-09 10:53:16 +02:00
Ben Irvin
a5fcc3eaaf fix failure tests 2022-08-09 10:49:44 +02:00
Ben Irvin
e3bd58c69a update test names 2022-08-09 10:23:15 +02:00
Ben Irvin
f208e0c69d skip custom tests 2022-08-08 22:54:58 +02:00
Ben Irvin
ff559cdf6b custom token test 2022-08-08 22:54:08 +02:00
Ben Irvin
004a959a96 expect token status 2022-08-08 22:53:25 +02:00
Ben Irvin
d70ab84c89 remove randomness 2022-08-08 22:51:01 +02:00
Ben Irvin
78063a5591 add test for custom without permissions 2022-08-08 17:21:10 +02:00
Ben Irvin
6641ba1f64 update tests 2022-08-08 17:09:17 +02:00
Ben Irvin
0b057257fd add custom type 2022-08-08 15:00:46 +02:00
Pierre Noël
b58274aecb refactor error handling 2021-11-04 11:41:29 +01:00
Dieter Stinglhamber
ed83cc353c implement the ListView for the API Tokens 2021-10-25 09:15:03 +02:00
Dieter Stinglhamber
17742d2153 update tests to avoid false negative 2021-09-28 11:17:44 +02:00
Dieter Stinglhamber
5bc7c4462a fix typo 2021-09-24 12:05:40 +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
f791c21cc9 fix typos 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
c143d58bc1 fix typos 2021-09-24 12:05:38 +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
643f26975d use plain text in tests in favor of constants 2021-09-24 12:05:38 +02:00
Dieter Stinglhamber
3321aaa92c extract token types in a constant 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
e16ce91ade add test to support trimming 2021-09-24 12:05:35 +02:00
Dieter Stinglhamber
e9b897b66b store the hashed accessKey in the database 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