Перейти к содержимому

Spring Security Authentication Internals | Complete Login Flow | Spring Boot Full Course #37

Coder Army

0:00 / 0:00

Spring Security Authentication Internals | Complete Login Flow | Spring Boot Full Course #37

16 999 просмотров · 2 месяца назад
Coder Army
297 тыс. подписчиков
16 999 просмотров · 2 месяца назад
Spring Boot Full Course #37 How does Spring Security authenticate a user from the database before the request reaches the controller? In this video, we break down the complete database authentication and login flow from first principles. You will understand how Spring Security filters receive credentials, how the AuthenticationManager selects an AuthenticationProvider, how DaoAuthenticationProvider loads a user from the database, and how the final authenticated object reaches the SecurityContext. Topics covered: ✅ DelegatingFilterProxy and FilterChainProxy ✅ SecurityFilterChain and HttpSecurity ✅ First matching SecurityFilterChain rule ✅ UsernamePasswordAuthenticationFilter ✅ BasicAuthenticationFilter ✅ UsernamePasswordAuthenticationToken ✅ Authentication and AuthenticationManager ✅ ProviderManager and AuthenticationProvider ✅ UserDetails and UserDetailsService ✅ CustomUserDetails implementation ✅ DaoAuthenticationProvider internals ✅ Password verification using PasswordEncoder ✅ SecurityContext and SecurityContextHolder ✅ Complete form-login and HTTP Basic flow ✅ User and Role database entities ✅ User registration with BCrypt ✅ Role assignment during registration ✅ Login success and failure flow ✅ Testing authentication using Postman By the end of this video, you will understand the complete internal journey: HTTP Request → Authentication Filter → AuthenticationManager → ProviderManager → DaoAuthenticationProvider → UserDetailsService → Database → PasswordEncoder → SecurityContext → Authorization → Controller This lecture is especially useful for anyone who can configure Spring Security but still does not clearly understand what happens internally during login. If you find the video helpful, like the video, share it with your friends, and subscribe to the channel for the complete Spring Boot series. JAVA Beginner to Advance Series :    • Java Full Course 2026   Join our WhatsApp Group: https://www.whatsapp.com/channel/0029... Code and Notes: Github : https://github.com/adityatandon15/Spr... 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/de... Connect with Aditya Tandon Instagram :   / adityatandon2   LinkedIn :   / adityatandon2   Twitter : https://x.com/adityatandon02 Timestamps: