JWT SPRING SECURITY - SPRING BOOT 3

Published: 18 September 2024
on channel: Programando en JAVA
40,468
1.2k

⚡️ De Desarrollador a Arquitecto Senior - https://www.codeja.dev/bootcamp

👨‍💻 CodeJa | Aprende JAVA con EJERCICIOS - https://codeja.dev/

🎁 CURSO GRATUITO de SPRING BOOT - https://www.codeja.dev/courses/curso-...

🎁 CURSO GRATUITO de JAVA - https://www.codeja.dev/courses/curso-...

📱 TikTok:   / programandoenjava  
💬 Discord:   / discord  
📸 Instagram:   / programandoenjava  
🐦 Twitter / X:   / programandojava  
💼 LinkedIn:   / ricardoromerobenitez  
📩 NEWSLETTER JAVA SEMANAL - https://programandoenjava.substack.co...

Música usada:
A Magical Journey Through Space by Leonell Cassio |   / leonellcassio  
Music promoted by https://www.free-stock-music.com
Creative Commons Attribution-ShareAlike 3.0 Unported
https://creativecommons.org/licenses/...

Capítulos del video
00:00 - Introducción y demo JWT con Spring Boot
01:40 - Preparar proyecto: Postgres, dependencias y jjwt
02:22 - Secret key, expiración y diferencias Access vs Refresh
04:50 - Endpoints esenciales: /auth/register /auth/login /auth/refresh
08:10 - Registro: encriptar contraseña con BCryptPasswordEncoder
10:30 - Generar JWT: build token, claims y SecretKey HS256/384
15:40 - Probar token en jwt.io y ver en la base de datos
17:50 - Login: AuthenticationManager y UserDetailsService explicado
22:00 - Revocar tokens antiguos y guardar tokens en DB
24:50 - Refresh token: cómo validar y renovar Access Token
28:40 - Configurar Spring Security: filtros, CSRF y sesión stateless
31:20 - JwtAuthenticationFilter: validar header, token y contexto
35:50 - Logout: revocar token y limpiar contexto de Spring
37:20 - Demo protegido: acceder a /users con Authorization
39:00 - Resumen, repo del proyecto y despedida


On this page of the site you can watch the video online JWT SPRING SECURITY - SPRING BOOT 3 with a duration of hours minute second in good quality, which was uploaded by the user Programando en JAVA 18 September 2024, share the link with friends and acquaintances, this video has already been watched 40,468 times on youtube and it was liked by 1.2 thousand viewers. Enjoy your viewing!