From 3733c10b38d0809ba413da9fede1622d1c387ee7 Mon Sep 17 00:00:00 2001 From: Lahiru Madushanka Date: Wed, 13 Dec 2023 09:03:20 +0530 Subject: [PATCH] Fix typo in WWW-Authenticate header Fix typo in WWW-Authenticate header in basicAuth. refer https://datatracker.ietf.org/doc/html/rfc7235#section-4.1 Fixes wso2/micro-integrator/issues/3053 --- .../micro/integrator/security/handler/BasicAuthConstants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/handler/BasicAuthConstants.java b/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/handler/BasicAuthConstants.java index 180673f866..33c29c0d2f 100644 --- a/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/handler/BasicAuthConstants.java +++ b/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/handler/BasicAuthConstants.java @@ -29,6 +29,6 @@ public class BasicAuthConstants { public static final String RESPONSE = "RESPONSE"; public static final String TRUE = "true"; public static final String NO_ENTITY_BODY = "NO_ENTITY_BODY"; - public static final String WWW_AUTHENTICATE = "WWW_Authenticate"; + public static final String WWW_AUTHENTICATE = "WWW-Authenticate"; public static final String WWW_AUTH_METHOD = "Basic realm=\"WSO2 EI\""; }