Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

User logout on any device forces logout on all devices #8

Open
kujenga opened this issue Sep 2, 2014 · 0 comments
Open

User logout on any device forces logout on all devices #8

kujenga opened this issue Sep 2, 2014 · 0 comments
Labels

Comments

@kujenga
Copy link
Member

kujenga commented Sep 2, 2014

When the logout action is called in the access controller, the authentication_token is deleted from the database, preventing an attack vector where long-lasting authentication_tokens might be used maliciously if discovered.

However, if the user is logged in on other devices, the authentication_token's stored on those devices are then invalid since any record of them has been deleted. This forces logout on all devices and is a hassle for our users who may be on multiple devices. It is handled by the app currently by forcing a logout and login.

Possible solution could be to associate a separate authentication_token with each UniqueDeviceIdentifier object, and then handle logout on a device-specific level.

On the other hand, this behavior could be considered desirable if a user were to lose a device, etc. and want to logout on al devices. Thus it could be a choice presented to them.

@kujenga kujenga added the bug label Sep 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant