Enable authentication, authorization, and HTTPS
Build and Push Docker Image / build-and-push (push) Successful in 22s
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:
@@ -173,6 +173,9 @@ if (!string.IsNullOrWhiteSpace(publicUrl) && Uri.TryCreate(publicUrl, UriKind.Ab
|
||||
});
|
||||
}
|
||||
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
app.UseStaticFiles();
|
||||
|
||||
Reference in New Issue
Block a user