[TASK] Centralize checkPid functionality
The functionality to check authentication such as frontend users only to certain PIDs, is now centralized in FrontendUserAuthentication along with the logic to use the common API with "userConstraints()" to enable a query restriction only to certain PIDs. This way, all restrictions are unified in the enable clause Further refactorings could be * use a service or event to modify the constraints in a unified way, or even move the constraints completely to the auth service. * use a UserRepository that should deal with the constraints Resolves: #98587 Releases: main Change-Id: I5ad4743a4f8d149509553b8cdda2f6210ca98c61 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76098 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 5 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/core/Classes/Authentication/AbstractAuthenticationService.php 0 additions, 1 deletion.../Classes/Authentication/AbstractAuthenticationService.php
- typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php 12 additions, 11 deletions...ore/Classes/Authentication/AbstractUserAuthentication.php
- typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php 1 addition, 0 deletions...core/Classes/Authentication/BackendUserAuthentication.php
- typo3/sysext/core/Classes/Database/Query/Restriction/PageIdListRestriction.php 54 additions, 0 deletions...sses/Database/Query/Restriction/PageIdListRestriction.php
- typo3/sysext/core/Tests/Functional/Authentication/AuthenticationServiceTest.php 0 additions, 1 deletion...s/Functional/Authentication/AuthenticationServiceTest.php
- typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php 1 addition, 1 deletion...ts/Unit/Authentication/AbstractUserAuthenticationTest.php
- typo3/sysext/core/Tests/Unit/Database/Query/Restriction/PageIdListRestrictionTest.php 83 additions, 0 deletions.../Database/Query/Restriction/PageIdListRestrictionTest.php
- typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php 13 additions, 1 deletion...end/Classes/Authentication/FrontendUserAuthentication.php
- typo3/sysext/frontend/Classes/Middleware/FrontendUserAuthenticator.php 0 additions, 6 deletions...frontend/Classes/Middleware/FrontendUserAuthenticator.php
Please register or sign in to comment