JWT Logout: The Trick You Missed in Spring Security (Solved!)

Описание к видео JWT Logout: The Trick You Missed in Spring Security (Solved!)

Ever wondered how to log out JWT tokens in Spring Security? It's not as simple as session-based logout!

This video explains why and shows you a secure solution using cached blacklisted tokens. No default implementation? No problem! Learn to implement JWT logout yourself and boost your Spring Security skills.

#jwtauth #springsecurity #tutorial

👉 Master programming by recreating your favorite technologies: https://app.codecrafters.io/join?via=...

📘 Resources Mentioned:
🧑‍💻 Source Code: https://github.com/hello-iftekhar/spr...
⛔ Background sound: https://share.epidemicsound.com/ia954g

🤚 In case you want to contact me:
❌ My LinkedIn profile:   / iftekhar-hossain-369bbb6a  
❌ Github: https://github.com/learnwithiftekhar
❌ My Fiverr profile: https://www.fiverr.com/ifte_hsn

I also provide service on Upwork. In case you are interested:
❌ https://www.upwork.com/freelancers/~0...

Note: Some of the links in this description are affiliate links, and I may earn a small commission if you make a purchase through them. Thank you for your support.

Contents:
00:00 Intro
00:19 What are we going to cover
01:05 How Session-Based Authentication Works
02:44 How JWT Authentication Works on REST API
05:35 Breakdown project into smaller tasks
07:48 Create Token entity
09:39 Creating Token Repository
10:59 Save the Generated Token into the database
12:59 Testing Token Generation
14:40 Mark logged out unnecessary tokens
17:24 Add validation for logged-out tokens
19:58 Add logout option
20:05 Create Custom Logout Handler
22:03 Testing the logout

Комментарии

Информация по комментариям в разработке