fix(multiple): auth, workers, EF Core, MudTheme fixes

- Auth: AssignmentsController auth bug, ReleaseCamera result, logout endpoint
- Security: open redirect fix
- Workers: AgentState thread-safety, CameraStreamService async, HttpClientFactory
- EF Core: AddCameraDiscoveryFields migration, DI interceptors, retry helper
- UI: MudTheme palette config, aria-labels on icon buttons
This commit is contained in:
Arnaud Dartois committed 2026-07-19 19:58:45 +00:00
1 parent 4b83e35df0
commit 153be535d4
17 files changed
+1944 -32

No files matched your search

@@ -9,7 +9,17 @@ namespace Heimdall.Infrastructure.Data;
public class AppDbContext : IdentityDbContext<AppUser, AppRole, Guid>
{
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
private readonly AuditInterceptor _auditInterceptor;
private readonly SoftDeleteInterceptor _softDeleteInterceptor;
public AppDbContext(
DbContextOptions<AppDbContext> options,
AuditInterceptor auditInterceptor,
SoftDeleteInterceptor softDeleteInterceptor) : base(options)
{
_auditInterceptor = auditInterceptor;
_softDeleteInterceptor = softDeleteInterceptor;
}
// Domain entities
public DbSet<Site> Sites => Set<Site>();
@@ -67,8 +77,8 @@ public class AppDbContext : IdentityDbContext<AppUser, AppRole, Guid>
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.AddInterceptors(
new AuditInterceptor(),
new SoftDeleteInterceptor());
_auditInterceptor,
_softDeleteInterceptor);
// Suppress informational EF Core messages that create noise in
// error tracking (GlitchTip #538). Redundant index warnings are