Update sampleserver_justworks .json and .dat 23/24423/3
authorNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 19 Mar 2018 11:10:28 +0000 (04:10 -0700)
committerAleksey Volkov <a.volkov@samsung.com>
Mon, 26 Mar 2018 10:10:44 +0000 (10:10 +0000)
This is the first of the applications to recieve an update to
the /acl2 .json to utilize the new "resources" wildcards.

This change (adding the two "+" and "-" entries in /acl2) should probably
be propagated to most sample applications, to give a consistent
example for vendors assessing IoTivity samples, but it is
not required for correction function.  The exception is an app
that is using the "*" wildcard to grant access to DCRs (e.g. the
SVRs) which will no longer work (but shouldn't have been done
anyway!)

Change-Id: I66e06432dead4ec90c17091352d2c19cab753bcf
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/security/provisioning/sample/oic_svr_db_server_justworks.dat
resource/csdk/security/provisioning/sample/oic_svr_db_server_justworks.json

index 297afe7..6ffd257 100644 (file)
Binary files a/resource/csdk/security/provisioning/sample/oic_svr_db_server_justworks.dat and b/resource/csdk/security/provisioning/sample/oic_svr_db_server_justworks.dat differ
index 09e87c7..12546d8 100644 (file)
@@ -25,7 +25,8 @@
                 "aceid": 3,
                 "subject": { "conntype": "anon-clear" },
                 "resources": [
-                    { "href": "/oic/sec/doxm" }
+                    { "href": "/oic/sec/doxm" },
+                    { "wc": "-" }
                 ],
                 "permission": 14
             },
@@ -34,7 +35,8 @@
                 "subject": { "conntype": "auth-crypt" },
                 "resources": [
                     { "href": "/oic/sec/doxm" },
-                    { "href": "/oic/sec/roles" }
+                    { "href": "/oic/sec/roles" },
+                    { "wc": "+" }
                 ],
                 "permission": 14
             }
@@ -53,7 +55,7 @@
     "doxm": {
         "oxms": [0],
         "oxmsel": 0,
-        "sct": 9,
+        "sct": 1,
         "owned": false,
         "deviceuuid": "12345678-1234-1234-1234-123456789012",
         "devowneruuid": "00000000-0000-0000-0000-000000000000",