From 793f4a8319f992ab8300213fcfa96595cea620b8 Mon Sep 17 00:00:00 2001 From: hskwon Date: Wed, 3 Dec 2025 20:14:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20FlowTester=20=EC=8A=A4=ED=85=9D=20?= =?UTF-8?q?=ED=97=A4=EB=8D=94=EA=B0=80=20=EA=B8=B0=EB=B3=B8=20Bearer=20?= =?UTF-8?q?=ED=86=A0=ED=81=B0=EB=B3=B4=EB=8B=A4=20=EC=9A=B0=EC=84=A0?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 문제: .env의 FLOW_TESTER_API_TOKEN이 스텝에서 설정한 Authorization 헤더를 덮어씀 - 원인: withToken()이 항상 호출되어 스텝 헤더를 무시함 - 해결: 스텝 헤더에 Authorization이 있으면 기본 Bearer 토큰 사용 안함 --- app/Services/FlowTester/HttpClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/FlowTester/HttpClient.php b/app/Services/FlowTester/HttpClient.php index 35fe7e0b..c2fd78db 100644 --- a/app/Services/FlowTester/HttpClient.php +++ b/app/Services/FlowTester/HttpClient.php @@ -130,8 +130,8 @@ public function request(string $method, string $endpoint, array $options = []): $request = $request->withHeaders(['X-API-KEY' => $this->apiKey]); } - // Bearer 토큰 추가 - if ($this->bearerToken) { + // Bearer 토큰 추가 (스텝 헤더에 Authorization이 없는 경우에만) + if ($this->bearerToken && ! isset($headers['Authorization'])) { $request = $request->withToken($this->bearerToken); }