News for hackers. Stuff that matters.
Re:Paseto is everything you love about JWT without any of th... by politelemon on Monday October 03, 2022 @03:04AM (#33064362)
I remember reading about PASETOs a few years ago. Okta did a blog about it too,

https://developer.okta.com/blog/2019/10/17/a-thorough-introd...

which is quite informative. So from what I can tell the core of the complaint with JWT is having the ability to let someone set alg=None.

Correct me on this but further reading also tells me that Paseto is better suited for websites that have access to server-side session storage. One of the reasons for widespread adoption of JWT is its ability to work with JS/SPAs and not require a server side workflow. So Paseto might be aimed towards the ASP.NET/Spring type setups.

Another thing to factor in is support from identity providers like Okta and Auth0, for a lot of people and enterprises, having momentum and names behind these protocols is a deciding factor. Hopefully if this RFC pans out, maybe the Identity providers can offer Paseto as an option.

Re:Paseto is everything you love about JWT without any of th... by JimDabell on Monday October 03, 2022 @03:43AM (#33064586)
> So from what I can tell the core of the complaint with JWT is having the ability to let someone set alg=None.

No, the core complaint is that JWT ignores the hard-learnt lessons from the past couple of decades of security engineering and repeated terrible choices that have caused a plague of vulnerabilities in the past. It’s no surprise then, that practically every JWT implementation has been completely broken. alg=none is a symptom, not the root cause.

> Correct me on this but further reading also tells me that Paseto is better suited for websites that have access to server-side session storage. One of the reasons for widespread adoption of JWT is its ability to work with JS/SPAs and not require a server side workflow. So Paseto might be aimed towards the ASP.NET/Spring type setups.

No, that’s not the case. You can use Paseto anywhere you can use JWT. It was designed to be a replacement for JWT, so it would be a bit odd for it not to support the same use-cases.