Enable authentication, authorization, and HTTPS
Build and Push Docker Image / build-and-push (push) Successful in 22s

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.
This commit is contained in:
Arne Moerman
2026-05-18 17:24:17 +02:00
parent 55415ba968
commit 7dd7b0342f
+3
View File
@@ -173,6 +173,9 @@ if (!string.IsNullOrWhiteSpace(publicUrl) && Uri.TryCreate(publicUrl, UriKind.Ab
});
}
app.UseAuthentication();
app.UseAuthorization();
app.UseHttpsRedirection();
app.UseStaticFiles();