Skip to content

Commit c387fac

Browse files
Remove reference to Postman from the docs
1 parent 46dda1f commit c387fac

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

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

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: How to generate client access URL for Azure Web PubSub clients
33
description: How to generate client access URL for Azure Web PubSub clients.
44
author: vicancy
55
ms.author: lianwei
6-
ms.date: 04/25/2023
6+
ms.date: 09/06/2024
77
ms.service: azure-web-pubsub
88
ms.topic: how-to
99
---
@@ -225,24 +225,3 @@ The same Client Access URL can be generated by using the Web PubSub server SDK.
225225
---
226226

227227
In real-world code, we usually have a server side to host the logic generating the Client Access URL. When a client request comes in, the server side can use the general authentication/authorization workflow to validate the client request. Only valid client requests can get the Client Access URL back.
228-
229-
## Invoke the "Generate Client Token" REST API
230-
231-
You can enable Microsoft Entra ID in your service and use the Microsoft Entra token to invoke [Generate Client Token rest API](/rest/api/webpubsub/dataplane/web-pub-sub/generate-client-token) to get the token for the client to use.
232-
233-
1. Follow [Authorize from application](./howto-authorize-from-application.md) to enable Microsoft Entra ID.
234-
2. Follow [Get Microsoft Entra token](./howto-authorize-from-application.md#use-postman-to-get-the-microsoft-entra-token) to get the Microsoft Entra token with Postman.
235-
3. Use the Microsoft Entra token to invoke `:generateToken` with Postman:
236-
237-
> [!NOTE]
238-
> Please use the latest version of Postman. Old versions of Postman have [some issue](https://github.com/postmanlabs/postman-app-support/issues/3994#issuecomment-893453089) supporting colon `:` in path.
239-
240-
1. For the URI, enter `https://{Endpoint}/api/hubs/{hub}/:generateToken?api-version=2024-01-01`. If you'd like to generate token for MQTT clients, append query parameter `&clientType=mqtt` to the URL.
241-
2. On the **Auth** tab, select **Bearer Token** and paste the Microsoft Entra token fetched in the previous step
242-
3. Select **Send** and you see the Client Access Token in the response:
243-
244-
```json
245-
{
246-
"token": "ABCDEFG.ABC.ABC"
247-
}
248-
```

0 commit comments

Comments
 (0)