From 56a5721f2704fb7f6ecb477a5b4acf39ede9cd88 Mon Sep 17 00:00:00 2001 From: dhanushka madushan Date: Thu, 6 Jul 2023 16:29:43 +0530 Subject: [PATCH] Fix password split issue that have colon --- .../micro/integrator/security/handler/RESTBasicAuthHandler.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/RESTBasicAuthHandler.java b/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/handler/RESTBasicAuthHandler.java index f0da9171e4..e79731607a 100644 --- a/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/handler/RESTBasicAuthHandler.java +++ b/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/handler/RESTBasicAuthHandler.java @@ -104,7 +104,7 @@ public Map getProperties() { public boolean processSecurity(String credentials) { String decodedCredentials = new String(new Base64().decode(credentials.getBytes())); String username = decodedCredentials.split(":")[0]; - String password = decodedCredentials.split(":")[1]; + String password = decodedCredentials.split(":",2)[1]; UserStoreManager userStoreManager; try { userStoreManager = MicroIntegratorSecurityUtils.getUserStoreManager();