From fdf5c622040902de1ea995fcabc9f7c11c8fddd7 Mon Sep 17 00:00:00 2001 From: tcdlpds Date: Tue, 20 Feb 2024 15:38:10 +0530 Subject: [PATCH] Fix scope issue with code grant type --- .../mgt/core/ui/request/interceptor/util/HandlerUtil.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/util/HandlerUtil.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/util/HandlerUtil.java index af1141ceed..3fe3bb381a 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/util/HandlerUtil.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/util/HandlerUtil.java @@ -533,7 +533,7 @@ public class HandlerUtil { if (scopes != null && scopes.isArray() && !scopes.isEmpty()) { StringBuilder builder = new StringBuilder(); for (JsonNode objNode : scopes) { - builder.append(objNode).append(" "); + builder.append(objNode.asText()).append(" "); } return builder.toString(); } else {