News for hackers. Stuff that matters.

ylorenzana

Ask HN: How to properly authenticate REST API?

I've been researching this for about 4 days now and can't seem to find an industry consensus. What I'm almost sure not to do is: use JWTs, and implement stateless authentication— it's probably not worth it. I've read about using 16+ random bytes as a token, but am not sure of it's implementation. My understanding is: 1. generate the tokens in the server when a user logs in and store them in a...

( Read More... | 1 comment | 4 points | on HN )