Files
Heimdall/src/Heimdall.Application/DependencyInjection.cs
T
Arnaud Dartois ba968a5f23 fix(security): harden Docker, CSRF, EventsHub scoping, secret logging, tests
- Docker: remove default passwords from prod compose (required env vars)
- CSRF: validate antiforgery tokens on /_auth/signin and /_auth/signout
- EventsHub: broadcast to site-scoped Group() instead of Clients.All
- SettingsController: redact secret values in logs
- Create SetAgentSettingValidator + UpdateAppSettingValidator classes
- Replace 3 placeholder test projects with meaningful tests
- Remove FluentValidation auto-validation (incompatible with .NET 10)
2026-07-19 20:53:48 +00:00

16 lines
419 B
C#

using FluentValidation;
using Microsoft.Extensions.DependencyInjection;
namespace Heimdall.Application;
public static class DependencyInjection
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
// Register validators for manual use in service layer
services.AddValidatorsFromAssembly(typeof(DependencyInjection).Assembly);
return services;
}
}