465 Commits

Author SHA1 Message Date
Ben Irvin
dabbd42ca7 assert acessKey has changed 2022-08-22 12:22:36 +02:00
Ben Irvin
ae90cf5fd0 Merge branch 'api-token-v2/regenerate-tokens-api' into api-token-v2/backend-expirations 2022-08-22 12:11:46 +02:00
Ben Irvin
6de74793df add test todos 2022-08-22 09:26:20 +02:00
Ben Irvin
55dee1a09d verify expiration of token 2022-08-22 09:25:55 +02:00
Ben Irvin
a063f21474 jsdoc comments 2022-08-19 16:53:51 +02:00
Ben Irvin
c5eb2b1a9d rename mapTokenPermissions to flattenTokenPermissions 2022-08-19 16:45:16 +02:00
Ben Irvin
d4f03c7d56 declare functions before use 2022-08-19 16:42:55 +02:00
Ben Irvin
c6aef125c9 fix jsdoc params 2022-08-19 16:41:39 +02:00
Ben Irvin
e79617b094 lastUsedAt isn't a valid update field 2022-08-19 16:37:41 +02:00
Ben Irvin
e3961fb298 rename lastUsed to lastUsedAt 2022-08-19 16:36:28 +02:00
Ben Irvin
36d37706ce add lifespan and expiresAt fields 2022-08-19 16:33:58 +02:00
Ben Irvin
f30f25ecbe lint 2022-08-18 14:52:16 +02:00
Ben Irvin
7ce7db6604 update tests 2022-08-18 14:12:34 +02:00
Ben Irvin
9941198dac fix regeneration 2022-08-18 14:03:59 +02:00
Ben Irvin
7098ae95be Merge branch 'api-token-v2/backend/regenerate-token' into api-token-v2/regenerate-tokens-api 2022-08-18 13:48:06 +02:00
Ben Irvin
06d95419f4 add regeneration of tokens 2022-08-18 13:31:02 +02:00
Ben Irvin
21845bb0d0 remove lastUsed from create 2022-08-18 12:30:27 +02:00
Ben Irvin
fd05d49346 fix linting 2022-08-18 12:24:13 +02:00
Ben Irvin
b2b1432322 Merge branch 'features/api-token-v2' into api-token-v2/permissions-for-api-token 2022-08-18 12:20:45 +02:00
Ben Irvin
622d00930f fix required attributes 2022-08-18 12:13:29 +02:00
Ben Irvin
c61e402461 disallow updating lastUsed from api 2022-08-18 12:03:25 +02:00
Ben Irvin
745a3a8497 add lastUsed to yup validation schema 2022-08-18 12:00:47 +02:00
Ben Irvin
9de7791fad cleanup 2022-08-18 11:53:30 +02:00
Bassel Kanso
baad6fd93f Merge branch 'main' into features/api-token-v2 2022-08-18 12:18:09 +03:00
Ben Irvin
7b60783888 fix e2e tests 2022-08-18 11:02:24 +02:00
Ben Irvin
449f982781 Merge branch 'api-token-v2/permissions-for-api-token' into api-token-v2/access-times-backend 2022-08-18 10:55:11 +02:00
Ben Irvin
e28c9e7ec9 add lastUsed 2022-08-18 10:22:09 +02:00
Ben Irvin
215735b0cd update lastUsed when token is accessed 2022-08-17 23:28:35 +02:00
Ben Irvin
f95bb29d76 add lastUsed 2022-08-17 23:28:20 +02:00
Ben Irvin
1436345e78 remove console.log 2022-08-17 10:10:28 +02:00
ivanThePleasant
1c3c04ab28 Fix unit test 2022-08-16 14:06:35 +03:00
ivanThePleasant
1cda317e03 Refactor FE admin hash generation to fix error 2022-08-16 14:00:45 +03:00
ivanThePleasant
459de9774d Refactor hash function, add uuid to the admin hash, remove debug console logs 2022-08-16 11:58:15 +03:00
Ben Irvin
88c243243d make error message unique 2022-08-16 10:18:41 +02:00
Ben Irvin
dbddec6c62 fix permission mapping 2022-08-16 10:11:32 +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
ivanThePleasant
3ead6f2487 Move hash function to user services instead of it being a separate service 2022-08-12 10:19:40 +03:00
ivanThePleasant
cc17c00fd6 Fix lint issues 2022-08-11 23:09:11 +03:00
Ben Irvin
8ca7c13449 add some failed attempts at improving 2022-08-11 18:04:59 +02:00
ivanThePleasant
7e5b38d588 Merge branch 'master' into chore/user-level-data 2022-08-11 18:28:58 +03:00
ivanThePleasant
f8ac76491f Convert all server events to new format, refactor admin events userAdminId, refactor tests 2022-08-11 15:56:39 +03:00
Ben Irvin
fc752052c8 fix delete test 2022-08-11 13:02:28 +02:00
Ben Irvin
df8b8750a7 fix delete 2022-08-11 13:00:21 +02:00
Ben Irvin
e4d1f59b34 reorganize logic 2022-08-11 12:18:53 +02:00
Ben Irvin
22c82a7258 add custom auth tests 2022-08-11 12:17:27 +02:00
Ben Irvin
6882d5dd0a fix test 2022-08-11 11:04:28 +02:00
Ben Irvin
5f0a9bdf84 only run one delete query 2022-08-11 11:04:12 +02:00
Ben Irvin
2d9c9a2119 update permissions works 2022-08-11 10:48:40 +02:00
Alexandre Bodin
8e486dd05b Fix eslint --fix error 2022-08-11 10:20:50 +02:00