[TASK] Move FE User initialization into PSR-15 middleware
The initialization of a frontend user is currently bound to TSFE, however, the only parts where TSFE is actually needed is to set the frontenduserauthentication object to $TSFE->fe_user and to call a post-processing hook, which could be dealt with through a middleware for extensions. Further steps are to deprecate "initFEuser()" method, and to move the transferring of the user session into the FrontendUser object itself, once this is not using superglobals instead anymore. Additional cleanups on the Authentication object will follow separately once all Middlewares and the Request object are in place. For now, this patch aims to extract the logic and keep maximum backwards- compatibility. Resolves: #83936 Releases: master Change-Id: Id51b49f41336717fde4606a71ec6b2c805662b88 Reviewed-on: https://review.typo3.org/55753 Reviewed-by:Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Mathias Schreiber <mathias.schreiber@typo3.com> Tested-by:
Mathias Schreiber <mathias.schreiber@typo3.com> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/frontend/Classes/Http/RequestHandler.php 0 additions, 5 deletionstypo3/sysext/frontend/Classes/Http/RequestHandler.php
- typo3/sysext/frontend/Classes/Middleware/FrontendUserAuthenticator.php 110 additions, 0 deletions...frontend/Classes/Middleware/FrontendUserAuthenticator.php
- typo3/sysext/frontend/Configuration/RequestMiddlewares.php 6 additions, 0 deletionstypo3/sysext/frontend/Configuration/RequestMiddlewares.php
Please register or sign in to comment