From 6b91c89ad0f6a77a2b32d0bb1b274ec7b6bfbe6c Mon Sep 17 00:00:00 2001 From: Mohamed Rashd Date: Tue, 26 Apr 2022 11:05:53 +0530 Subject: [PATCH 1/3] Add identity server create permission to ui configuration --- .../src/main/resources/conf/mdm-ui-config.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/conf/mdm-ui-config.xml b/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/conf/mdm-ui-config.xml index d93ba4ab7a9..82c1d64d349 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/conf/mdm-ui-config.xml +++ b/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/conf/mdm-ui-config.xml @@ -42,6 +42,7 @@ perm:app:publisher:service-provider:create perm:app:publisher:service-provider:attach perm:app:publisher:service-provider:detach + perm:app:publisher:service-provider:connect perm:app:publisher:view perm:app:publisher:update perm:app:store:view From 695f4c4a186aceeb80b738970b0c55f1cb96be8b Mon Sep 17 00:00:00 2001 From: Muhammad Rashad Date: Tue, 26 Apr 2022 05:54:00 +0000 Subject: [PATCH 2/3] Add identity server connect scope to ui conf template --- .../templates/repository/conf/mdm-ui-config.xml.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/conf_templates/templates/repository/conf/mdm-ui-config.xml.j2 b/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/conf_templates/templates/repository/conf/mdm-ui-config.xml.j2 index 292234023cb..df649391a31 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/conf_templates/templates/repository/conf/mdm-ui-config.xml.j2 +++ b/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/conf_templates/templates/repository/conf/mdm-ui-config.xml.j2 @@ -61,6 +61,7 @@ perm:app:publisher:service-provider:create perm:app:publisher:service-provider:attach perm:app:publisher:service-provider:detach + perm:app:publisher:service-provider:connect perm:app:publisher:view perm:app:publisher:update perm:app:store:view From a98e1e4b241be9a381f5bc4d66de566ea3030194 Mon Sep 17 00:00:00 2001 From: Mohamed Rashd Date: Fri, 29 Apr 2022 17:53:42 +0530 Subject: [PATCH 3/3] Improve logging message --- .../serviceprovider/impl/WSO2IAMSPApplicationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java b/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java index 2dc5a91e27a..4c7936746dc 100644 --- a/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java +++ b/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java @@ -93,7 +93,7 @@ public class WSO2IAMSPApplicationService implements ISServiceProviderApplication * @return constructed error message */ private String constructErrorMessage(HttpResponse response) { - String msg = "Error occurred while calling SP Applications API"; + String msg = "Error occurred while calling SP Applications API. Response status: " + response.getStatusLine().getStatusCode(); if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) { msg += ". Make sure provided identity Server credentials are valid"; }