top | item 33024859

(no title)

ragona | 3 years ago

You're missing the core challenge of JWTs, which is revocation. If you just check the signature then users can't log out.

discuss

order

quesera|3 years ago

Revocation == invalidation.

User-initiated log out is easy, you just clear the token. Promiscuous token gathering is harder (but SSL..!) and makes the case for invalidation or short expiration periods. And forced logout is the legit operational problem case.

Again though. If JWT does not fit your authnz model, don't use it. JWT works well in many applications outside of authnz, and some inside it as well.