JWT Usage Debate

The cluster centers on debates about the suitability of JSON Web Tokens (JWT) for authentication and sessions, highlighting security pitfalls, footguns, and alternatives while referencing critical articles.

📉 Falling 0.4x Security
2,947
Comments
15
Years Active
5
Top Authors
#4921
Topic ID

Activity Over Time

2012
1
2013
1
2014
55
2015
57
2016
158
2017
355
2018
379
2019
290
2020
373
2021
270
2022
306
2023
231
2024
265
2025
205
2026
1

Keywords

PHP JSON SAML IAP HTTP JWT JTI cryto.net reddit.com paragonie.com jwt tokens token session cookies sessions authorization authentication stateless password

Sample Comments

d0100 • Feb 10, 2017 • View on HN

Why avoid JWT? Has there been some new development regarding it that makes it unsuitable for auth? I just started using it in a new app...

ncmncm • Nov 27, 2019 • View on HN

I stand corrected. JWTs seem perfect for their purpose.

g-b-r • Nov 25, 2023 • View on HN

You're missing that JWT were a bad idea in the first place.Oldish but still largely relevant: https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-ba...

paulmooney • Dec 12, 2014 • View on HN

Yes, I'm the author. Long as the JWT spec implements a strong method of encryption , it's a good option.

jankiel • Feb 10, 2017 • View on HN

Can you expand on JWT thing? Why should it be avoided?

pfg • Jan 16, 2018 • View on HN

It's generally a good idea to avoid JWT. There are a lot of foot-guns in JWT, and many implementations have gotten it wrong in the past. This[1] is a good summary on the topic.[1]: https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-ba...

hot_gril • May 28, 2024 • View on HN

I don't see how this solution means you cannot use JWTs.

andrewstuart2 • Sep 29, 2022 • View on HN

The "problem" is that JWTs are just a container format. There's nothing saying they even have to be signed, though they're designed to be more easily signed or encryptable. I've implemented the ridiculous SAML enveloped encryption/signature standard and canonicalization, and honestly, the simplicity of JWT while still providing for resilient security is a fine reason for its popularity when compared to some of the alternatives for federated id/authentication.<p

johann8384 • Feb 18, 2020 • View on HN

JWT is for when you really really need to re-invent certificates.

rahulpadalkar • Mar 1, 2022 • View on HN

Why use JWT? https://www.educative.io/edpresso/why-should-you-use-jwtsThere are downsides for almost everything out there. Outright dismissing JWTs is not correct.