Skip to content

Commit 41cfeb0

Browse files
authored
Update howto-generate-client-access-url.md
1 parent 8b16a4e commit 41cfeb0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-web-pubsub/howto-generate-client-access-url.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,21 +286,21 @@ You could also use Microsoft Entra ID and generate the token by invoking [Genera
286286

287287
```bash
288288
# Replace the values in {} with your actual values.
289-
export Endpoint={your_service_endpoint}
289+
export Hostname={your_service_hostname}
290290
export Hub={your_hub}
291291
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" \
293293
-H "Authorization: Bearer $Microsoft_Entra_Token" \
294294
-H "Content-Type: application/json"
295295
```
296296

297297
If you need to generate the token for MQTT clients, append the `clientType=mqtt` parameter to the URL:
298298

299299
```bash
300-
export Endpoint={your_service_endpoint}
300+
export Hostname={your_service_hostname}
301301
export Hub={your_hub}
302302
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" \
304304
-H "Authorization: Bearer $Microsoft_Entra_Token" \
305305
-H "Content-Type: application/json"
306306
```
@@ -311,4 +311,4 @@ You could also use Microsoft Entra ID and generate the token by invoking [Genera
311311
{
312312
"token": "ABCDEFG.ABC.ABC"
313313
}
314-
```
314+
```

0 commit comments

Comments
 (0)