Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • frontend
  • Classes
  • Middleware
  • FrontendUserAuthenticator.php
Find file BlameHistoryPermalink
  • Benni Mack's avatar
    [TASK] Move FE User initialization into PSR-15 middleware · 25b9253f
    Benni Mack authored Feb 16, 2018 and Georg Ringer's avatar Georg Ringer committed Feb 19, 2018
    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's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Tested-by: default avatarTYPO3com <no-reply@typo3.com>
    Reviewed-by: default avatarMathias Schreiber <mathias.schreiber@typo3.com>
    Tested-by: default avatarMathias Schreiber <mathias.schreiber@typo3.com>
    Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    25b9253f