Force Logout / Login When Switching Users While Embedding
We are embedding Qlik Cloud Analytics into our front-end via iFrames. Our application allows for our super users to impersonate other users, which is often used for demo purposes to show what different types of users would see when logged in.
We've noticed that when switching between users via impersonation, Qlik doesn't seem to create a new login session. Instead of a new user being created in Qlik, the previous user is updated with the newly impersonated user's info.
Is there a way to force the embedded Qlik application to consider the newly impersonated user as a new login and not a continuation of the existing session?
From a process perspective, we’re POSTing to the jwt-session endpoint to create a user session cookie. Then we switch users, and post to the jwt-session endpoint again to authenticate a different user, but Qlik doesn’t recognize the second user, the first user stays logged in and their info is updated in Qlik with the second user's info. How can we log out first user and switch to the second?