Buildintermediate
50 min
Add JWT Authentication
Take the Products API and add a real authentication flow: a `/auth/login` endpoint that validates credentials and returns a JWT, a `/auth/register` endpoint, and middleware that protects all product write endpoints (POST/PUT/DELETE). Add an `Admin` role that can delete products; regular users cannot.
Your progress0%
Requirements
Skills you'll use
.NETJWTAuthenticationAuthorization
Read this first
This task is based on the lesson below. Complete the reading before attempting it.
Go to lessonWhat to expect
- Difficulty
- intermediate
- Time
- 50 min
- Steps
- 6
- Type
- Build