Branch: refs/heads/XWIKI-22430
Home: https://github.com/xwiki/xwiki-platform
Commit: 599461298b1d96f613a9be6c9444dad90741bb92
https://github.com/xwiki/xwiki-platform/commit/599461298b1d96f613a9be6c9444…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-08-29 (Thu, 29 Aug 2024)
Changed paths:
R xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/user/UserAuthenticatedEventNotifier.java
A xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/user/UserAuthenticationEventNotifier.java
M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyBasicAuthenticator.java
M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyFormAuthenticator.java
M xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/META-INF/components.txt
M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/store/XWikiHibernateStoreTest.java
A xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-api/src/main/java/org/xwiki/security/authentication/UserUnauthenticatedEvent.java
Log Message:
-----------
XWIKI-22430: Logging out does not unlock pages that were being edited
* Provide a new UserUnauthenticatedEvent to detect whenever a user
logged out, the same way that we have UserAuthenticatedEvent
* Trigger that new event when processing a logout in
MyFormAuthenticator
* Refactor the code in XWikiHibernateStore to listen for
UserUnauthenticatedEvent for cleaning the locks of a user, instead
of listening to an action event
* Rename UserAuthenticatedEventNotifier and use it for both
authenticated and unauthenticated events
* Fix test
To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications