How to revoke a JWT token | The JWT lifetime, blacklist and not-before policy

Subscribers:
4,920
Published on ● Video Link: https://www.youtube.com/watch?v=jzB4TfmOZyw



Category:
Tutorial
Duration: 5:17
3,803 views
68


Support my work https://www.patreon.com/pawelspychalski
One of the popular questions about JWT is how to revoke a JWT token. The thing is, you can't revoke a single token. You can build a blacklist of all the tokens you want to invalidate, but it's not the way! Just keep the lifespan on the JWT token (exp claim) short and disable the user if required.

What are JWT tokens? Modern authentication and authorization for microservices https://youtu.be/9nBu5qtVxMM

0:00 How to revoke a JWT token
0:43 A token blacklist concept
1:03 So, how to secure your app? Keep the lifetime of the JWT short
3:00 Key change and not-before policy
4:12 What have we learned today?
4:50 Outro

#quadmeup #jwt #programming

https://www.keycloak.org/docs/latest/server_admin/index.html#compromised-access-and-refresh-tokens

If you want to support me:
✅ Patreon https://www.patreon.com/pawelspychalski
✅ Banggood affiliate http://bit.ly/2P8oAxr
✅ Paypal https://paypal.me/pawelspychalski

▶ Discord server https://quadmeup.com/discord
▶ My website https://quadmeup.com/







Tags:
jwt authentication
json web token
jwt token
jwt auth
access tokens
jwt tutorial
json web tokens
json web token authentication
json web token tutorial
json web token explained