Skip to content

Commit ef0b502

Browse files
authored
Merge pull request #90180 from KingdomOfEnds/dt-aad
improved aad api search
2 parents e39d64d + 3278354 commit ef0b502

File tree

4 files changed

+33
-12
lines changed

4 files changed

+33
-12
lines changed

articles/digital-twins/how-to-configure-postman.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: alinast
66
ms.service: digital-twins
77
services: digital-twins
88
ms.topic: conceptual
9-
ms.date: 08/21/2019
9+
ms.date: 09/30/2019
1010
ms.author: v-adgera
1111
---
1212

@@ -30,11 +30,29 @@ Through the Postman client, solutions developers can specify the kind of HTTP re
3030

3131
Configure your Azure Active Directory app to use the OAuth 2.0 implicit grant flow.
3232

33-
1. Follow the steps in [our quickstart](./quickstart-view-occupancy-dotnet.md) to create an Azure AD application. Or, create a [native app using the legacy AAD blade](./how-to-use-legacy-aad.md).
33+
1. Open the **API permissions** pane for your app registration. Select **Add a permission** button. In the **Request API permissions** pane, select the **APIs my organization uses** tab, and then search for:
34+
35+
1. `Azure Digital Twins`. Select the **Azure Digital Twins** API.
3436

35-
1. Under **API permissions**, select **Add a permission**. Then, **Azure Digital Twins** under **APIs my organization uses**. If your search doesn't locate the API, search for **Azure Smart Spaces** instead. Then, select **Delegated Permissions**, **Read** > **Read.Write**, and **Add permission**.
37+
[![Search API or Azure Digital Twins](../../includes/media/digital-twins-permissions/aad-aap-search-api-dt.png)](../../includes/media/digital-twins-permissions/aad-aap-search-api-dt.png#lightbox)
38+
39+
1. Alternatively, search for `Azure Smart Spaces Service`. Select the **Azure Smart Spaces Service** API.
40+
41+
[![Search API for Azure Smart Spaces](../../includes/media/digital-twins-permissions/aad-app-search-api.png)](../../includes/media/digital-twins-permissions/aad-app-search-api.png#lightbox)
42+
43+
> [!IMPORTANT]
44+
> The Azure AD API name and ID that will appear depends on your tenant:
45+
> * Test tenant and customer accounts should search for `Azure Digital Twins`.
46+
> * Other Microsoft accounts should search for `Azure Smart Spaces Service`.
47+
48+
1. The selected API shows up as **Azure Digital Twins** in the same **Request API permissions** pane. Select the **Read (1)** drop down, and then select **Read.Write** checkbox. Select the **Add permissions** button.
49+
50+
[![Add API permissions](../../includes/media/digital-twins-permissions/aad-app-req-permissions.png)](../../includes/media/digital-twins-permissions/aad-app-req-permissions.png#lightbox)
51+
52+
1. Depending on your organization's settings, you might need to take additional steps to grant admin access to this API. Contact your administrator for more information. Once the admin access is approved, the **ADMIN CONSENT REQUIRED** column in the **API permissions** pane will show similar to the following for your APIs:
53+
54+
[![Add API permissions](../../includes/media/digital-twins-permissions/aad-app-admin-consent.png)](../../includes/media/digital-twins-permissions/aad-app-admin-consent.png#lightbox)
3655

37-
[![Azure Active Directory app registrations add api](../../includes/media/digital-twins-permissions/aad-app-req-permissions.png)](../../includes/media/digital-twins-permissions/aad-app-req-permissions.png#lightbox)
3856

3957
1. Select **Manifest** to open the application manifest for your app. Set *oauth2AllowImplicitFlow* to `true`.
4058

@@ -46,6 +64,9 @@ Configure your Azure Active Directory app to use the OAuth 2.0 implicit grant fl
4664

4765
1. Copy and keep the **Application ID** of your Azure Active Directory app. It's used in the steps that follow.
4866

67+
[![Azure Active Directory application ID](../../includes/media/digital-twins-permissions/aad-app-reg-app-id.png)](../../includes/media//digital-twins-permissions/aad-app-reg-app-id.png#lightbox)
68+
69+
4970
## Obtain an OAuth 2.0 token
5071

5172
[!INCLUDE [digital-twins-management-api](../../includes/digital-twins-management-api.md)]
@@ -69,7 +90,7 @@ Set up and configure Postman to obtain an Azure Active Directory token. Afterwar
6990
|---------|---------|
7091
| Grant Type | `Implicit` |
7192
| Callback URL | `https://www.getpostman.com/oauth2/callback` |
72-
| Auth URL | Use the **Authorization URL** from step 2 |
93+
| Auth URL | Use the **Authorization URL** from **step 2** |
7394
| Client ID | Use the **Application ID** for the Azure Active Directory app that was created or reused from the previous section |
7495
| Scope | Leave blank |
7596
| State | Leave blank |
@@ -87,8 +108,6 @@ Set up and configure Postman to obtain an Azure Active Directory token. Afterwar
87108
88109
1. Scroll down, and select **Use Token**.
89110
90-
<div id="multi"></div>
91-
92111
## Make a multipart POST request
93112
94113
After completing the previous steps, configure Postman to make an authenticated HTTP multipart POST request:
-466 Bytes
Loading

includes/digital-twins-permissions.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
author: dsk-2015
66
ms.service: digital-twins
77
ms.topic: include
8-
ms.date: 09/24/2019
8+
ms.date: 09/30/2019
99
ms.author: dkshir
1010
ms.custom: include file
1111
---
@@ -34,16 +34,18 @@
3434

3535
1. Open the **API permissions** pane for your app registration. Select **Add a permission** button. In the **Request API permissions** pane, select the **APIs my organization uses** tab, and then search for:
3636

37-
1. **Azure Digital Twins**. Select the **Azure Digital Twins** API.
37+
1. `Azure Digital Twins`. Select the **Azure Digital Twins** API.
3838

3939
[![Search API or Azure Digital Twins](./media/digital-twins-permissions/aad-aap-search-api-dt.png)](./media/digital-twins-permissions/aad-aap-search-api-dt.png#lightbox)
4040

41-
1. Alternatively, search for **Azure Smart Spaces**. Select the **Azure Smart Spaces Service** API.
41+
1. Alternatively, search for `Azure Smart Spaces Service`. Select the **Azure Smart Spaces Service** API.
4242

4343
[![Search API for Azure Smart Spaces](./media/digital-twins-permissions/aad-app-search-api.png)](./media/digital-twins-permissions/aad-app-search-api.png#lightbox)
4444

45-
> [!NOTE]
46-
> The exact name that will appear when searched may vary depending on which Azure tenant you belong to.
45+
> [!IMPORTANT]
46+
> The Azure AD API name and ID that will appear depends on your tenant:
47+
> * Test tenant and customer accounts should search for `Azure Digital Twins`.
48+
> * Other Microsoft accounts should search for `Azure Smart Spaces Service`.
4749
4850
1. The selected API shows up as **Azure Digital Twins** in the same **Request API permissions** pane. Select the **Read (1)** drop down, and then select **Read.Write** checkbox. Select the **Add permissions** button.
4951

17.3 KB
Loading

0 commit comments

Comments
 (0)