configuring to windows enrollment to support tenants

revert-dabc3590
Hasunie 8 years ago
parent 3c464862d4
commit 10e7eac929

@ -49,7 +49,6 @@ public class DiscoveryServiceImpl implements DiscoveryService {
public static final String FEDERATED = "Federated"; public static final String FEDERATED = "Federated";
private static final String DELIMITER = "@"; private static final String DELIMITER = "@";
private static final int DOMAIN_SEGMENT = 1;
private static Log log = LogFactory.getLog( private static Log log = LogFactory.getLog(
org.wso2.carbon.device.mgt.mobile.windows.api.services.discovery.impl.DiscoveryServiceImpl.class); org.wso2.carbon.device.mgt.mobile.windows.api.services.discovery.impl.DiscoveryServiceImpl.class);
@ -67,7 +66,7 @@ public class DiscoveryServiceImpl implements DiscoveryService {
String emailId = discoveryRequest.getEmailId(); String emailId = discoveryRequest.getEmailId();
String[] userDomains = emailId.split(DELIMITER); String[] userDomains = emailId.split(DELIMITER);
String domain = userDomains[DOMAIN_SEGMENT]; String domain = userDomains[(userDomains.length)-1];
DiscoveryResponse discoveryResponse; DiscoveryResponse discoveryResponse;
if (!PluginConstants.WindowsVersionProperties.REQUESTED_WIN81_VERSION.equals(discoveryRequest.getVersion()) if (!PluginConstants.WindowsVersionProperties.REQUESTED_WIN81_VERSION.equals(discoveryRequest.getVersion())

@ -42,6 +42,8 @@ var utils = function () {
}; };
publicMethods["getDynamicClientAppCredentials"] = function (username, password) { publicMethods["getDynamicClientAppCredentials"] = function (username, password) {
log.error("username"+ username);
log.error("password"+password);
// setting up dynamic client application properties // setting up dynamic client application properties
var dcAppProperties = { var dcAppProperties = {
"applicationName": deviceMgtProps["oauthProvider"]["appRegistration"]["applicationName"], "applicationName": deviceMgtProps["oauthProvider"]["appRegistration"]["applicationName"],

Loading…
Cancel
Save