simple-sso icon indicating copy to clipboard operation
simple-sso copied to clipboard

How to implement the logout on server and client ?

Open Dahkenangnon opened this issue 5 years ago • 2 comments

Thank for your work very useful

Can you explain more or give me some code to show how can i implement the logout feature on consumer and on the server ?

Thank for you reply

Dahkenangnon avatar Oct 05 '20 10:10 Dahkenangnon

Hi @Dahkenangnon,

There are various ways this can be done. But first as there would be potentially many active application sessions during a SSO-Session, So there need to be clear distinction between scope of the logout.

  1. Just end the current application session
  2. End all application session.

First application scenario should not have effect on any other application or global sso server, so that can be simple invalidating the cookies or token of that application.

But in second scenario you will need some kind of mechanism that can notify each of the active application to end session for particular user from global sso server. This can be achieved using the some broker or webhook mechanism.

ankur-anand avatar Oct 06 '20 10:10 ankur-anand

Hello @ankur-anand, how are you? Now I'm trying to build a custom SSO server, and your project has really caught my attention. I'm sorry, but can you tell me more specifically about the logout function? Or Could you provide an example about "End all application session."? I hope you help me please. Thank you

techsolutionsx avatar Jun 19 '22 17:06 techsolutionsx