Skip to content

Commit f0b2eb7

Browse files
Merge pull request #284400 from stevemunk/postman-to-bruno-how-to-secure-daemon-app
Updated Secure a daemon application how-to article to use bruno instead of postman.
2 parents 0ea32fb + 222c5bf commit f0b2eb7

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

articles/azure-maps/how-to-secure-daemon-app.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -201,32 +201,34 @@ To acquire the access token:
201201

202202
:::image type="content" border="true" source="./media/how-to-manage-authentication/get-token-params.png" alt-text="Copy token parameters.":::
203203

204-
This article uses the [Postman](https://www.postman.com/) application to create the token request, but you can use a different API development environment.
204+
This article uses the [bruno](https://www.usebruno.com/) application to create the token request, but you can use a different API development environment.
205205

206-
1. In the Postman app, select **New**.
206+
1. Open the bruno app, select **NEW REQUEST** to create the request.
207207

208-
2. In the **Create New** window, select **HTTP Request**.
208+
1. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request, such as *POST Token Request*.
209209

210-
3. Enter a **Request name** for the request, such as *POST Token Request*.
211-
212-
4. Select the **POST** HTTP method.
213-
214-
5. Enter the following URL to address bar (replace `{Tenant-ID}` with the Directory (Tenant) ID, the `{Client-ID}` with the Application (Client) ID, and `{Client-Secret}` with your client secret:
210+
1. Select the **GET** HTTP method in the **URL** drop-down list, then enter the following URL:
215211

216212
```http
217213
https://login.microsoftonline.com/{Tenant-ID}/oauth2/v2.0/token?response_type=token&grant_type=client_credentials&client_id={Client-ID}&client_secret={Client-Secret}&scope=https://atlas.microsoft.com/.default
218214
```
219215
220-
6. Select **Send**
216+
> [!NOTE]
217+
> Replace:
218+
> - `{Tenant-ID}` with the Directory (Tenant) ID
219+
> - `{Client-ID}` with the Application (Client) ID
220+
> - `{Client-Secret}` with your client secret.
221+
222+
1. Select the run button
221223
222-
7. You should see the following JSON response:
224+
You should see the following JSON response:
223225
224226
```json
225227
{
226-
"token_type": "Bearer",
227-
"expires_in": 86399,
228-
"ext_expires_in": 86399,
229-
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im5PbzNaRHJPRFhFSzFq..."
228+
"token_type": "Bearer",
229+
"expires_in": 86399,
230+
"ext_expires_in": 86399,
231+
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im5PbzNaRHJPRFhFSzFq..."
230232
}
231233
```
232234

0 commit comments

Comments
 (0)