feature/user-authentication #2

Merged
lasserh merged 31 commits from feature/user-authentication into main 2026-06-07 13:17:55 +02:00
Showing only changes of commit 91f5c34602 - Show all commits

View file

@ -120,6 +120,7 @@ CREATE TABLE Users (
- [x] Create AuthController with endpoints - [x] Create AuthController with endpoints
- [x] Add JWT authentication middleware - [x] Add JWT authentication middleware
- [x] Configure CORS for frontend - [x] Configure CORS for frontend
- [x] Add [Authorize] to protected endpoints
### Phase 2: Database Integration (1-2 hours) ### Phase 2: Database Integration (1-2 hours)
- [x] Update User entity to match schema - [x] Update User entity to match schema
@ -163,7 +164,7 @@ CREATE TABLE Users (
- [x] Create Services/AuthService.cs - [x] Create Services/AuthService.cs
- [x] Create Controllers/AuthController.cs - [x] Create Controllers/AuthController.cs
- [x] Configure JWT in Program.cs - [x] Configure JWT in Program.cs
- [ ] Add [Authorize] attribute to protected endpoints - [x] Add [Authorize] attribute to protected endpoints (LessonsEndpoints)
- [ ] Create AuthMiddleware.cs - [ ] Create AuthMiddleware.cs
- [x] Configure CORS policy - [x] Configure CORS policy
- [ ] Write unit tests for AuthService - [ ] Write unit tests for AuthService