DeutschLernen/GermanApp/Infrastructure/Services
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
..
AiServicesHealthCheck.cs feat(backend/ai-services): Complete Phase 1 - Configuration & Interfaces 2026-06-13 10:22:54 +02:00
AuthService.cs fix(backend/auth): Fix authentication bugs 2026-06-14 16:40:01 +02:00
MistralCircuitBreaker.cs feat(backend/infrastructure): implement Mistral API Connector (Phase 0 of AI Services) 2026-06-09 18:56:37 +02:00
MistralConnector.cs fix(backend/config): Skip AI service validation when configs are not set 2026-06-14 07:54:23 +02:00
MistralRateLimiter.cs feat(backend/infrastructure): implement Mistral API Connector (Phase 0 of AI Services) 2026-06-09 18:56:37 +02:00
TtsService.cs fix(backend/config): Skip AI service validation when configs are not set 2026-06-14 07:54:23 +02:00
VoskService.cs fix(backend/config): Skip AI service validation when configs are not set 2026-06-14 07:54:23 +02:00