Bearer tokens are just awful
11–20 of 148 posts
Re: Bearer tokens are just awful
#12Earlier quoted context omitted.
> Or you can put device/or ip related info baked into the token. That way when the user device or ip changes, you can invalidate the token. yeah, I always wondered why there isn't a standard field in the JWT containing a fingerprint/hash of the client's machine/browser/etc.
Advertisers would love such a thing
Why? It doesn't give them any more info than they already have (the logged-in user!)
Re: Bearer tokens are just awful
#13> In theory you could just hand someone a randomly generated blob, but then you'd need to keep track of which blobs you've issued and when they should be expired and who they correspond to Is this so difficult?
It isn't until it is. And wherever you store it is a juicy target.
Re: Bearer tokens are just awful
#14> In theory you could just hand someone a randomly generated blob, but then you'd need to keep track of which blobs you've issued and when they should be expired and who they correspond to Is this so difficult?
Re: Bearer tokens are just awful
#15So don't set the token to expire after the "heat death of the universe", make the user reauthenticate after an appropriate time for the service being used.
Re: Bearer tokens are just awful
#16Or you can put device/or ip related info baked into the token. That way when the user device or ip changes, you can invalidate the token.
> Or you can put device/or ip related info baked into the token. That way when the user device or ip changes, you can invalidate the token. yeah, I always wondered why there isn't a standard field in the JWT containing a fingerprint/hash of the client's machine/browser/etc.
Unless you use something like a "trusted" hardware module the client has no access too (which is mentioned in the article), but the article is still concerned with compromised machines.
Re: Bearer tokens are just awful
#17Is there a difference between that token and a password? Yes, the token is bigger and created by somebody else, yet for all practical means it walks like a password and quacks like a password...
Re: Bearer tokens are just awful
#18Earlier quoted context omitted.
Advertisers would love such a thing
> Advertisers would love such a thing Why? It doesn't give them any more info than they already have (the logged-in user!)
Re: Bearer tokens are just awful
#19> In theory you could just hand someone a randomly generated blob, but then you'd need to keep track of which blobs you've issued and when they should be expired and who they correspond to Is this so difficult?
It isn't until it is. And wherever you store it is a juicy target.
[edit] I guess that database would get hammered pretty hard on every request, unless you use caching... which might be what you're getting at.
Re: Bearer tokens are just awful
#20Or you can put device/or ip related info baked into the token. That way when the user device or ip changes, you can invalidate the token.
Device info is spoofable, and tying it to IP means the phone experience is just awful.