mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Updating utility.js and removing unused config files - UI
This commit is contained in:
parent
e32c9c0bdb
commit
0ba6edf36d
@ -60,21 +60,6 @@ utility = function () {
|
||||
return getOsgiService("org.wso2.carbon.policy.mgt.core.PolicyManagerService");
|
||||
};
|
||||
|
||||
publicMethods.getIoTServerConfig = function (configName) {
|
||||
var path = "/config/iot-config.json";
|
||||
var file = new File(path);
|
||||
try {
|
||||
file.open("r");
|
||||
var content = file.readAll();
|
||||
} catch (err) {
|
||||
log.error("Error while reading IoT server config file `" + path + "`: " + err);
|
||||
} finally {
|
||||
file.close();
|
||||
}
|
||||
var json = parse(content);
|
||||
return json[configName];
|
||||
};
|
||||
|
||||
publicMethods.getDeviceTypeConfig = function (deviceType) {
|
||||
var unitName = publicMethods.getTenantedDeviceUnitName(deviceType, "type-view");
|
||||
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"IoTMgtHost" : "localhost"
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
{
|
||||
"grantType": "password urn:ietf:params:oauth:grant-type:saml2-bearer refresh_token",
|
||||
"saasApp": true,
|
||||
"tokenScope": "admin",
|
||||
"requireDynamicClientRegistration": true,
|
||||
"audience": "https://localhost:9443/oauth2/token",
|
||||
"assertionConsumerURL": "https://localhost:9443/devicemgt/sso/acs",
|
||||
"recepientValidationURL": "https://localhost:9443/oauth2/token"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user