JWT is a scam and your app doesn't need it
dusanmalusev.dev
JWT is a scam and your app doesn't need it
1–10 of 70 posts
Re: JWT is a scam and your app doesn't need it
#2Re: JWT is a scam and your app doesn't need it
#3I don't get it. Why were you lying to people??? Why were you pretending? Thats not healthy and pretty anti-social.
Re: JWT is a scam and your app doesn't need it
#4Re: JWT is a scam and your app doesn't need it
#5> just put the JWT in an httpOnly cookie
You can have two cookies, one that is signed and httpOnly, and another that is unsigned and readable by JavaScript. Both contain the same information. So JavaScript can read the information in the second cookie, but since it is unsigned, exfiltrating the cookie doesn't compromise security.
Re: JWT is a scam and your app doesn't need it
#6Re: JWT is a scam and your app doesn't need it
#7Re: JWT is a scam and your app doesn't need it
#8Re: JWT is a scam and your app doesn't need it
#9Re: JWT is a scam and your app doesn't need it
#10If you drink all of the koolaid, you can wind up with a system where two different parties securely authenticate sessions without any kind of secrets ever needing to be provided directly. Both parties generate and retain private key material in an HSM and perform signing ops there. The only thing that has to be trusted is the subject of the certificates. Keys can be rotated arbitrarily and the counterparty should not have any issues with this, assuming the standards are followed.
Short lifetime is the best solution to concerns around revocation. The vendor I last integrated with has their opaque tokens expire after 15 minutes. Immediate revocation sounds preferable but in practice there are other controls that will typically compensate for any gaps here (i.e., audit logs & the police). If you are firing someone and you think they might do a really bad thing that the business could never recover from, you should probably disable their accounts about an hour before the call with HR.