23367 Commits

Author SHA1 Message Date
Ben Irvin
3ca863d80b fix failing test 2022-08-24 19:02:38 +02:00
Ben Irvin
2b30007f86 lifespan must be greater than zero 2022-08-24 18:05:51 +02:00
Ben Irvin
2359ca1cc6 fix tests 2022-08-24 18:05:36 +02:00
Ben Irvin
53be3b5d30 make name unique 2022-08-24 18:04:12 +02:00
Ben Irvin
6577a9533c use lodash/fp 2022-08-24 16:29:39 +02:00
Ben Irvin
574448deae remove comments 2022-08-24 16:27:48 +02:00
Ben Irvin
a3a584d176 allow lifespan to update 2022-08-24 16:27:15 +02:00
Ben Irvin
1bd9fbdd85 fix return type 2022-08-24 16:26:40 +02:00
Ben Irvin
589a5bd1cf fix test timing 2022-08-24 12:37:21 +02:00
Ben Irvin
58a152ff2e token counts as expired when zero 2022-08-24 10:55:28 +02:00
Ben Irvin
93f6ca30ef typo 2022-08-24 10:54:34 +02:00
Ben Irvin
73345efa54 add tests for expiry 2022-08-24 10:48:24 +02:00
Ben Irvin
412f21e973 token doesn't authorize when expired 2022-08-24 10:32:24 +02:00
Ben Irvin
98d82a0285 fix tests 2022-08-24 10:01:36 +02:00
Ben Irvin
43465af282 improve lifespan validation 2022-08-24 09:10:30 +02:00
Ben Irvin
3850c9452b Merge branch 'features/api-token-v2' into api-token-v2/backend-expirations 2022-08-24 09:00:04 +02:00
Ben Irvin
af6e7d8f41
Merge pull request #14145 from strapi/api-token-v2/regenerate-tokens-api
Api token v2/regenerate tokens api
2022-08-23 23:06:00 +02:00
Ben Irvin
c0bb3a6014
Merge pull request #14164 from strapi/api-token-v2/fix-syncActions
Api token v2/fix sync actions
2022-08-23 23:04:59 +02:00
Ben Irvin
6d4bf5e4b2 Merge branch 'features/api-token-v2' into api-token-v2/fix-syncActions 2022-08-23 21:04:51 +02:00
Ben Irvin
9bc73368c4
Merge pull request #14181 from strapi/api-token-v2/fix-failing-e2e-tests
fix test
2022-08-23 21:01:00 +02:00
Ben Irvin
d4c3c6e9af Merge branch 'api-token-v2/fix-failing-e2e-tests' into api-token-v2/regenerate-tokens-api 2022-08-23 20:18:13 +02:00
Ben Irvin
0b8ecaaccb sort permissions to compare 2022-08-23 20:08:45 +02:00
Ben Irvin
5085f5ed45 actually fix test 2022-08-23 19:19:56 +02:00
Ben Irvin
353efdf84c fix test 2022-08-23 18:28:34 +02:00
Ben Irvin
205c909885 fix failing test 2022-08-23 17:59:06 +02:00
Ben Irvin
97f91dd7a5 fix failing tests 2022-08-23 17:24:29 +02:00
Convly
3944677650 Add unit tests for the content-api permissions 2022-08-23 17:10:10 +02:00
Convly
f3c1812e00 Remove useless warning 2022-08-23 17:09:48 +02:00
Convly
1d6b42efbe Use local instance of strapi instead of the global 2022-08-23 16:05:47 +02:00
Convly
6abea9cd85 Expose "get actions as map" & update sync actions
Co-authored-by: Ben Irvin <innerdvations@users.noreply.github.com>
2022-08-23 16:02:45 +02:00
Ben Irvin
7e446b7414 add token usage tests 2022-08-23 15:04:24 +02:00
Ben Irvin
8803dbbd46 fix tests 2022-08-23 14:14:04 +02:00
Ben Irvin
e47db1a490 add comment 2022-08-23 13:52:33 +02:00
Ben Irvin
3c724eb483 rename tests 2022-08-23 13:52:00 +02:00
Ben Irvin
dbe79dc605 fix data type 2022-08-23 13:51:23 +02:00
Ben Irvin
e54e5f7ddc fix lastUsedAt 2022-08-23 13:45:27 +02:00
Ben Irvin
7b389e49a9 add test todos 2022-08-23 13:03:15 +02:00
Ben Irvin
36b53e8046 more tests and fixes 2022-08-23 12:53:20 +02:00
Ben Irvin
28f078be0a lifespan validation 2022-08-23 10:51:53 +02:00
Ben Irvin
1cf0cb5c4c fix test 2022-08-23 10:49:27 +02:00
Ben Irvin
cb87200099 use strapi.log 2022-08-22 18:52:14 +02:00
Ben Irvin
da00ba89e1 lifespan unit test 2022-08-22 18:46:22 +02:00
Ben Irvin
0918729d21 Merge branch 'features/api-token-v2' into api-token-v2/backend-expirations 2022-08-22 17:54:33 +02:00
Ben Irvin
2cf8b5e7d0 Merge branch 'features/api-token-v2' into api-token-v2/fix-syncActions 2022-08-22 17:46:56 +02:00
Ben Irvin
82e5cb3855 Merge branch 'main' into features/api-token-v2 2022-08-22 17:45:00 +02:00
Ben Irvin
48107d1000 Merge branch 'main' into api-token-v2/fix-syncActions 2022-08-22 17:32:48 +02:00
Ben Irvin
7a1de40bb6 register actions in contentapi bootstrap 2022-08-22 17:31:15 +02:00
Simone
f4c6a953bf
Merge pull request #14109 from strapi/chore/add-coverage-script-in-the-admin-package-json
Add coverage script in the admin
2022-08-22 15:45:38 +02:00
Julie Plantey
2346e3e074
Merge pull request #14111 from strapi/fix/dynamic-tables-headers-translations
[Fix] Dynamic table translations
2022-08-22 14:03:30 +02:00
Ben Irvin
aa5a1c7ed7 regenerate throws on invalid id 2022-08-22 12:33:00 +02:00