208 Commits

Author SHA1 Message Date
Jamie Howard
07febfa69e Merge remote-tracking branch 'origin/main' into feature/media-library-ctv 2022-12-16 13:57:57 +00:00
Jamie Howard
c8c1678006 feat(upload): configure the view
test: e2e
chore: naming
2022-10-31 17:21:51 +00:00
ivanThePleasant
6c1b0010e6 Add unit tests to the admin hash generation, fix minor requests 2022-10-28 14:01:37 +03:00
ivanThePleasant
5620b25138 Merge branch 'main' into chore/user-level-data 2022-10-25 15:21:38 +03:00
Ben Irvin
2dadda640b don't populate update query 2022-10-03 12:33:27 +02:00
ivanThePleasant
01bb760793 Clean up unnecessary code 2022-09-29 14:15:07 +03:00
ivanThePleasant
5a4362faf7 Refactor changes to use request context 2022-09-29 11:24:11 +03:00
ivanThePleasant
c0588231a6 Merge branch 'main' into chore/user-level-data 2022-09-29 11:23:17 +03:00
ivanThePleasant
b51b0f4616 Merge branch 'main' into chore/user-level-data 2022-09-21 10:24:18 +03:00
Simone Taeggi
e1a0ae803e Merge branch 'main' into features/api-token-v2 2022-09-08 22:16:55 +02:00
Alexandre Bodin
4e989321e3 Fix eslint core/admin 2022-09-05 16:15:21 +02:00
ivanThePleasant
d568592d5c Refactor 'didUpdateRolePermissions' calls 2022-09-05 12:19:31 +03:00
ivanThePleasant
a2ee4bb855 Change location of user creation analytics call, remove development console log, adjust tests accordingly 2022-09-02 16:21:48 +03:00
ivanThePleasant
b5c98ae0cd Refactor event calls to follow old format, encapsulate hashing in the sender, refactor the format of event payload to better correspond to the new api 2022-09-02 14:43:51 +03:00
Ben Irvin
1e5f8e9fee fix test 2022-08-31 10:56:59 +02:00
Jean-Sébastien Herbaux
b9538ea7c3
Merge pull request #14247 from strapi/api-token-v2/throw-on-unknown-permission
Validate & throw on unknown permissions for API tokens
2022-08-31 10:34:32 +02:00
Convly
dc084f9102 Add missing await 2022-08-30 10:56:17 +02:00
Convly
bf5534d725 Test consistency 2022-08-29 18:03:43 +02:00
Convly
dfad26d2a2 Fix test 2022-08-29 18:03:04 +02:00
Convly
e7ca50f6b9 Validate permissions for api-tokens & throw on unknown permissions 2022-08-29 16:33:41 +02:00
Ben Irvin
3cd1a9b183
Merge branch 'features/api-token-v2' into api-token-v2/restrict-lifespans 2022-08-29 12:37:53 +02:00
Ben Irvin
0213ee2e1a
Merge pull request #14238 from strapi/api-token-v2/rename-api-token-permission
rename token-permission to api-token-permission
2022-08-29 12:35:21 +02:00
Ben Irvin
9aed7d9540 rename token-permission to api-token-permission 2022-08-29 09:17:31 +02:00
Ben Irvin
697662421f allow empty array of permissions 2022-08-26 16:11:08 +02:00
Ben Irvin
16537f199e validate lifespan 2022-08-26 15:27:47 +02:00
Ben Irvin
14c183ce51 validate lifespan 2022-08-26 10:33:18 +02:00
Convly
3568034cb4 Add test for create & update custom token permissions 2022-08-25 15:16:53 +02:00
Convly
8732d07555 Prevent duplicate permissions on create too 2022-08-25 14:25:09 +02:00
Convly
2c71d7d069 Fix permissions update for custom token (uniqueness) 2022-08-25 14:23:36 +02:00
Jean-Sébastien Herbaux
4c6c5e5218
Merge pull request #14214 from strapi/api-token-v2/fix-update-checks
Fix API tokens' update due to wrong enum values
2022-08-25 14:12:46 +02:00
Convly
46b28db877 Fix invalid enum value used to assert 'changingTypeToCustom' 2022-08-25 13:56:24 +02:00
Ben Irvin
2359ca1cc6 fix tests 2022-08-24 18:05:36 +02:00
Ben Irvin
574448deae remove comments 2022-08-24 16:27:48 +02:00
Ben Irvin
1bd9fbdd85 fix return type 2022-08-24 16:26:40 +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
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
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
e54e5f7ddc fix lastUsedAt 2022-08-23 13:45:27 +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
0918729d21 Merge branch 'features/api-token-v2' into api-token-v2/backend-expirations 2022-08-22 17:54:33 +02:00
Ben Irvin
aa5a1c7ed7 regenerate throws on invalid id 2022-08-22 12:33:00 +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
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
e3961fb298 rename lastUsed to lastUsedAt 2022-08-19 16:36:28 +02:00