603 Commits

Author SHA1 Message Date
Christian Capeans
90694bdfbe Remove didReceiveAPIRequest event 2023-06-19 11:53:24 +02:00
Bassel
a97d8da47f Merge branch 'main' into fix/sso-lock-out-option 2023-06-06 14:31:41 +03:00
Jamie Howard
ca1ed38fea
Merge pull request #16835 from strapi/feature/set-webhook-events 2023-06-02 11:00:25 +01:00
nathan-pichon
c8995460ac
fix(content-types): remove getter for private attributes
+ Fixes a flaky test (transactions.test.api.js)
2023-05-31 11:45:26 +02:00
Jamie Howard
e87dad4373 chore: linter rule 2023-05-30 16:15:05 +01:00
Jamie Howard
723187ab4c chore: webhook controller yup validation 2023-05-30 11:05:42 +01:00
Jamie Howard
4020a96da6 chore: separate validation between webhook service and controller 2023-05-26 14:27:44 +01:00
Jamie Howard
aac731d7a0 fix: move webhook form validation to webhook-store 2023-05-25 13:07:06 +01:00
Jamie Howard
506c495d91 feature: replace webhook validation with webhook store 2023-05-25 12:34:52 +01:00
Ben Irvin
7b7a7b97e0 clean up error handling again 2023-05-24 09:56:04 +02:00
Ben Irvin
b9303741ba only allow specific errors 2023-05-23 12:47:52 +02:00
Ben Irvin
9959347727 revert formatting 2023-05-23 12:45:05 +02:00
Ben Irvin
4c797f95ca revert formatting 2023-05-23 12:43:12 +02:00
Ben Irvin
9d038e11da revert comment 2023-05-23 12:42:37 +02:00
Ben Irvin
632c0787dc
Merge branch 'fix/sso-lock-out-option' into fix/ss-lock-out-backend 2023-05-23 12:41:28 +02:00
Ben Irvin
8251a9d4e4 get roles from query.load 2023-05-23 11:29:02 +02:00
Ben Irvin
72b5d2f4f0 move all code to ee 2023-05-23 11:20:18 +02:00
Simone Taeggi
f8acf8385b change the property authenticationDisabled to ssoLockedRoles 2023-05-23 09:19:07 +02:00
Ben Irvin
b9c52652c4 throw error with code 2023-05-22 16:51:26 +02:00
Ben Irvin
8b10c20465 move most of the code to strapi/ee 2023-05-22 15:53:03 +02:00
Ben Irvin
894a2766bf add ssoLock to LocalStrategy 2023-05-19 18:02:20 +02:00
Simone Taeggi
3fdb517b0b fix backend part of the sso form submission 2023-05-19 11:00:05 +02:00
Simone Taeggi
c5ab7915d6 implemented the multi select for the sso authentication disabled 2023-05-18 11:41:43 +02:00
Marc-Roig
52b2aed092 feat: admin routes as object 2023-04-24 16:18:39 +02:00
Christian
cb6e70693d
Update packages/core/admin/server/strategies/api-token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-04-19 16:46:46 +02:00
Christian Capeans
0acb4ab3aa Change event name 2023-04-19 16:44:00 +02:00
Christian Capeans
aac196bdfe Fix failing test 2023-04-19 14:13:45 +02:00
Christian Capeans
0740be570f Add didCompleteRequest event 2023-04-19 12:54:10 +02:00
Alexandre BODIN
feced1d72b
Move api tests to root of repo with same structure (#16242) 2023-04-05 10:32:20 +02:00
Ben Irvin
06fd9bdeb2
Merge pull request #16180 from strapi/enh/allow-mysql2 2023-03-29 11:10:44 +02:00
Ben Irvin
205e5f9d55 Merge branch 'main' into features/data-transfer 2023-03-27 10:45:13 +02:00
Ben Irvin
6444ce74a9 Merge branch 'main' into enh/allow-mysql2 2023-03-24 16:35:12 +01:00
Ben Irvin
41a793ed53 clean up after each test 2023-03-23 15:02:08 +01:00
Ben Irvin
c7db702b33 fix tests 2023-03-23 13:01:44 +01:00
Ben Irvin
ad0cdbd5fb fix tests 2023-03-22 13:59:21 +01:00
Alexandre BODIN
aaeb988a0b
Expand nx usage and migrate logger to ts (#15957) 2023-03-22 11:21:33 +01:00
Simone
6c2eae0754
Merge branch 'features/data-transfer' into data-transfer/error-salt-token-missing 2023-03-17 11:30:07 +01:00
Simone Taeggi
bbe64d6837 Merge branch 'main' into features/data-transfer 2023-03-17 11:28:23 +01:00
Simone
f7a3491cb5
Merge branch 'features/data-transfer' into data-transfer/error-salt-token-missing 2023-03-17 10:29:33 +01:00
Marc-Roig
28ebe15abe add published at attribute to be filterable and sortable 2023-03-16 17:18:29 +01:00
Convly
366eb8a0d0 Merge branch 'main' into features/data-transfer 2023-03-16 16:47:11 +01:00
Christian Capeans
d79c0490f9 Fix sorting problem in tests 2023-03-16 11:06:25 +01:00
Alexandre Bodin
9295b52bb7 Fix api tests 2023-03-15 20:55:25 +01:00
Alexandre Bodin
18fbe664d7 Fix tests 2023-03-15 19:08:49 +01:00
Christian Capeans
e1b78e05c4 Add small fix and adapt tests 2023-03-15 17:32:25 +01:00
Ben Irvin
801e3db415 add traverse query
fix single type

fix query

sanitize pagination count params

add comments

Cleanup the params/filters sanitize helpers

sanitize association resolver

Sanitize sort

fix graphql single type

fix graphql types

fix addFindQuery

Sanitize fields

Update sanitize sort to handle all the different formats

Update fields sanitize to handle regular strings & wildcard

Fix non scalar recursion

Add a traverse factory

Add visitor to remove dz & morph relations

Replace the old traverse utils (sort, filters) by one created using the traverse factory

add sanitize populate

await args

fix async and duplicate sanitization

sanitize u&p params

Add traverse fields

Fix traverse & sanitize fields

add traverse fields to nested populate

sanitize admin api filter queries

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

sanitize sort params in admin API

todo

make token fields unsearchable with _q

sanitize delete mutation

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

fix errors on queries without ctx

rename findParams to sanitizedParams

Sanitize queries everywhere in the content manager admin controllers

sanitize single type update and delete

Ignore non attribute keys in the sanitize sort

Fix the sanitize query sort for nested string sort

Fix permission check for the admin

typo

sanitize upload

sanitize admin media library

sanitize admin users

Add missing await

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

set U&P users fields to searchable:false

add token support to createContentAPIRequest

add searchable:false to getstarted U&P schema

remove comment

sanitize component resolver

remove await

add searchable false to the file's folder path

Fix admin query when the permission query is set to null

add basic tests for filtering private params

add tests for fields

add pagination tests

Fix admin user fields not being sanitized

Fix convert query params for the morph fragment on undefined value

Traverse dynamic zone on nested populate

Handle nested sort, filters & fields in populate queries + handle populate fragment for morphTo relations

Sanitize 'on' subpopulate

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

don't throw error on invalid attributes

check models for snake case column name instead of assuming they are operators

Add first batch of api tests for params sanitize

Fix sort traversal: handle object arrays

Put back removePassword for fields,sort,filters

Add schemas and fixtures for sanitize api tests

Add tests for relations (sanitize api tests)

Move constant to domain scope

Rename sanitize params to sanitize query

Fix typo

Cleanup fixtures file

Fix variable name conflict

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>

Update comment for array filters

Rename sanitize test

Test implicit & explicit array operator for filter

Remove unused code
2023-03-15 14:59:19 +01:00
Convly
d8614487de Handle ws connexion status code & fix token validation 2023-03-14 12:43:15 +01:00
Simone Taeggi
faa5820548 change ctx.badRequest to ctx.notImplemented 2023-03-09 17:36:19 +01:00
Simone Taeggi
26d9f6c8e0 add a specific error on the BE when the Token Salt token is missing
Co-authored-by: Christian <christiancp100@gmail.com>
2023-03-09 14:44:20 +01:00
Alexandre Bodin
29dadec292 Feedbacks 2023-03-09 02:43:16 +01:00