Loading...
Loading...
Section 17 · Stage 4: Build Applications
Protect your APIs: password hashing, sign-in with JWT, roles and permissions, and the common security mistakes to avoid.
The core ideas you need before touching any security code.
What changes when you add Spring Security and how a request is checked.
Keep user accounts in the database and store passwords so a leak does not expose them.
The simpler ways to sign in and why REST APIs usually move beyond them.
Issue and check signed tokens so the API stays stateless.
Allow each user to do only what their role permits.
Let a frontend on another origin call your API safely.
The errors that turn up in real projects and code reviews, and how to avoid them.
Add sign-up, JWT login and role-based access to the ShopLite API.
These sections are ready to study now.