This repository was archived by the owner on Mar 3, 2022. It is now read-only.
This repository was archived by the owner on Mar 3, 2022. It is now read-only.
Monitor session and UserStore #1353
Open
Description
Hello,
I have an identity server with some clients (Angular). I'm using
- MonitorSession = true and
- WebStorageStateStore = localstorage
I'm doing this steps:
- Go to client1 and logged in with user1
- In the same browser tab go to client2 and user1 is logged in (it is correct)
- go to the logout and login with other user (user2) after it I automatically redirected to the client2
- In the same browser tab I returned to the client1
The issue with it is:
the client1 get from localstorage the user1 and when the monitor session validate it with the querySessionStatus a logout is executed because the user.sub and sessionstatus.sub are different.
I'm trying to understand if localstorage and monitorsession can be used together and how can I avoid this issue. For now I'm using InMemoryStore to avoid it but I want to understand if is the correct behavior
Thanks in advance