Add windows agent token generation parameters to config API

4.x.x
Pahansith 4 years ago
parent e23c2ea29c
commit 931fb8ef54

@ -50,7 +50,7 @@ public final class DeviceManagementConstants {
private ConfigurationManagement(){
throw new AssertionError();
}
public static final String SCOPES_FOR_TOKEN = "perm:device:operations perm:device:publish-event";
public static final String SCOPES_FOR_TOKEN = "perm:device:operations perm:device:publish-event perm:windows:enroll";
public static final String IOT_GATEWAY_HOST = "iot.gateway.host";
public static final String IOT_GATEWAY_HTTPS_PORT = "iot.gateway.https.port";
public static final String APPLICATION_REGISTRATION_API_ENDPOINT =

@ -812,6 +812,7 @@ public final class DeviceManagerUtil {
applicationRegistration.setApplicationName("MyApp");
applicationRegistration.setAllowedToAllDomains(false);
List<String> tags = new ArrayList<>();
tags.add("windows");
tags.add("device_management");
applicationRegistration.setTags(tags);
applicationRegistration.setValidityPeriod(3600);

Loading…
Cancel
Save