File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
articles/azure-web-pubsub Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -286,21 +286,21 @@ You could also use Microsoft Entra ID and generate the token by invoking [Genera
286
286
287
287
` ` ` bash
288
288
# Replace the values in {} with your actual values.
289
- export Endpoint={your_service_endpoint }
289
+ export Hostname={your_service_hostname }
290
290
export Hub={your_hub}
291
291
export Microsoft_Entra_Token={Microsoft_entra_id_token_from_previous_step}
292
- curl -X POST "https://$Endpoint /api/hubs/$Hub/:generateToken?api-version=2024-01-01" \
292
+ curl -X POST "https://$Hostname /api/hubs/$Hub/:generateToken?api-version=2024-01-01" \
293
293
-H "Authorization: Bearer $Microsoft_Entra_Token" \
294
294
-H "Content-Type: application/json"
295
295
` ` `
296
296
297
297
If you need to generate the token for MQTT clients, append the ` clientType=mqtt` parameter to the URL :
298
298
299
299
` ` ` bash
300
- export Endpoint={your_service_endpoint }
300
+ export Hostname={your_service_hostname }
301
301
export Hub={your_hub}
302
302
export Microsoft_Entra_Token={Microsoft_entra_id_token_from_previous_step}
303
- curl -X POST "https://$Endpoint /api/hubs/$Hub/:generateToken?api-version=2024-01-01&clientType=mqtt" \
303
+ curl -X POST "https://$Hostname /api/hubs/$Hub/:generateToken?api-version=2024-01-01&clientType=mqtt" \
304
304
-H "Authorization: Bearer $Microsoft_Entra_Token" \
305
305
-H "Content-Type: application/json"
306
306
` ` `
@@ -311,4 +311,4 @@ You could also use Microsoft Entra ID and generate the token by invoking [Genera
311
311
{
312
312
"token": "ABCDEFG.ABC.ABC"
313
313
}
314
- ` ` `
314
+ ` ` `
You can’t perform that action at this time.
0 commit comments