File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1458,7 +1458,7 @@ can be used for device provisioning.
1458
1458
1459
1459
` ` ` console
1460
1460
curl -X POST \
1461
- http://localhost:3005/oauth2/token \
1461
+ ' http://localhost:3005/oauth2/token' \
1462
1462
-H 'Accept: application/json' \
1463
1463
-H 'Authorization: Basic dHV0b3JpYWwtZGNrci1zaXRlLTAwMDAteHByZXNzd2ViYXBwOnR1dG9yaWFsLWRja3Itc2l0ZS0wMDAwLWNsaWVudHNlY3JldA==' \
1464
1464
-d 'username=alice-the-admin@test.com&password=test&grant_type=password&scope=permanent'
@@ -1491,6 +1491,8 @@ been provisioned as shown:
1491
1491
1492
1492
# ### :two::one: Request:
1493
1493
1494
+ > **Note:** use the `access_token` from the previous request.
1495
+
1494
1496
` ` ` console
1495
1497
curl -iX PUT \
1496
1498
'http://localhost:4041/iot/services?resource=/iot/d&apikey=1068318794' \
@@ -1499,7 +1501,7 @@ curl -iX PUT \
1499
1501
-H 'fiware-servicepath: /' \
1500
1502
-d '{
1501
1503
"cbroker": "http://orion-proxy:1027",
1502
- "trust": "30a5ce4c71e416bd199dcdcb7f8bcd8d70e8bb5e "
1504
+ "trust": "{{Access-token}} "
1503
1505
}'
1504
1506
` ` `
1505
1507
You can’t perform that action at this time.
0 commit comments