1. 12 Dec, 2020 1 commit
  2. 10 Dec, 2020 1 commit
    • Benni Mack's avatar
      [!!!][FEATURE] Refactored Session Handling · 733353c1
      Benni Mack authored
      The AbstractUserAuthentication class handles way too much
      of what it should know / do.
      
      For this reason, a new UserSession object which contains
      basic information needed for everything belonging to a non-fixated
      session, a fixated anonymous session, if a session was evelated,
      or if a session has expired, is kept in there.
      The "SessionManager" should not be used anymore publically
      but slowly dissolve into a SessionBackendManager.
      
      Design goals:
      * UserAuth object should not know about session backends
      * UserAuth should not store sessionData etc. directly in its own object
      * Decouple UserSession info from any properties of UserAuth
      * A UserSessionManager deals with the creation and validation of the UserSession objects. No Session Objects can be created etc outside
      of this class to maintain persistability
      * UserSessionManager also encapsulates ipLocking and the responsible SessionBackend
      
      Final goals to be tackled later:
      * Build a user session object from the request object, and not within the UserAuth object
      * Session Handling can be accessed outside of UserAuth
      * Cookie Handling and Session Handling are separated from UserAuth
      * Load Session information from PSR-7 request instead of $_COOKIE
      
      Resolves: #93023
      Releases: master
      Change-Id: Ia2d8244e433d0f6adf220d443b2c0947f251b5e9
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66935
      
      
      Tested-by: default avatarTYPO3com <noreply@typo3.com>
      Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
      Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
      Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
      Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
      Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
      733353c1
  3. 15 Apr, 2020 1 commit
  4. 14 Apr, 2020 1 commit
  5. 13 Apr, 2020 1 commit
  6. 26 Jan, 2020 1 commit
  7. 24 Jan, 2020 1 commit
  8. 12 Jan, 2020 1 commit
  9. 30 Dec, 2019 1 commit
  10. 21 Nov, 2019 1 commit
    • Benni Mack's avatar
      [FEATURE] Unified PageTS resolving and parsing · ef8190c5
      Benni Mack authored and Anja Leichsenring's avatar Anja Leichsenring committed
      This change introduces two new API classes relevant for PageTSconfig:
      
      - PageTsConfigLoader
      - PageTsConfigParser
      
      The loader class collects all PageTS found in a rootline, which was
      previously available in two places - BackendUtility and TSFE, although
      they were similar, they were not the same and error-prone in the past.
      
      The previous "TsConfigParser" class had an unusal dependency to
      the BackendConditionMatcher only, which did not even allow to send in
      custom arguments.
      
      The TSFE part is now also evaluating TSconfig conditions properly,
      which was not the case in the past. This part is also now cached properly.
      
      The TSconfig inclusion ("include from the list of TSconfig inclusions")
      functionality is now built into the Info module.
      
      In addition, the hard-coded "ConditionMatcher" is now seamlessly
      injected into the parsing process, allowing
      - Decoupling of Logic and Implementation of parsing in different contexts
      - Making the ConditionMatcher extensible by having a new ConditionMatcherInterface
      
      In the next steps:
      - the UserTsConfig parsing can be applied separately and split from BE_USER
      - ConditionMatcher Interface can be used properly
      - TypoScriptParser can be split up
      - BackendUtility can be cleaned up further.
      
      The following functionality is deprecated:
      - TYPO3\CMS\Core\Configuration\TsConfigParser
      - TYPO3\CMS\Backend\Utility\BackendUtility::getRawPagesTSconfig()
      
      Resolves: #89718
      Releases: master
      Change-Id: Ibd0a2d086d7e5166f16213fa4aadffd41ecb645c
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62349
      
      
      Tested-by: default avatarTYPO3com <noreply@typo3.com>
      Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
      Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
      Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
      Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
      ef8190c5
  11. 25 Oct, 2019 1 commit
  12. 24 Oct, 2019 1 commit
  13. 07 Oct, 2019 1 commit
  14. 01 Feb, 2019 1 commit