Duration 57:51

MASTER JWT Authentication with Java Spring Boot 3

1 583 watched
0
81
Published 3 Aug 2023

Learn JWT Authentication with an example project for Spring Boot 3. JWT Authentication is the most popular way to implement authentication in your application, and probably one of the more popular questions from beginner to intermediate Spring Boot developers. We'll go through some flow diagrams to demonstrate where JWT authentication fits into things, then we'll implement with some code - by the end of this, you'll be able to add most of the same objects into your own project with some confidence! It's gonna be fun! ☕☕ 👉👉Grab the source (on github): https://t.ly/VSDSN 🔗Grab My Other Products Available: - Packaging a JavaScript Frontend in Java Spring Boot: https://t.ly/gaKyT - Build Your First Web Service with Java Spring Boot: https://t.ly/iv_84 👋🏻Connect with me: Twitter: https://www.twitter.com/eyuzwa Wazoo Web Bytes on LinkedIn: https://t.ly/EznF1 🔗Links & References: - Docker Desktop Client: https://www.docker.com/ - Start Spring IO: https://start.spring.io/ - JWT.io: https://jwt.io/ ===---=== Chapters ===---=== 0:00:00 - Introduction 0:01:03 - Video Outline 0:01:58 - What is JWT? 0:04:02 - JWT Sign Up Flow 0:04:54 - JWT Sign In Flow 0:06:06 - JWT Request Resource Flow 0:08:19 - Start.spring.io Generate Project 0:09:28 - Opening the Project in IntelliJ 0:09:40 - Configuring Docker in compose.yaml 0:12:01 - Start up the Server 0:12:26 - Updating some Application.Properties 0:14:07 - The User Model 0:16:54 - The Role Model 0:18:02 - The User Repository 0:18:45 - PasswordConfig Bean 0:19:39 - Setting up the SecurityConfig 0:26:00 - The UserService 0:28:45 - The JwtAuthenticationFilter 0:35:11 - Updating the Pom.xml 0:36:14 - The JwtService 0:40:50 - Creating a new JWT secret key with Node 0:42:09 - AuthenticationService 0:45:07 - Setting up the DTO's 0:46:15 - Creating some Seed Data 0:47:31 - Looking at the AuthenticationController 0:48:48 - Creating a TestController 0:50:30 - Checking the Database for the Admin User 0:51:14 - Testing Endpoints and JWT with Postman 0:56:53 - Final look at the Database 0:57:08 - Wrapping Up #springboot #docker #jwt

Category

Show more

Comments - 18