stf icon indicating copy to clipboard operation
stf copied to clipboard

How do i implement Logout functionality in stf?

Open darshansr opened this issue 10 years ago • 3 comments

What's the problem (or question)?

I need to do logout for a ldap user,

What should have happened?

i cleared browser side cookies but i know it wont work, i need to know is their any service method to clear all the session,cookies related information, Or is their any other solution for Logout, so that all the devices should be disconnected after he/she logout.

Do you have an idea for a solution?

How can we reproduce the issue?

Help us understand your issue by providing context.

Please tell us details about your environment.

  • Are you using stf local or a full deployment:
  • Version used (git hash or stf -V):
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version:
  • If there was a problem with a specific device, run adb devices -l and paste the relevant row here:

darshansr avatar Aug 03 '16 06:08 darshansr

Basically your requirement is to release all user devices once he leaves STF.

I don't think your current idea of logout will serve your requirements as deleting session from browser will not change device owner in STF's database. So, if you want to release all devices from a user you will have to implement a new websocket message something like this which will tell backend to update devices ownership.

Once you are done with this implementation, you can add a new button something like "Stop Using All" in device list which will call above implemented message.

Anyways, currently STF releases all the device which are not being used for --group-timeout time which is 15 mins by default. So, even if a user forget to release device before leaving STF, that device will be released after 15 mins.

vbanthia-zz avatar Aug 03 '16 14:08 vbanthia-zz

thank you

darshansr avatar Aug 31 '16 09:08 darshansr

did you ever implement this?

le91688 avatar Jul 03 '19 18:07 le91688