Merge branch 'config-param-modify' into 'master'

Add windows agent token generation parameters to config API

See merge request entgra/carbon-device-mgt!711
revert-70ac1926
Dharmakeerthi Lasantha 4 years ago
commit 27a6c45f57

@ -50,7 +50,7 @@ public final class DeviceManagementConstants {
private ConfigurationManagement(){ private ConfigurationManagement(){
throw new AssertionError(); 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_HOST = "iot.gateway.host";
public static final String IOT_GATEWAY_HTTPS_PORT = "iot.gateway.https.port"; public static final String IOT_GATEWAY_HTTPS_PORT = "iot.gateway.https.port";
public static final String APPLICATION_REGISTRATION_API_ENDPOINT = public static final String APPLICATION_REGISTRATION_API_ENDPOINT =

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

Loading…
Cancel
Save