JWT | Spring boot & Angular | User Login & Registration with Email validation | Full tutorial

Опубликовано: 14 Октябрь 2024
на канале: Bouali Ali
51,350
1.5k

Buy me a coffee: https://ko-fi.com/boualiali In this Spring boot Angular course you will learn how to build a complete and detailed FullStack application for user registration and login including email verification and activation with a Secure token.

🎟 Join this channel to get access to perks:    / @boualiali  
Source Code: https://github.com/ali-bouali/book-so...

Create the project: https://start.spring.io/#!type=maven-...

Recommended Courses:
🎬 Spring Boot security & JWT token:    • Spring boot 3.0 - Secure your API wit...  
🎬 Spring security - Roles and permissions:    • Spring boot 3 & Spring security 6 - R...  
🎬 Spring Boot - Microservices architecture:    • Microservices tutorial with Spring bo...  
🎬 DevOps - Github Actions CI/CD:    • GitHub Actions CI/CD pipeline | Step ...  
🎬 Spring Security - KeyCloak integration:    • Spring boot 3 Keycloak integration fo...  
🎬 DevOps - Docker for Beginners:    • Docker tutorial for beginners | [In 2...  
🎬 DevOps - AWS EC2 deployment:    • 🚀 Deploy Spring boot application to A...  
🎬 Angular - Full course from scratch:    • Angular Tutorial For Beginners | 3 Ho...  
🎬 Websocket - Chat application one to one:    • WebSocket Tutorial with Spring Boot |...  
🎬 Spring Security - Two Factors Authentication 2FA (TFA):    • Two Factor Authentication & JWT | Spr...  
🎬 Spring Boot - Swagger UI & OpenApi Decomentation :   • Spring boot 3 - OpenApi Documentation...  
🎬 Spring Boot - Reactive programming & WebFlux:   • Reactive Programming with Spring Boot...  
🎬 Spring Data JPA & Hibernate:    • Spring Data JPA - The Introduction co...  
🎬 Apache Kafka tutorial:    • Apache Kafka Tutorial with Spring Boo...  
🎬 Ultimate Spring boot tutorial:    • The ULTIMATE Spring Boot course | 8 H...  
🎬 Ultimate Spring Data JPA tutorial:    • The ULTIMATE Guide for Spring Data JP...  

CONNECT WITH ME:
👨‍💻. Website: https://aliboucoding.com
👨‍🏫 Facebook:   / 589612651142975  
📸 Instagram:   / alibou_coding  
🎮 GitHub: https://github.com/ali-bouali
🏘️ Discord:   / discord  

👍 Don't forget to like, subscribe, and hit the bell for more tech tutorials. Let's code together – see you in the tutorial!

Table of content
00:00 Intro
03:43 The mono repo approach
04:50 Create a new Spring boot project
10:01 Add final dependencies
12:14 Prepare the infrastructure with Docker Compose
20:12 Configure the project
31:29 Spring security Overview
37:02 Create the user entity
47:32 Create the Role entity
52:00 Implement user and role repositories
54:12 Create the Token entity and repository
57:51 Implement the security configuration class
01:08:21 Implement the Authentication provider
01:13:26 Implement the User details Service
01:15:48 Implement the JwtFilter class
01:22:21 Implement the JwtService class
01:39:02 finalize the JwtFilter class
01:44:41 Create the authentication controller
01:54:08 Implement the register method
02:05:26 Implement the Email sender service
02:24:41 Test the registration
02:31:21 Implement the login method
02:40:24 Implement the activate account method
02:45:45 Test the full authentication flow
02:50:09 Exception handling
03:08:06. Create the angular application
03:18:01 Generate the HTTP Services using the power of OpenApi
03:33:15 Implement the Login page
04:05:56 Implement the Registration page
04:15:06 Implement the activate account Page
04:32:02 Outro