Skip to content
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
@ascazzola

Description

@ascazzola

Hello,

I have an identity server with some clients (Angular). I'm using

  • MonitorSession = true and
  • WebStorageStateStore = localstorage

I'm doing this steps:

  1. Go to client1 and logged in with user1
  2. In the same browser tab go to client2 and user1 is logged in (it is correct)
  3. go to the logout and login with other user (user2) after it I automatically redirected to the client2
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions