mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request 'change format of device scope' (#107) from amalka.subasinghe/device-mgt-core:master into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/107
This commit is contained in:
commit
48110269f9
@ -826,8 +826,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
||||
deviceConfig.setClientId(dcrResponse.getClientId());
|
||||
deviceConfig.setClientSecret(dcrResponse.getClientSecret());
|
||||
|
||||
StringBuilder scopes = new StringBuilder("device_" + type.replace(" ", "")
|
||||
.replace("_", "") + "_" + id);
|
||||
StringBuilder scopes = new StringBuilder("device:" + type.replace(" ", "") + ":" + id);
|
||||
for (String topic : mqttEventTopicStructure) {
|
||||
if (topic.contains("${deviceId}")) {
|
||||
topic = topic.replace("${deviceId}", id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user