News for hackers. Stuff that matters.

uNki

Exactly. Take a look at the GitHub repo and the shit-ton of work that obviously went into this product - for free.
I'm more of a streamer and used to things like JustWatch and like it a lot. But your solution provides such an intuitive, comprehensive and complete UX at a really amazing speed. Like IMDB and JustWatch combined on steroids. Kudos!
Re:Don't use JSON web tokens for sessions on Monday June 20, 2016 @01:52PM (#11939742)
my approach: after authentication i'm generating a JWT and send it to the client that stores it in LocalStorage. On the server side I'm using a memcached database that stores a key-value-pair (JWT and some config stuff that shall not be visible on the client side..) for 30 minutes and then deletes it. The JWT is sent with every client request in the Authorization header. A function checks if there is any key-value-pair in the memcached database that matched the JWT (key) and if that JWT is valid. After that it continues or denies the request. The client requests a new JWT after 29 minutes. If the client is offline and doesn't request that new JWT, the old JWT is killed after 30 minutes, anyway. I can't see any other attack vector than XSS - which I'm trying to avoid as hard as I can. But lets face it: IF you have a XSS problem, then you'll have it anyway, with JWT or without. If someone has full access to the JavaScript of your website, he/she can capture any authentication data you are going to send over the wire, unless you use cookies (where you'll have the CSRF problem..).

SO, I think it's pretty safe if you get your XSS protection right.

Opinions? Thank you :)