Code - https://github.com/therealdumbprogram...
Playlist - • Spring Security
---------------------------------------------------------------------
In this video, you'll learn:
✅ What HTTP Basic Authentication is and when to use it
✅ How to configure Spring Security for HTTP Basic Authentication
✅ Setting up user registration with secure password hashing
✅ Protecting your API endpoints with Spring Security
✅ Testing your setup with Postman
We’ll be using a practical example to demonstrate how to build a secure API using Spring Boot, MySQL, and Spring Data JPA. By the end, you’ll have a clear understanding of how to implement and test HTTP Basic Authentication in your own projects.
00:00 Intro
00:51 What is HTTP Basic
4:50 Usecase
7:15 Project Overview
13:28 Code walkthrough
17:20 Adding PasswordEncoder
20:12 Configuring SecurityFilterChain
21:55 Excluding endpoints
25:15 Logging security Exceptions
28:00 Disabling CSRF
29:48 Implementing UserDetailsService
33:12 Implementing UserDetails
36:50 Running the Project
42:54 Closing
-----------------------------------------------------------------
#springboot #springsecurity #security #java #programming #coding #https