From cf0be2ad93b2e5e91cc26f6ed4441853be330c1c Mon Sep 17 00:00:00 2001 From: navodzoysa Date: Wed, 23 Mar 2022 04:40:35 +0530 Subject: [PATCH] Temp fix for windows enrollment permission url mismatch --- .../framework/authorizer/PermissionAuthorizer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/authorizer/PermissionAuthorizer.java b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/authorizer/PermissionAuthorizer.java index eb09e815df..e8f14fc74f 100644 --- a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/authorizer/PermissionAuthorizer.java +++ b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/authorizer/PermissionAuthorizer.java @@ -79,6 +79,11 @@ public class PermissionAuthorizer { matchingResources.add(new MatchingResource(permission.getUrlPattern().replace(context, ""), permission.getPath())); } } + //TODO :: Temporary fix for windows bst api url mismatch error + else if ("/api/device-mgt/windows/v1.0/bst/authentication".equals(permission.getUrl())) { + requiredPermission = "/permission/admin/device-mgt/devices/enroll/windows"; + break; + } } if (requiredPermission == null) {