News for hackers. Stuff that matters.
Re:Stop using JWT for sessions (2016) by detaro on Thursday November 01, 2018 @12:36PM (#18355752)
Could you explain why they're important for WebSockets? Hadn't heard about them in that context before.
Re:Stop using JWT for sessions (2016) by EADGBE on Thursday November 01, 2018 @12:45PM (#18355852)
My guess is that a database read/write isn't necessary with JWT, and so WebSockets flying by in a scaled system aren't impeded by this extra layer of complication.
Re:Stop using JWT for sessions (2016) by jjeaff on Thursday November 01, 2018 @01:43PM (#18356469)
Probably just because web sockets tend to be used for frequent updates and jwt allows you to authenticate a user without necessarily pinging your sessions table on every single call.
Re:Stop using JWT for sessions (2016) by dvlsg on Thursday November 01, 2018 @02:06PM (#18356712)
Do you have to ping auth on every websocket communication? I feel like you should be able to auth once when you open the connection, and then keep track of the intended session timeout locally (unless you expect external factors to extend that timeout I suppose).

Unless that's in regards to checking whether an auth has been blacklisted, which isn't something jwt solves, as far as I can tell.