We make fairly heavy use of login/authentication events in our app too. It seems those were gutted totally, as I’m getting all red lines and inability to compile.
Specifically, BeforeLoginEvent
seems to have been removed. We use this to check the user’s license for expiry and also their user count, to make sure they’re not going over their count of allowed users. We throw a LoginException
(which seems to have ALSO been removed…) to disallow login if needed.
We also implemented a 2FA system which obviously makes heavy use of the login/authentication stuff. I haven’t gotten there yet but I’m betting that’s all been gutted too.
You really might consider updating your documentation, as many, many things were changed or removed and just not mentioned in the migration docs.
Is there a way in Jmix to get similar functionality to CUBA’s BeforeLoginEvent
and the ability to simply throw a LoginException
to abort login when needed?