From cb5bc95b8d6e7b5973be05d1f0a6898cc54531c9 Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Fri, 13 Mar 2026 22:02:24 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20[Authorize]=20from=20BFF=20Orde?= =?UTF-8?q?rController=20=E2=80=94=20BFF=20proxies=20don't=20configure=20a?= =?UTF-8?q?uth=20schemes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BFF server forwards JWT via AuthForwardingHandler to downstream services. Adding [Authorize] on BFF controllers causes "No authenticationScheme was specified" error since the BFF server itself has no JWT middleware configured. Co-Authored-By: Claude Opus 4.6 --- .../src/WebClientTpos.Server/Controllers/OrderController.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/web-client-tpos-net/src/WebClientTpos.Server/Controllers/OrderController.cs b/apps/web-client-tpos-net/src/WebClientTpos.Server/Controllers/OrderController.cs index b9e56dd6..b3e13ef3 100644 --- a/apps/web-client-tpos-net/src/WebClientTpos.Server/Controllers/OrderController.cs +++ b/apps/web-client-tpos-net/src/WebClientTpos.Server/Controllers/OrderController.cs @@ -11,7 +11,6 @@ namespace WebClientTpos.Server.Controllers; /// VI: Controller đơn hàng — proxy đến OrderService cho đơn hàng, POS thanh toán, dashboard. /// [ApiController] -[Authorize] [Route("api/bff")] public class OrderController : ControllerBase {