News for hackers. Stuff that matters.
Re:Things to Use Instead of JSON Web Tokens by deathanatos on Monday May 08, 2017 @05:50PM (#14295950)
Certainly it does, but what would you suggest JWT do differently? One can't realistically hard-code the algorithm(s) in use: that would prevent any ability down the road to upgrade to a better set.
Re:Things to Use Instead of JSON Web Tokens by tptacek on Monday May 08, 2017 @06:00PM (#14296025)
Once again:

1. "Hard-code" the simplest possible sound crypto construction that solves the specific problem the protocol is meant to solve.

2. Put a version on the whole protocol.

3. If the crypto constructions later need to be amended, upgrade the whole protocol.

The anti-pattern is attempt to use a static "outer protocol" with a negotiated and regularly changing "inner protocol" --- that's an architecture we know from experience does not work well.

You know you're in trouble when developers are forced or even encouraged to make decisions between things like RSA and ECC.