615 Commits

Author SHA1 Message Date
Alexandre Bodin
f8695e615e Add validation & required check 2021-09-28 11:43:49 +02:00
Alexandre Bodin
c610e34c7f Refactor middleware loading and config/boot 2021-09-27 22:57:24 +02:00
Alexandre Bodin
1da801ac64 wip 2021-09-27 19:27:08 +02:00
Alexandre Bodin
442385ab13 Move failing tests to todo for beta 2021-09-27 19:09:39 +02:00
Alexandre BODIN
9ae4f28928
Merge pull request #11082 from strapi/v4/fix-user-sort
fix sort on admin user
2021-09-27 18:24:51 +02:00
Alexandre BODIN
659b74efd4
Merge pull request #11086 from strapi/v4/fix-caps-in-email-address
Lower email when login using local provider
2021-09-27 18:23:42 +02:00
Alexandre Bodin
b50834ae51 Fix missing private getter on schema 2021-09-27 17:22:01 +02:00
Alexandre Bodin
b63c330c58 Ini migration middlwares 2021-09-27 17:19:13 +02:00
Pierre Noël
995c5c86b9 clean code 2021-09-27 16:44:05 +02:00
Pierre Noël
6ba4ce561f lower email when login using local provider 2021-09-27 16:40:04 +02:00
Pierre Noël
95d9b19588 fix sort on admin user 2021-09-27 16:06:43 +02:00
Pierre Noël
491a662692 clean some code 2021-09-27 12:28:17 +02:00
Pierre Noël
d35e381f6f fix localizations counted in CM 2021-09-27 11:08:49 +02:00
Pierre Noël
b5e2ddfc3b add count feature inside populate field of content-api 2021-09-27 11:08:48 +02:00
Pierre Noël
6fe8c51df2 remove search admin route for upload plugin 2021-09-27 11:08:48 +02:00
Pierre Noël
0f123ceb39 fix RBAC 2021-09-27 11:08:48 +02:00
Pierre Noël
d02c7ab741 Use new filters format in the upload plugin 2021-09-27 11:08:47 +02:00
Alexandre Bodin
036ade211b Throw in case of other error types 2021-09-27 10:36:21 +02:00
Alexandre Bodin
bf5a4fd1ee Load email and upload providers without naming convention 2021-09-27 10:01:46 +02:00
Alexandre Bodin
086a80eb28 Remove unused dependencies 2021-09-27 09:30:32 +02:00
Alexandre Bodin
d2e523d942 Upgrade @strapi/strapi dependencies 2021-09-27 08:30:11 +02:00
Alexandre Bodin
4eabcc57c0 Update @strapi/utils dependencies 2021-09-27 08:30:10 +02:00
Alexandre Bodin
c9f1cc6977 Fix sanitze-entity components missing 2021-09-27 08:29:15 +02:00
Alexandre Bodin
60cbb448f6 Make perm compare accurate 2021-09-25 00:59:53 +02:00
Alexandre Bodin
c1369c7960 Fix sanitizeEntity 2021-09-24 18:52:49 +02:00
Alexandre BODIN
87d79388c1
Merge pull request #11064 from strapi/v4/refactor-policy-api
[v4] Refactor policy API
2021-09-24 18:44:21 +02:00
Dieter Stinglhamber
02d856819a set true and undefined as positive policy response 2021-09-24 14:48:12 +02:00
Dieter Stinglhamber
14a0ba9ee3 comment the api-token auth strategy 2021-09-24 12:07:31 +02:00
Dieter Stinglhamber
edeca8a6ce fix issue with string and number id comparaison 2021-09-24 12:07:00 +02:00
Dieter Stinglhamber
b9b98c620c improve scope matching and verification failures 2021-09-24 12:07:00 +02:00
Dieter Sting
0db6950d9d fix typo
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2021-09-24 12:07:00 +02:00
Dieter Stinglhamber
4b6704d2ae fix unit tests 2021-09-24 12:07:00 +02:00
Dieter Stinglhamber
1a72747672 add api-token auth strategy to the content-api 2021-09-24 12:06:56 +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
ca668c78e8 store the hashed accessKey in the database 2021-09-24 12:05:39 +02:00
Dieter Stinglhamber
b50afb69d5 implement POST endpoint to create api tokens 2021-09-24 12:05:39 +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
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