UIScope and Login

I try to use Vaadin with Spring Boot.

All my Vaadin components are UIScoped and I would like to have the user login also UIScoped.

Spring Security uses HTTP Session to manage the security context.

How could a UIScoped security context be implemented?

The issue here is that UIScope is extension by Vaadin, and there is no implementation in Spring itself that could use it.

So implementing UIScoped user security would require quite a lot custom implementation.