|
|
|
|
|
by fuzzy2
2315 days ago
|
|
I’m always amused that with JWT, there never appears to be any separation between JWT-the-storage-format and JWT-what-I-do-with-it. JWT as a storage format is great indeed. If you pin the signing/encryption algorithm. Otherwise you shot yourself in the foot, which is bad, yes. Everything else isn’t JWT. Sure you can use it with OpenID/OAuth/whatever. Sure you can store them in cookies. Sure you can use them with or without sessions. But how is any of that related to JWT specifically? One of the articles says with JWT I have to re-implement session management. Just use a different framework then. Sessions with cookies are also not magic. Another article basically says you don’t need OAuth 2.0 with access tokens and refresh tokens. Very true. Also not about JWT. |
|
I recon if the library you're using doesn't force you to pin the algorithm (or opt out of pinning), your foot is probably already full of bullet holes.