Hi,
we implemented OIDC authentication in our application and don’t persist users that are created on login in our database - they are in-memory only.
Unfortunately, UiEventPublisher.sendEventToUserSessions() uses systemAuthenticator.runWithUser(), which prompts an attempt to load the given user from the db, that obviously does not work with in-memory users and throws a UsernameNotFoundException.
We recreated some of the event-publishing logic and got it to work for now - however, among other things we use io.jmix.flowui.sys.SessionHolder for our own implementation, which isn’t really ideal.
Is there any way to get the UiEventPublisher to work with in-memory users?
Thanks!