Add UseAuthentication and UseAuthorization middleware after UseRouting in 5 microservices

Added app.UseAuthentication() and app.UseAuthorization() after
app.UseRouting() in the middleware pipeline for:
- CatalogService.API
- OrderService.API
- InventoryService.API
- FnbEngine.API
- BookingService.API

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-02-26 19:21:36 +00:00
parent ccf72aa5d0
commit aed16d4059
5 changed files with 10 additions and 0 deletions

View File

@@ -114,6 +114,8 @@ try
app.UseCors();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
// EN: Map health check endpoints / VI: Map health check endpoints
app.MapHealthChecks("/health");

View File

@@ -114,6 +114,8 @@ try
app.UseCors();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
// EN: Map health check endpoints / VI: Map health check endpoints
app.MapHealthChecks("/health");

View File

@@ -114,6 +114,8 @@ try
app.UseCors();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
// EN: Map health check endpoints / VI: Map health check endpoints
app.MapHealthChecks("/health");

View File

@@ -117,6 +117,8 @@ try
app.UseCors();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
// EN: Map health check endpoints / VI: Map health check endpoints
app.MapHealthChecks("/health");

View File

@@ -177,6 +177,8 @@ try
app.UseCors();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
// EN: Map health check endpoints / VI: Map health check endpoints
app.MapHealthChecks("/health");