Commit 3fce9f6
[TASK] Provide public method to create anonymous user session
With #100307 new PSR-14 events have been introduced to
allow implementation of custom logic for classes extending
`\TYPO3\CMS\Core\Authentication\AbstractUserAuthentication`.
The PSR-14 event `BeforeUserLogoutEvent` allows to control,
if the logout process should be handled by
`AbstractUserAuthentication`. If an extension author decides
to implement a custom logout process by using the PSR-14
event `AfterUserLoggedOutEvent`, it is currently not possible
to use a public API method to create an anonymous user
session. Instead, extension authors can use the internal
method `initializeUserSessionManager` to.
In order to provide a public API method to create an
anonymous user session, this change adds the method
`createAnonymousSession` to `AbstractUserAuthentication`.
The method is now additionally used internally in the class
to create an anonymous user session where required.
Resolves: #106052
Releases: main, 13.4
Signed-off-by: Torben Hansen <derhansen@gmail.com>
Change-Id: I7957d177d98c49ff10bb896e9c85466dcc8c0710
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/87979
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Garvin Hicking <gh@faktor-e.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Garvin Hicking <gh@faktor-e.de>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>1 parent 3f987b0 commit 3fce9f6
File tree
1 file changed
+15
-3
lines changed- typo3/sysext/core/Classes/Authentication
1 file changed
+15
-3
lines changedLines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
244 | 256 | | |
245 | 257 | | |
246 | 258 | | |
| |||
800 | 812 | | |
801 | 813 | | |
802 | 814 | | |
803 | | - | |
| 815 | + | |
804 | 816 | | |
805 | 817 | | |
806 | 818 | | |
| |||
848 | 860 | | |
849 | 861 | | |
850 | 862 | | |
851 | | - | |
| 863 | + | |
852 | 864 | | |
853 | 865 | | |
854 | 866 | | |
| |||
0 commit comments