This project demonstrates a simple authentication and authorization system using Spring Boot, JWT, and Spring Security. It includes endpoints for user registration, login, and accessing secured resources based on user roles.
- User Signup and Login: Users can register and log in to get a JWT token.
- JWT-based Authentication: Secures endpoints using JWT tokens.
- Role-based Authorization: Access control using roles (e.g., USER, ADMIN).
- Spring Security: Handles authentication and authorization.
- Spring Boot
- Spring Security
- JWT (JSON Web Tokens)
- MySql Database (or replace with your preferred DB)
- Lombok (for reducing boilerplate code)
- Maven (for dependency management)
- Java 17+
- Maven
- IDE (e.g., IntelliJ IDEA, Eclipse)
- Postman or cURL (for testing APIs)
- Running the Application
git clone <repository-url>
cd <repository-folder>
mvn clean install
mvn spring-boot:run