From ebae4511e28538d6b544c656b6f31989fcc4ef94 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Fri, 13 Nov 2026 11:05:02 +0100 Subject: [PATCH] docs: align auth index with three roles (#383) --- docs/README.md | 2 +- skills/heimdall-identity/SKILL.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 1a3aa0e..8c55c6c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -66,7 +66,7 @@ Heimdall/ | `docker-compose.md` | Déploiement Central, Agents autonomes et logiciels facultatifs | | `ui-pages.md` | Pages Blazor (MudBlazor) : maquettes ASCII, composants, états | | `pwa.md` | État livré de la PWA, limites hors ligne et feuille de route Web Push | -| `auth-roles.md` | Auth : 2 user types, permissions, site-scope, UI visibility | +| `auth-roles.md` | Auth : rôles Admin/Supervisor/Viewer, permissions et accès par site/caméra | | `notifications.md` | Canaux SMTP/ntfy, centre in-app, préférences et résumés planifiés | | `hangfire-usage.md` | Description des jobs Hangfire présents au Central et à l’Agent | | `metrics.md` | Métriques exportées par Central et les Agents, avec leur portée et limites | diff --git a/skills/heimdall-identity/SKILL.md b/skills/heimdall-identity/SKILL.md index 187cd50..b997c8d 100644 --- a/skills/heimdall-identity/SKILL.md +++ b/skills/heimdall-identity/SKILL.md @@ -7,7 +7,7 @@ description: Implement and review Heimdall account, password, session, email con Read `AGENTS.md`, the focused Gitea issue and [the Gitea ticket workflow](../gitea-ticket-workflow/SKILL.md), and the Identity wiring in `Infrastructure/DependencyInjection.cs` and `Web/Program.cs` before changing authentication. -When maintaining `docs/auth-roles.md`, verify its role names and default permission summaries against `Infrastructure/Security/AppPermissions.cs` and `Domain/Enums/UserRole.cs`. Heimdall has `Admin`, `Supervisor`, and `Viewer`; site/camera access is separately enforced through resource-access services, not represented by a generic `User` role. +When maintaining `docs/auth-roles.md`, verify its role names and default permission summaries against `Infrastructure/Security/AppPermissions.cs` and `Domain/Enums/UserRole.cs`. Heimdall has `Admin`, `Supervisor`, and `Viewer`; site/camera access is separately enforced through resource-access services, not represented by a generic `User` role. Keep the authentication summary in `docs/README.md` aligned with that guide and model. - Identity owns password hashing, normalized account lookup, role membership, lockout, authenticator tokens, and email/password tokens. Do not duplicate password or token cryptography in Heimdall. - Keep ASP.NET Core Identity packages and types inside Infrastructure. Domain must not reference Identity; Application uses `IIdentityAccountService` and `IdentityAccount` only. Put Identity EF entities (`IdentityAppUser`, `IdentityAppRole`) and `UserManager`/`RoleManager` adapters in Infrastructure. Keep user-related Domain relationships keyed by `Guid UserId`; configure their foreign keys to the Infrastructure user entity. -- 2.54.1