In this video, I'll show you how to write Java code to secure REST APIs with HTTP Basic authentication using Spring Security. Note that the users are stored in relational database (MySQL).
In detailed, here's what you will learn:
- Understand HTTP Basic authentication
- Use Spring Security to secure an existing REST API with:
- HTTP Basic authentication
- Users stored in MySQL database with passwords encoded using BCrypt
Test HTTP Basic authentication with: web browser, curl, Postman, and code automated tests with Spring Security Test.
Technologies: Java & Spring framework, Spring Web, Spring Security, Spring Data JPA & Hibernate framework.
Software programs: Java Development Kit (JDK), Spring Tool Suite IDE (STS), MySQL Community Server & MySQL Workbench, curl & Postman.
On this page of the site you can watch the video online Spring Security - Secure REST API with HTTP Basic and Database Users with a duration of hours minute second in good quality, which was uploaded by the user Code Java 02 April 2024, share the link with friends and acquaintances, this video has already been watched 694 times on youtube and it was liked by 29 viewers. Enjoy your viewing!