muhbaasu / pfennig-server

MIT License
0 stars 1 forks source link

User registration #16

Open forgetaboutit opened 9 years ago

marcelbuesing commented 9 years ago

Currently still missing server side:

Currently still missing client side:

forgetaboutit commented 9 years ago

For future reference: It might be necessary to invalidate user sessions later. For example if a user's device has been compromised, we need to be able to invalidate any existing sessions at least. It might also be desirable to invalidate particular sessions.

The general use case of invaliding all existing sessions could be covered easily by storing an invalidation date. Authentication would then reject any token issued before the invalidation date.

Invalidating individual sessions would be a lot more complicated however. As I see it, it wouldn't be possible without having server-side state and keeping track of any issued tokens.