Review main Ready for review

97756[TASK] Share session resolution of native authenticators

Benni Mack CR 0 V 0 Hard +495 −235 updated 11/18/26, 22:30

Commit message

The native session and password authenticators of backend and frontend
each resolved the user session of a request on their own: reading the
session cookie, logging off an expired session, looking up the user of
the session and refreshing the session timestamp.

These steps now live in the internal UserSessionResolver, used by all
four authenticators. It looks users up via the LocalIdentityProvider
and reports the state of the session as Anonymous, Expired,
UserNotFound or Active.

Two differences between the authenticators are aligned with the legacy
chain: an expired session is logged off before its user is looked up,
and the "is_online" value of the user record is taken before the
session is refreshed.

The legacy chain now uses the PasswordCredentialVerifier as well: the
request token check of AbstractUserAuthentication and the password
verification, rehashing and timing mitigation of AuthenticationService
delegate to it, so native and legacy authentication cannot drift
apart. The authUser() unit tests, which mocked the hashing, are
replaced by functional tests.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/56/97756/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/56/97756/2 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Relation chain 2

  1. main 94552[WIP][FEATURE] Passwordless passkey login for the backend Based on this change Work in progress Merge conflict Benjamin Kott CR 0 V -1 Nightmare +4343 −314
  2. 97756 [TASK] Share session resolution of native authenticators This change

Merge conflicts 1

Issues 2

Files 13

Review log 24

  1. Benni Mack uploaded patch set 1 11/17/26, 16:28

  2. core-ci voted on patch set 1 V +1 11/17/26, 16:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114762

  3. Benni Mack rebased onto patch set 2 V +1 11/18/26, 22:18

  4. core-ci voted on patch set 2 V +1 11/18/26, 22:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114938