Home > Back-end >  How can I prevent concurrent logins in Identity Server?
How can I prevent concurrent logins in Identity Server?

Time:10-22

I am trying to find a solution for concurrent login issue in Identity server. For eg . if user logs in into 2 browsers at the same time then he should get logged out from the first one. In my case I am using this method UpdateSecurityStampAsync to update the security stamp, it is updating the security stamp, concurrency stamp and even SessionId in the db, but still it is not logging out the user from the first browser. Any suggestion is helpful, Thanks

CodePudding user response:

I myself resolved this by checking the session ids from the claims and comparing the same with the Identity server latest session by making calls to the IDS from client app on every click and on page reload. I won't suggest this solution, but this is the immediate fix that I have applied.

  • Related