DeutschLernen/GermanApp
Lasse Rune Hansen 42778ec34b fix(backend/auth): Fix authentication bugs
- Fix case-insensitive email lookups in AuthService (RegisterAsync, LoginAsync, CreateAdminUserAsync)
- Fix User.Create factory method to explicitly set Role property (C# object initializer behavior)
- Assign Admin role to seeded admin user in SeedDataExtension
- Add [AllowAnonymous] to Register and Login endpoints in AuthController (defensive programming)
- Increase JWT ClockSkew to 5 minutes for clock difference tolerance

These fixes resolve issues where:
- Login fails with 401 due to case-sensitive email comparison
- User role is null instead of 'User' or 'Admin'
- JWT token validation too strict on clock synchronization

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-14 16:40:01 +02:00
..
Application feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
Domain fix(backend/auth): Fix authentication bugs 2026-06-14 16:40:01 +02:00
Infrastructure fix(backend/auth): Fix authentication bugs 2026-06-14 16:40:01 +02:00
Presentation fix(backend/auth): Fix authentication bugs 2026-06-14 16:40:01 +02:00
Properties Initial commit: GermanApp with Clean Architecture 2026-05-31 18:14:51 +02:00
Shared feat(backend/infra): add health checks, CORS, Serilog logging, and exception middleware 2026-05-31 19:52:00 +02:00
.dockerignore feat(backend/infra): add Docker configuration for Phase 3 2026-06-05 11:46:27 +02:00
Dockerfile fix(infra): remove problematic health checks for now 2026-06-05 13:03:10 +02:00
GermanApp.csproj feat(backend/infrastructure): implement Mistral API Connector (Phase 0 of AI Services) 2026-06-09 18:56:37 +02:00
GermanApp.http Initial commit: GermanApp with Clean Architecture 2026-05-31 18:14:51 +02:00
Program.cs fix(backend/auth): Fix authentication bugs 2026-06-14 16:40:01 +02:00