Commit Graph

15 Commits

Author SHA1 Message Date
Cursor Agent
0727a5c41e Add JWT Bearer authentication registration to 5 microservice Program.cs files
Add AddAuthentication(JwtBearerDefaults.AuthenticationScheme) and
AddJwtBearer() service registration before CORS configuration in:
- CatalogService.API
- OrderService.API
- InventoryService.API
- FnbEngine.API
- BookingService.API

Also add Microsoft.AspNetCore.Authentication.JwtBearer v10.0.1 NuGet
package reference to each service's .csproj file.

This fixes the runtime error caused by UseAuthentication() being called
without a registered authentication scheme.

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 19:26:51 +00:00
Cursor Agent
aed16d4059 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>
2026-02-26 19:21:36 +00:00
Cursor Agent
d1cfef93cf test: replace mission and commerce sample functional suites
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:56:57 +00:00
Ho Ngoc Hai
83a8db2942 feat: Implement new API endpoints, application logic, and domain repositories across FnbEngine, BookingService, and OrderService, alongside minor infrastructure updates. 2026-01-18 02:51:10 +07:00
Ho Ngoc Hai
4c9e12e99c feat: Implement a new Inventory Service API, add admin budget and frequency controllers to Ads Serving, and introduce product and category controllers to Catalog Service. 2026-01-18 01:21:09 +07:00
Ho Ngoc Hai
b1931be440 feat: Implement initial entity configurations for ads billing, analytics, and serving, add catalog product and category commands/queries, and refine booking service infrastructure. 2026-01-18 01:15:51 +07:00
Ho Ngoc Hai
4abd842c0d feat: replace Sample aggregate with Appointment aggregate in BookingService. 2026-01-18 01:05:51 +07:00
Ho Ngoc Hai
2285013e2d chore: Remove sample aggregate domain entities, events, exceptions, and repository interface. 2026-01-18 01:04:03 +07:00
Ho Ngoc Hai
5b0b72cbac refactor: remove the Sample entity, its API controller, commands, queries, validations, and associated handlers and tests. 2026-01-18 01:03:49 +07:00
Ho Ngoc Hai
dc55dda87a feat: Remove Sample aggregate, refactor database context to FnbContext, and introduce Table aggregate with its configurations, alongside adding an inventory repository interface. 2026-01-18 01:03:36 +07:00
Ho Ngoc Hai
04933be6dd feat: Implement inventory domain by replacing generic service context with dedicated inventory context, entities, and repository. 2026-01-18 01:01:07 +07:00
Ho Ngoc Hai
5626c3495b refactor: Update Dockerfiles to use service-specific project names instead of generic 'MyService'. 2026-01-18 00:23:39 +07:00
Ho Ngoc Hai
811ddd1e19 feat: Add functional tests for OrderService and update InventoryService command and idempotency logic. 2026-01-18 00:19:46 +07:00
Ho Ngoc Hai
844e40f818 config: Update local application ports and switch database connection strings to Neon.tech for multiple services. 2026-01-17 23:28:35 +07:00
Ho Ngoc Hai
19c0acfe0f feat: Add new unit tests, domain exceptions, documentation, and various build artifacts across multiple services. 2026-01-17 23:04:15 +07:00