5 ms·
JWTs aren't just bad because they embody poor cryptographic engineering, but they are also bad because stateless authentication in itself is poor security engin
by authaway 7y ago
JWTs aren't just bad because they embody poor cryptographic engineering, but they are also bad because stateless authentication in itself is poor security engineering for almost every application.
> What solution would you choose today for stateless auth tokens?
Issue token (=random 256 bit string), verify against cached database. If you believe this to be a significant performance issue, you are very likely wrong.
- ravenstine 7y agoIt's kinda funny how some people think that this would be a performance problem, but it's something that computers and programming languages are specifically designed to do really well.
- bpicolo 7y agoKV lookups with no dependent data are pretty much infinitely scalable with modern systems.