Query string (?apiKey=...) leaks credentials in server logs, referrer
headers, and browser history. Only Authorization header and X-API-Key
header are now accepted for API key authentication.
Setting LockoutEnd to UtcNow locked the user out instead of forcing
a password change. Added MustChangePassword boolean to AppUser entity
with EF Core migration. ResetPasswordAsync now sets this flag instead
of locking the account.
GenerateTemporaryPassword now uses RandomNumberGenerator (cryptographic)
and guarantees at least 1 digit, 1 lowercase letter to satisfy Identity
password rules (RequireDigit=true, RequireLowercase=true).
Also shuffles the result to avoid predictable position patterns.
Fixes flaky ResetPassword_WithAdminAuth_ReturnsTemporaryPassword test.
- Full project documentation in readme.md (FR)
- Quick start: Docker + development modes
- API endpoint reference table with auth requirements
- Security documentation (JWT, API Key, rate limiting)
- Test suite documentation (34 tests)
- Stack technology table
- IAuditLogService + AuditLogService avec pagination et filtres
- AuditLogsController: GET /api/audit-logs (resourceType, action, page)
- AuditLogsPage Blazor: liste paginée avec filtres + coloration par action
- Lien vers le journal dans le menu Admin (visible pour les Admins)
Forgejo-only CI enforcement:
- cicd-pipeline skill: forgejo.tordais.cc by default, GA = legacy
- devops-agent: .forgejo/ scope, blocking CI checklist
- pre-commit hook: CI lint blocks GA references
- scripts/ci-lint.sh: standalone audit with --fix
- enforcement.md: CI lint in pre-commit checklist
- Add Scalar.AspNetCore package (beautiful OpenAPI UI)
- MapScalarApiReference() available at /scalar in Development
- Complement to the existing /openapi/v1.json endpoint
- Add PlaceholderTest.cs to Api.Tests, Application.Tests, Infrastructure.Tests,
Web.Tests, Workers.Tests (1 passing test each)
- Prevents 'no test available' warnings in CI
- Add RegisterAdminAsync to IAuthService interface
- Implement in AuthService (creates user + assigns Admin role)
- AuthController.register-admin now delegates to service layer
- No more 'new AppUser' in controller
- StatsController: aggregates sites, cameras, agents counts in one DB query
- Dashboard: now uses stats endpoint (2 API calls instead of N*2+1)
- ApiClient: GetStatsAsync + StatsResult DTO
- Dashboard now shows: total sites, total cameras, online agents, active sites
- Stats loaded in parallel with Task.WhenAll for performance
- Falls back gracefully if cameras/agents endpoints return no data
- Users: replace single MudSelect role picker with MudCheckBox multi-select
- Users: users can now have multiple roles (Admin + Supervisor, etc.)
- Users: edit dialog validates at least one role is selected
- Build: suppress MudBlazor analyzer MUD0002 (false positive on Checked bind)
- Login: redirect to original page after auth via returnUrl query param
- RedirectToLogin: encodes current URL as ?returnUrl=/path
- API URL: configurable via appsettings.json ApiBaseUrl or API_BASE_URL env
- NotFound page: preserved from template
- Fix: InMemory database name now unique per test factory instance
(was using process-wide env var, now per-host config via UseSetting)
- Refactor: all integration tests use shared TestHelpers.CreateAdminClientAsync
- New: register-admin endpoint (test/dev only) creates Admin users directly
- New: TestHelpers.cs with extension method for admin client creation
- Cleanup: removed bootstrap template files, old Counter/Weather pages
- Cleanup: simplified app.css with MudBlazor-only styles
- Seed: demo admin + demo site created in Development mode
- Site detail: generate registration token with copy/paste docker-compose snippet
- Docker snippet: pre-filled with token + agent hostname, ready to copy
- Agents integration tests: register with valid token, heartbeat with API key,
invalid token rejection (3 new tests)
- TokenResult DTO for API client
- IJSRuntime clipboard copy for docker-compose snippet
Chaque phase des Etapes 2 a 7 a maintenant des scenarios de test detailles, des exemples requetes/reponses HTTP, et des sections 'Fonctionnel a la fin de cette phase' comme pour l'Etape 1. Ajout de schemas JSON pour chaque endpoint, scenarios utilisateur complets (detection avec dedup, live video, notifications, retention, mobile).
Chaque phase de l'Étape 1 (MVP Multi-Site) a désormais une section '✅ Fonctionnel à la fin de cette phase' qui décrit EXACTEMENT ce qui marche, avec des exemples de requêtes/réponses HTTP et le scénario de bout en bout.
Étape 1 (Phases 1-12) : Foundation + API multi-site (Sites, Agents, Auth) + Agent Docker avec heartbeat. Pas de caméra, pas d'IA, pas de vidéo. L'objectif est d'avoir N sites avec N agents enregistrés, heartbeats, status Online, le tout via API.
Étape 2 (Phases 13-25) : on ajoute le métier par-dessus — caméras, vidéo, IA, notifications, UI, mobile.
- Create docs/README.md as central navigation index with quick links
- Rewrite specs.md from 1473 to 253 lines — remove all content now
duplicated in dedicated files, keep only unique content (vision,
architecture, domain model, features, Docker, quality)
- Replace Refit with Kiota (Microsoft) in mobile-app.md:
- Kiota generates API client from OpenAPI spec
- IAuthenticationProvider for JWT
- CI/CD regeneration step
- Comparison table Kiota vs Refit
- All NuGet deps updated