News for hackers. Stuff that matters.
Re:Should I Use jwts For Authentication Tokens? by nicoburns on Tuesday May 28, 2024 @09:35AM (#40500611)
You have to be pretty big before "store the session information in Redis" doesn't work anymore.
Re:Should I Use jwts For Authentication Tokens? by bitexploder on Tuesday May 28, 2024 @10:25AM (#40501033)
And most of these session mechanisms are easy to work with as middleware in common web app frameworks making it pretty simple to stick with simpler sessions if everyone can get to the session store. Everyone way over complicates authn and sometimes barely even think about authorization. I have seen many a web app with poor JWTs implementation and abusable authz get broken. Sometimes the apps warranted the JWT implementation but it is a lot harder than many devs think.
Re:Should I Use jwts For Authentication Tokens? by zaat on Tuesday May 28, 2024 @05:12PM (#40505668)
That was a battle I fought with some developer consultancy not long ago. I won't tell the whole story, but I will say that if you have issue with JWT tokens that are too big due to the number of groups each user have, you probably do need to use JWTs and you are most definitely doing it wrong and should educate yourself or bring a consultant who at least get the difference between authentication and authorization.
Re:Should I Use jwts For Authentication Tokens? by bitexploder on Wednesday May 29, 2024 @10:23AM (#40512327)
I made a lot of money in my life because I knew the difference. Oh and XSS, paid the bills for a couple decades :)
Re:Should I Use jwts For Authentication Tokens? by jupp0r on Tuesday May 28, 2024 @11:04AM (#40501405)
Or just have infrastructure that needs to validate the session in different parts of the continent (world).
Re:Should I Use jwts For Authentication Tokens? by keredson on Tuesday May 28, 2024 @10:41AM (#40501186)
or you have crappy code that can only handle a dozen RPS. [facepalm]
Re:Should I Use jwts For Authentication Tokens? by nicoburns on Tuesday May 28, 2024 @05:48PM (#40505967)
I mean, if anything this just means that session storage won't be your bottleneck.
Re:Should I Use jwts For Authentication Tokens? by seabrookmx on Tuesday May 28, 2024 @04:22PM (#40505177)
As far as system load sure. Not so much uptime.. keeping your session in Redis creates a single point of failure. HA/Clustered Redis exists but definitely has some associated complexity.