Before you begin: Join our book community on Discord
Give your feedback straight to the author himself and chat to other early readers on our Discord server (find the "full-stack-dev-spring-boot-3-react-4e" channel under EARLY ACCESS SUBSCRIPTION).
https://packt.link/EarlyAccess
This chapter explains how to secure your Spring Boot backend. Securing your backend is a crucial part of code development. Securing your backend is essential to protect sensitive data, comply with regulations and prevent unauthorized access. The backend often handles user authentication and authorization process. Securing these aspects properly ensures that only authorized users can access the application and perform specific actions. We will use the database application that we created in the previous chapter as a starting point.In this chapter, we will cover the following topics:
- Understanding Spring Security
- Securing your backend with a JSON Web Token (JWT)