Old Spring MVC Integration with JMix

Hello,

I have an application built with Spring MVC 3.0 which is in working state. And I have created one of the
new module using Jmix. Now I want both application to coexist for example if I log in to the first application (older one), I should be able to access Jmix Module without logging in again.

Please assis how this can be achieved. Thanks in advance.

Hi,
Jmix has the following requirements to the Spring Security Authentication instance set into SecurityContext. It must be a UserDetails and its collection of authorities must contain instances of RoleGrantedAuthority. If you need to build a RoleGrantedAuthority programmatically you may use the following static constructor: RoleGrantedAuthority.ofResourceRole(ResourceRole role). This will tell the framework that the current user has the specified security role assigned.