From 694e601a4bc5906c5566675cba0ce56a8077915d Mon Sep 17 00:00:00 2001 From: Rajitha Kumara Date: Fri, 31 May 2024 11:31:10 +0530 Subject: [PATCH] Fix remote share authorization issue --- .../device/mgt/core/ui/request/interceptor/UserHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ui-request-interceptor/io.entgra.device.mgt.core.ui.request.interceptor/src/main/java/io/entgra/device/mgt/core/ui/request/interceptor/UserHandler.java b/components/ui-request-interceptor/io.entgra.device.mgt.core.ui.request.interceptor/src/main/java/io/entgra/device/mgt/core/ui/request/interceptor/UserHandler.java index 04cb1f08b8..5ca4860c87 100644 --- a/components/ui-request-interceptor/io.entgra.device.mgt.core.ui.request.interceptor/src/main/java/io/entgra/device/mgt/core/ui/request/interceptor/UserHandler.java +++ b/components/ui-request-interceptor/io.entgra.device.mgt.core.ui.request.interceptor/src/main/java/io/entgra/device/mgt/core/ui/request/interceptor/UserHandler.java @@ -124,7 +124,7 @@ public class UserHandler extends HttpServlet { proxyResponse.setData(mapper.convertValue(data, JsonNode.class)); HandlerUtil.handleSuccess(resp, proxyResponse); - httpSession.setAttribute(HandlerConstants.USERNAME_WITH_DOMAIN, tokenData.get("username").toString()); + httpSession.setAttribute(HandlerConstants.USERNAME_WITH_DOMAIN, tokenData.get("username").textValue()); log.info( "User " + proxyResponse.getData() + " logged in", userLoginLogContextBuilder