You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Authorization Practice.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,15 +156,15 @@ matching resource role paths. These represent device model role paths and MUST b
156
156
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.
157
157
158
158
```
159
-
"x-nmos-ncp": {
159
+
"x-nmos-control": {
160
160
"read": ["root.receiver-monitors.monitor-01"]
161
161
}
162
162
```
163
163
164
164
Alternatively, offering read access to all IS-12 device model objects may be given with the following token claim which uses the wildcard '*'.
165
165
166
166
```
167
-
"x-nmos-ncp": {
167
+
"x-nmos-control": {
168
168
"read": ["root.*"]
169
169
}
170
170
```
@@ -176,7 +176,7 @@ Access to invoke object methods MUST only be given if the token claim includes a
176
176
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'.
177
177
178
178
```
179
-
"x-nmos-ncp": {
179
+
"x-nmos-control": {
180
180
"read": ["root.receiver-monitors.monitor-01"],
181
181
"write": ["root.receiver-monitors.monitor-01"]
182
182
}
@@ -185,7 +185,7 @@ The following is a token claim example which offers access to modify properties
185
185
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.
186
186
187
187
```
188
-
"x-nmos-ncp": {
188
+
"x-nmos-control": {
189
189
"read": ["root.*"],
190
190
"write": ["root.*"]
191
191
}
@@ -194,7 +194,7 @@ The following is a token claim example which uses the wildcard '*' and offers ac
194
194
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.
0 commit comments