17399 Commits

Author SHA1 Message Date
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
6fa87bb146 update test 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
03e9ff6084 use spyOn to mock crypto 2021-09-24 12:05:37 +02:00
Dieter Stinglhamber
6a4a4cc1f9 minor fixes 2021-09-24 12:05:37 +02:00
Dieter Stinglhamber
bfcd119311 fix service unit test 2021-09-24 12:05:36 +02:00
Dieter Stinglhamber
a1a072df46 avoid mutation of the body 2021-09-24 12:05:36 +02:00
Dieter Stinglhamber
bfcebc9bae improve tests and minor fixes 2021-09-24 12:05:36 +02:00
Dieter Stinglhamber
305547b9bb use createHmac in favour of createHash for added security 2021-09-24 12:05:36 +02:00
Dieter Stinglhamber
0be0c98d72 add test to support salt errors 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
e16ce91ade add test to support trimming 2021-09-24 12:05:35 +02:00
Dieter Stinglhamber
4b7a1eb48f trim name and description before validation 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
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
4d27d9de51 cleanup unnecessary code 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
Dieter Stinglhamber
36af3134be fix displayName for create and delete permissions 2021-09-24 12:05:34 +02:00
Dieter Stinglhamber
33374f4193 update snapshot for EE without SSO test 2021-09-24 12:05:34 +02:00
Dieter Stinglhamber
d60659df89 update snapshot for EE test 2021-09-24 12:05:33 +02:00
Dieter Stinglhamber
8d9b957f8c add CRUD permission for the api token 2021-09-24 12:05:33 +02:00
Alexandre Bodin
fd4701d33e Fix missing dep 2021-09-24 11:33:14 +02:00
Alexandre Bodin
78fc0c4333 Remove hook-redis to leave it to leave this for userland 2021-09-24 10:43:10 +02:00
Alexandre Bodin
af48edd943 Remove strapi-hook-ejs 2021-09-24 10:24:15 +02:00
Alexandre Bodin
3155f5b380 Remove strapi-middlware-views 2021-09-24 10:12:39 +02:00
Dieter Sting
e4d443ed09
cast isAuthenticated as a boolean to avoid side effects
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2021-09-24 09:59:19 +02:00
Dieter Sting
7a03e65c3f
make sure to await the policy in case we have an async function
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2021-09-24 09:58:49 +02:00
Dieter Stinglhamber
da95228830 fix unit tests 2021-09-24 09:56:08 +02:00
Alexandre Bodin
b8d388b4a7 Prefix route in U&P with /api 2021-09-24 09:55:01 +02:00
Dieter Stinglhamber
bc9bc1c498 remove commented code 2021-09-24 09:44:53 +02:00
Dieter Stinglhamber
3c1dcbe76d refactor policy API 2021-09-24 09:35:25 +02:00
Alexandre BODIN
b97dff15ee
Merge pull request #11063 from strapi/v4/cleanup-cm
Move CM files into the new structure
2021-09-24 09:26:02 +02:00
Alexandre Bodin
7cf05bfb10 Move CM files into the new structure 2021-09-24 09:04:44 +02:00
Convly
892c0dc300 Fix broken lint 2021-09-23 18:13:06 +02:00
Convly
74aee6f2d2 Remove old tests (will add more later) 2021-09-23 18:06:43 +02:00
Alexandre BODIN
88bff3cb27
Merge pull request #11043 from strapi/v4/disable-template
Disable templates for the moment
2021-09-23 17:42:07 +02:00
Convly
4737eff9f9 Fix PR review comments 2021-09-23 17:25:25 +02:00
Alexandre BODIN
67af23d827
Merge pull request #11056 from strapi/v4/migrate-user-functions
Migrate user functions folder
2021-09-23 17:18:20 +02:00
Pierre Noël
03110962d6 disable template question 2021-09-23 16:53:32 +02:00
Pierre Noël
2d307f4d65 remove functions folder in generator 2021-09-23 16:47:24 +02:00
Convly
fa7467dbf8 Remove typo 2021-09-23 16:35:59 +02:00
Pierre Noël
932536e534 pass strapi through params instead of creating a wrapping function 2021-09-23 15:55:02 +02:00
Convly
9718ce1c52 Fix lint issues 2021-09-23 14:26:31 +02:00
Pierre Noël
6adf460b63 cron registry becomes cron service 2021-09-23 10:40:17 +02:00
Convly
033d3274d2 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-23 10:05:31 +02:00