Complete Spring 7 & Spring Boot 4 course from beginner to Advance using first thought principle.
Curated by: Coder Army (41 videos)
Spring Boot Full Course #36 How should passwords actually be stored in a database, and how does Spring Security authenticate users using database records? In this video, we build the foundation of database authentication from first principles. We move beyond Spring Security’s default generated user and design a proper user-and-role model for a real application. Topics covered: ✅ Why authentication requires a trusted source of user information ✅ Default authentication versus database authentication ✅ Username versus email as the login identity ✅ Designing User, Role and user_roles tables ✅ Domain User entity versus Spring Security UserDetails ✅ Role-based authorization database structure ✅ Why raw passwords must never be stored ✅ Hashing versus encryption ✅ Why SHA-256 is not suitable for password storage ✅ BCrypt and adaptive password hashing ✅ How salt protects stored passwords ✅ How PasswordEncoder.encode() works ✅ How PasswordEncoder.matches() verifies a password ✅ Secure user-registration flow ✅ Encoding passwords before saving them to the database By the end of this video, you will understand not only how to store users securely, but also why Spring Security uses UserDetailsService, DaoAuthenticationProvider and PasswordEncoder for database authentication. JAVA Beginner to Advance Series : https://youtube.com/playlist?list=PLQEaRBV9gAFsR15tNo2QLF9d2qc-c018p&si=lNuF5lyt4nKz9Up7 Join our WhatsApp Group: https://www.whatsapp.com/channel/0029VbBF1XKF1YlMyYuPM23s Code and Notes: Github : https://github.com/adityatandon15/Spring-Framework-Full-Course We have paid courses on DSA, Web Development , Blockchain, System Design & GenAI. Join Courses: https://strikes.in/ Coder Army Website: https://coderarmy.in/#home Coder Army App: https://play.google.com/store/apps/details?id=com.rohit.negi Connect with Aditya Tandon Instagram : https://www.instagram.com/adityatandon2 LinkedIn : https://www.linkedin.com/in/adityatandon2 Twitter : https://x.com/adityatandon02 Timestamps: