From a custom module, I would like to impersonate and start any user session in the browser. This session will be based on a user query result got from a web controller.
Something in a way like when we click on the impersonate link from the CP when logged in as Admin. But here, no admin session would be active before trying to log in as.
To specify the security context of this request: the query to get the user will be secure, it will be got from a server response based on the data returned by a third party OAuth-like service.
How is it possible to start any user session programmatically?