My Vaadin24 Spring Boot app should display a view after the login, that depends on the role of the logged-in user. The dynamic registration of a route in the spring security authSuccessHandler fails because no Vaadin session exists at this time and therefore the call to RouteConfiguration.forSessionScope().setRoute("", RoleXYZView.class);
fails with Null session is not supported for session route registry
When and where should such session scoped dynamic route registrations be made?
@diligent-uguisu faceing the same issue. looking for the right place to register dynamic routes on the session scope after the login. did you found a solution?