@Eichers @shchienko
Hello Hans-Peter
Please look at the jmix-quickstart-security-advanced-complete.zip example project that I uploaded on Oct 20 to this post: Automatic login - #5 by r.walde
It is for version 1.x but exactly what you need to begin. I integrated it into my application and extended the functionality to complete some of the original ideas.
I hope that this information is helpful. Good luck.
Best regards
Chris