How to verify a JWT token in Java | JWT, Keycloak, RSA256 and Auth0

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



Category:
Tutorial
Duration: 8:06
11,439 views
152


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/







Tags:
json web tokens
jwt tutorial
access tokens
jwt tutorial for beginners
jwt validation
jwt validation algorithm
auth0
jwt validation java
jwt token tutorial
json web tokens (jwt)
json web token
json web token tutorial
jwt auth
jwt authentication