diff --git a/src/Heimdall.Infrastructure/DependencyInjection.cs b/src/Heimdall.Infrastructure/DependencyInjection.cs index 211ff36..5c2957e 100644 --- a/src/Heimdall.Infrastructure/DependencyInjection.cs +++ b/src/Heimdall.Infrastructure/DependencyInjection.cs @@ -55,6 +55,14 @@ public static class DependencyInjection .AddEntityFrameworkStores() .AddDefaultTokenProviders(); + // Configure Identity cookie paths to use custom login page instead of default /Account/Login + services.ConfigureApplicationCookie(options => + { + options.LoginPath = "/login"; + options.LogoutPath = "/_auth/signout"; + options.AccessDeniedPath = "/not-found"; + }); + // Data Protection (for camera credential encryption) var dpMode = configuration.GetValue("DataProtection:Mode") ?? "Persisted"; if (dpMode == "Ephemeral")