From 0c304e862b19329b5b7d6c47dfcedbddc46b2c8c Mon Sep 17 00:00:00 2001 From: inoshperera Date: Sat, 20 Apr 2019 10:33:52 +0530 Subject: [PATCH] iOS enrollment fix --- .../wso2/carbon/apimgt/handlers/AuthenticationHandler.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/apimgt-extensions/org.wso2.carbon.apimgt.handlers/src/main/java/org/wso2/carbon/apimgt/handlers/AuthenticationHandler.java b/components/apimgt-extensions/org.wso2.carbon.apimgt.handlers/src/main/java/org/wso2/carbon/apimgt/handlers/AuthenticationHandler.java index 6c95b40dee..8bad3de1a8 100644 --- a/components/apimgt-extensions/org.wso2.carbon.apimgt.handlers/src/main/java/org/wso2/carbon/apimgt/handlers/AuthenticationHandler.java +++ b/components/apimgt-extensions/org.wso2.carbon.apimgt.handlers/src/main/java/org/wso2/carbon/apimgt/handlers/AuthenticationHandler.java @@ -94,11 +94,7 @@ public class AuthenticationHandler extends AbstractHandler { if (log.isDebugEnabled()) { log.debug("Verify Cert:\n" + mdmSignature); } - String deviceType = this.getDeviceType(messageContext.getTo().getAddress().trim()); - if (deviceType == null) { - return false; - } - URI certVerifyUrl = new URI(iotServerConfiguration.getVerificationEndpoint() + deviceType); + URI certVerifyUrl = new URI(iotServerConfiguration.getVerificationEndpoint() + "ios"); Map certVerifyHeaders = this.setHeaders(this.restInvoker); Certificate certificate = new Certificate();