Description:
Set up JWT-based authentication. Users should log in with credentials and receive a JWT token to access protected endpoints. Users should also be able to login and signup.
Spring Boot Concepts:
Spring Security: JWT integration for authentication
Filter Chains: Custom authentication filters
Guide:
Add Spring Security and JWT dependencies to pom.xml.
Create a custom JwtTokenProvider (JwtService.java) for generating and validating JWTs.
Create a login endpoint (/auth/login) that returns a JWT token.
Create a signup endpoint (/auth/signup) that returns a JWT token.
Secure protected endpoints using JWT filters.
Write tests to verify authentication and token validation.
Description: Set up JWT-based authentication. Users should log in with credentials and receive a JWT token to access protected endpoints. Users should also be able to login and signup.
Spring Boot Concepts:
Guide:
Acceptance Criteria: