From 7dd7b0342f964b4b591cb0a258cbdaaf96136754 Mon Sep 17 00:00:00 2001 From: Arne Moerman Date: Mon, 18 May 2026 17:24:17 +0200 Subject: [PATCH] Enable authentication, authorization, and HTTPS Added middleware for authentication and authorization to secure the application pipeline. Enforced HTTPS redirection for improved security. Adjusted middleware order to ensure proper handling of static files and antiforgery tokens. --- src/BirthList.Web/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BirthList.Web/Program.cs b/src/BirthList.Web/Program.cs index 48c5e84..9c88ce1 100644 --- a/src/BirthList.Web/Program.cs +++ b/src/BirthList.Web/Program.cs @@ -173,6 +173,9 @@ if (!string.IsNullOrWhiteSpace(publicUrl) && Uri.TryCreate(publicUrl, UriKind.Ab }); } +app.UseAuthentication(); +app.UseAuthorization(); + app.UseHttpsRedirection(); app.UseStaticFiles();