implement Clean Architecture and user authentication

- Add LoopFit.Domain with entities (ApplicationUser, Workout, CalorieEntry, VitalData), enums (WorkoutType), and interfaces (IJwtTokenGenerator, IUserRepository, IWorkoutRepository)
- Add LoopFit.Application with auth DTOs, service interfaces, and DI setup
- Add LoopFit.Infrastructure with EF Core DbContext (PostgreSQL), ASP.NET Core Identity, JWT token generation, and repository implementations
- Add AuthController with register/login/me endpoints and JWT Bearer auth
- Add MAUI auth services (AuthService, TokenStorageService) and Login/Register Blazor pages
This commit is contained in:
2026-08-26 00:50:02 +02:00
parent ada55d4d92
commit b12e557e1a
69 changed files with 1253 additions and 146 deletions
@@ -0,0 +1,10 @@
using LoopFit.Application.DTOs.Auth;
namespace LoopFit.Application.Interfaces;
public interface IAuthService
{
Task<AuthResponse?> RegisterAsync(RegisterRequest request);
Task<AuthResponse?> LoginAsync(LoginRequest request);
Task<AuthResponse?> GetCurrentUserAsync(Guid userId);
}
@@ -0,0 +1,7 @@
namespace LoopFit.Application.Interfaces;
public interface IFormFactor
{
string GetFormFactor();
string GetPlatform();
}