Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I didn't understand this part:

"if your application maintained a list of key/algorithm pairs, and each of the pairs had a name (id), you could add that key id to the header and then during verification of the JWT you would have more confidence in picking the algorithm"

This implies there's a security benefit, but I don't understand how it's better than checking the alg parameter against a whitelist. Perhaps if you're using non-standard names for algorithms, that guards against mistakes?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: