Lurker News
Back to discussion

Comment by oxymoron

oxymoron2 replies#
I’ve frequently used the equivalent of HMAC_SHA512(long_secret,uid + ’|’ + timestamp) to generate a token on the server, which the client can retain and pass along requests, and can be verified on the server without persistence. I assume this is what you refer to as stateless authentication. While I agree that there are no real performance reasons to do so, it seems convenient to me every now and then. Is there a security reason to stop doing so?
bb88#
Only if the long_secret was made public.
LanceH1 reply#
How do you revoke access to that token?
oxymoron1 reply#
Well, you don’t, so if that’s a requirement you’ve got to do it some other way.
e12e2 replies#
You can rotate the secret to invalidate all tokens.

Continue this thread — 2 replies