Skip to content

Commit 9804285

Browse files
Update with unique namespaces for IS-12 and IS-14
1 parent 31a433c commit 9804285

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/Authorization Practice.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ matching resource role paths. These represent device model role paths and MUST b
156156
For example, offering read access to the IS-12 receiver monitor object identified by a role path of 'root.receiver-monitors.monitor-01' only would require the following token claim.
157157

158158
```
159-
"x-nmos-control": {
159+
"x-nmos-ncp": {
160160
"read": ["root.receiver-monitors.monitor-01"]
161161
}
162162
```
163163

164164
Alternatively, offering read access to all IS-12 device model objects may be given with the following token claim which uses the wildcard '*'.
165165

166166
```
167-
"x-nmos-control": {
167+
"x-nmos-ncp": {
168168
"read": ["root.*"]
169169
}
170170
```
@@ -176,7 +176,7 @@ Access to invoke object methods MUST only be given if the token claim includes a
176176
The following is a token claim example which offers access to modify properties and invoke methods on the receiver monitor object identified by a role path of 'root.receiver-monitors.monitor-01'.
177177

178178
```
179-
"x-nmos-control": {
179+
"x-nmos-ncp": {
180180
"read": ["root.receiver-monitors.monitor-01"],
181181
"write": ["root.receiver-monitors.monitor-01"]
182182
}
@@ -185,7 +185,7 @@ The following is a token claim example which offers access to modify properties
185185
The following is a token claim example which uses the wildcard '*' and offers access to modify properties and invoke methods on any device model object.
186186

187187
```
188-
"x-nmos-control": {
188+
"x-nmos-ncp": {
189189
"read": ["root.*"],
190190
"write": ["root.*"]
191191
}
@@ -194,7 +194,7 @@ The following is a token claim example which uses the wildcard '*' and offers ac
194194
A token claim could also offer asymmetrical access like in the following example which only allows write access to a specific path, whilst allowing the entire device model to be read.
195195

196196
```
197-
"x-nmos-control": {
197+
"x-nmos-ncp": {
198198
"read": ["root.*"],
199199
"write": ["root.receiver-monitors.monitor-01"]
200200
}
@@ -210,15 +210,15 @@ matching resource role paths. These represent device model role paths and MUST b
210210
For example, offering read access to an IS-14 object identified by a role path of 'root.example-controls.control-01' only would require the following token claim.
211211

212212
```
213-
"x-nmos-control": {
213+
"x-nmos-configuration": {
214214
"read": ["root.example-controls.control-01"]
215215
}
216216
```
217217

218218
Alternatively, offering read access to all IS-14 device model objects may be given with the following token claim which uses the wildcard '*'.
219219

220220
```
221-
"x-nmos-control": {
221+
"x-nmos-configuration": {
222222
"read": ["root.*"]
223223
}
224224
```
@@ -230,7 +230,7 @@ Access to invoke object methods MUST only be given if the token claim includes a
230230
The following is a token claim example which offers access to modify properties and invoke methods on an object identified by a role path of 'root.example-controls.control-01'.
231231

232232
```
233-
"x-nmos-control": {
233+
"x-nmos-configuration": {
234234
"read": ["root.example-controls.control-01"],
235235
"write": ["root.example-controls.control-01"]
236236
}
@@ -239,7 +239,7 @@ The following is a token claim example which offers access to modify properties
239239
The following is a token claim example which uses the wildcard '*' and offers access to modify properties and invoke methods on any device model object.
240240

241241
```
242-
"x-nmos-control": {
242+
"x-nmos-configuration": {
243243
"read": ["root.*"],
244244
"write": ["root.*"]
245245
}
@@ -248,7 +248,7 @@ The following is a token claim example which uses the wildcard '*' and offers ac
248248
A token claim could also offer asymmetrical access like in the following example which only allows write access to a specific path, whilst allowing the entire device model to be read.
249249

250250
```
251-
"x-nmos-control": {
251+
"x-nmos-configuration": {
252252
"read": ["root.*"],
253253
"write": ["root.example-controls.control-01"]
254254
}

0 commit comments

Comments
 (0)