This project demonstrates how to implement JWT-based Authentication and Authorization using Spring Boot and Spring Security.
Itβs a simple yet complete example that shows how to secure REST APIs with access tokens.
- β User registration and login endpoints
- π JSON Web Token (JWT) based authentication
- π§± Role-based authorization (e.g., USER, ADMIN)
- π Password hashing using BCrypt
- βοΈ Stateless authentication with Spring Security filters
- π CORS configuration for frontend integration
- π¦ Exception handling and custom responses
- Java 17+
- Spring Boot
- Spring Security
- JWT (JSON Web Token)
- Maven / Gradle
- **PostgreSQL
- Lombok