How to verify a JWT token in Java | JWT, Keycloak, RSA256 and Auth0
In this video, I will show you how to validate the JWT token in a Java application. We will use the Auth0 library to check if a Keycloak issued JWT token comes from a trusted issuer if the signature verification (RSA256 in this case) is correct and if the token has not expired yet.
As part of the process, we will also load the Keycloak public key and talk about storing the public key locally and how to make everything faster with guava cache.
We will wrap everything in a nice JwtValidator class to be used anywhere you want to.
What are JWT tokens and how to use them: https://www.youtube.com/watch?v=9nBu5qtVxMM
Code example: https://github.com/ps-after-hours/jwt-validator
#quadmeup #jwt #keycloak
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/