Lurker News

Comments (249) 36 threads

Earlier comments
catchmeifyoucan#
Auth Tokens are easy to work with for customers and the API developers. Generate a token, and then authenticate. I prefer them.

http://page.rest does a good job.

Raed667#
JWT is pretty easy to understand.

Create a token, put your userId in it, set an expiry date.
If a request comes with a token check if token is valid, check the userId & expiry date otherwise throw error.

mcny1 reply#
I would suggest everyone to stay away from jwt unless they're willing to spend the time to learn how it works.

I believe the meta is that jwt is solid itself but allows doing things "wrong". Guardrails so to speak are insufficient if not outright lacking.
I'd say just go with plain text token for a web app. I don't like the idea of trusting the client because I don't understand how jwt works.

Raed6671 reply#
Trusting in what sense? If my token only has the userId as data, what kind of trust is needed?

Continue this thread — 1 reply

Chriky#
I have an internal REST API (Tomcat server) on a Windows network that uses the WAFFLE library.

I am interested to know whether HN thinks this is considered secure?

Load more comments