We are implementing JSS in headless SSR mode, we would like to know a way to virtually login to Sitecore from our JSS components. I mean the user authentication will happen with an external system from JSS component, once the user is authenticated we would like to create a virtual user/session in Sitecore context. This virtual user will be having an external domain roles as well. With this we could able to assign security to any of the item in Sitecore, we create our own custom personalization rules using custom properties, while rule evaluation we use virtual user properties which we set during login.
Any suggestions will really help..