[!!!][TASK] Send user session cookies as hash-signed JWT
Several performance analysis showed that `AbstractUserAuthentication` takes a reasonable amount of processing time, even if a session ID are not given or invalid. In order to reduce database invocations for invalid sessions, user session cookies are sent as hash-signed JWT - which allows to check their validity without invoking storages. Required typo3/testing-framework preparation has been merged with https://github.com/TYPO3/testing-framework/pull/365 and updated. Custom implementations, handling cookies on their own, have to use the introduced method \TYPO3\CMS\Core\Session\UserSession::getJwt() instead of existing \TYPO3\CMS\Core\Session\UserSession::getIdentifier(). Resolves: #94243 Releases: main Change-Id: Icfdc17bf6d6d715a0cfab76517aaef96fd985f1f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69337 Tested-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Kevin Appelt <kevin.appelt@icloud.com> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- composer.lock 5 additions, 5 deletionscomposer.lock
- typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php 2 additions, 1 deletion...ore/Classes/Authentication/AbstractUserAuthentication.php
- typo3/sysext/core/Classes/Session/UserSession.php 41 additions, 0 deletionstypo3/sysext/core/Classes/Session/UserSession.php
- typo3/sysext/core/Classes/Session/UserSessionManager.php 14 additions, 4 deletionstypo3/sysext/core/Classes/Session/UserSessionManager.php
- typo3/sysext/core/Documentation/Changelog/12.0/Breaking-94243-SendUserSessionCookiesAsHash-signedJWT.rst 54 additions, 0 deletions...Breaking-94243-SendUserSessionCookiesAsHash-signedJWT.rst
- typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php 13 additions, 1 deletion...sysext/core/Tests/Unit/Session/UserSessionManagerTest.php
- typo3/sysext/core/Tests/Unit/Session/UserSessionTest.php 4 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Session/UserSessionTest.php
- typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php 12 additions, 1 deletion...ts/Unit/Authentication/FrontendUserAuthenticationTest.php
Please register or sign in to comment