Skip to main content
grasp.study
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Spring Boot, Distributed Systems, DevOps
·
Module 6
Production-Grade API Security with Spring
1
Spring Security Filter Chains vs. Express Middleware
Configure a Spring Security filter chain to secure endpoints, comparing its architecture to Express middleware.
2
Secure User Registration with BCrypt
Implement a user registration endpoint that hashes passwords using BCrypt and persists user details.
3
Secure Login with JWT: Access and Refresh Tokens
Build a login endpoint that validates credentials and generates JWT access and refresh tokens.
4
JWT Validation with Custom Security Filters
Implement a custom security filter to validate JWTs from incoming requests and set the authentication context.
5
Method-Level Security with @PreAuthorize for Role-Based Endpoint Access
Secure endpoints based on user roles (e.g., USER, ADMIN) using method-level security with `@PreAuthorize`.
Secure Token Delivery with HTTP-Only Cookies
Deliver tokens to the client via secure, HTTP-only cookies to mitigate XSS attacks.
7
Secure Token Refresh Endpoint
Implement a token refresh endpoint that validates a refresh token and issues a new access token.
8
Secure Server-Side Logout for Refresh Tokens
Build a logout mechanism that invalidates the refresh token on the server-side.
Previous module
Transactions, Validation, and Error Handling
Next module
Event-Driven Architecture with Kafka