Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Securing Your Spring Boot 3.0 Applications with JSON Web Tokens (JWT)
Introduction
How JWT based security works (5:33)
Source code
Refer a friend and get 30% discount for both of you
Bootstrap the application
Create a new spring boot 3.0 project (1:54)
Add datasource (3:01)
Establish a connection to the database (4:43)
Create an application user object
Create user java class (2:52)
Transform the user to an entity (5:17)
Extend the user to user details object (8:05)
Create the user repository (2:17)
Implementing the JWT authentication filter
Create the JWT authentication filter (5:09)
Checking the JWT token (3:28)
Create the JWT service (3:24)
Add the JJWT dependencies (2:03)
What is a JWT token (3:06)
Extract claims from JWT (2:11)
Implement the getSignInKey method (4:44)
Extract a single claim from JWT (1:44)
Extract the username from the token (1:00)
Generate the JWT token (5:23)
Check if the token is valid (3:06)
Check the user existence database (JwtAuthFilter) (3:47)
Implement the user details service (4:24)
Update the SecurityContextHolder and finish the filter (4:14)
Add the security configuration (8:53)
Create the authentication provider bean (3:50)
Create the authentication manager bean (1:33)
Implement the authentication controller
Create the authentication controller (2:40)
Create the authentication response class (0:52)
Create the register request object (1:03)
Create the authentication request object (0:31)
Create the authentication service (2:15)
Implement the register method (3:45)
Implement the authenticate method (2:45)
Update the security configuration whitelist (1:12)
Create a demo controller (1:15)
Testing the JWT security
Test the changes (6:44)
Update the SecurityContextHolder and finish the filter
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock