From 8fd273f4c00fec3a821106173bfd598aa404b9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Wed, 6 Nov 2024 17:00:54 +0100 Subject: [PATCH] Fix FLEXIAPI-239 Add missing WWW-Authenticate header key parameter --- flexiapi/app/Http/Middleware/AuthenticateJWT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexiapi/app/Http/Middleware/AuthenticateJWT.php b/flexiapi/app/Http/Middleware/AuthenticateJWT.php index ef4c393..4d1399d 100644 --- a/flexiapi/app/Http/Middleware/AuthenticateJWT.php +++ b/flexiapi/app/Http/Middleware/AuthenticateJWT.php @@ -120,7 +120,7 @@ class AuthenticateJWT $response = new Response(); $response->header( 'WWW-Authenticate', - 'Bearer error="' . $error .'", "'. $description . '"' + 'Bearer error="' . $error .'", error_description="'. $description . '"' ); $response->setStatusCode(401);