Skip to content

Commit 84534fc

Browse files
authored
Merge pull request #122786 from nidri/patch-1
Update howto-authorize-from-application.md
2 parents b9cbf7d + 7d509e8 commit 84534fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/azure-web-pubsub/howto-authorize-from-application.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ This sample shows how to assign a `Web PubSub Service Owner` role to a service p
136136

137137
![Screenshot of the response token when using postman to get the token.](./media/howto-authorize-from-application/get-azure-ad-token-using-postman-response.png)
138138

139+
7. For oauth2/v2.0/token endpoint, pass the 'scope' instead of 'resource'
140+
141+
```
142+
client_id: *your client id*
143+
client_secret: *your client secret*
144+
grant_type: client_credentials
145+
scope: https://webpubsub.azure.com/.default
146+
```
147+
139148
## Sample codes using Microsoft Entra authorization
140149

141150
We officially support 4 programming languages:

0 commit comments

Comments
 (0)