|
15 | 15 |
|
16 | 16 | 1. In the [Azure portal](https://portal.azure.com), open **Azure Active Directory** from the left pane, and then open the **App registrations** pane. Select the **New registration** button.
|
17 | 17 |
|
18 |
| -  |
| 18 | + [](./media/digital-twins-permissions/aad-app-register.png#lightbox) |
19 | 19 |
|
20 | 20 | 1. Give a friendly name for this app registration in the **Name** box. Under the **Redirect URI (optional)** section, choose **Public client (mobile & desktop)** in the drop-down on the left, and enter `https://microsoft.com` in the textbox on the right. Select **Register**.
|
21 | 21 |
|
22 |
| -  |
| 22 | + [](./media/digital-twins-permissions/aad-app-reg-create.png#lightbox) |
23 | 23 |
|
24 | 24 | 1. To make sure that [the app is registered as a *native app*](https://docs.microsoft.com/azure/active-directory/develop/scenario-desktop-app-registration), open the **Authentication** pane for your app registration, and scroll down in that pane. In the **Default client type** section, choose **Yes** for **Treat application as a public client**.
|
25 | 25 |
|
26 |
| -  |
| 26 | + [](./media/digital-twins-permissions/aad-app-default-native.png#lightbox) |
27 | 27 |
|
28 | 28 | 1. Open the **Overview** pane of your registered app, and copy the values of following entities to a temporary file. You'll use these values to configure your sample application in the following sections.
|
29 | 29 |
|
30 | 30 | - **Application (client) ID**
|
31 | 31 | - **Directory (tenant) ID**
|
32 | 32 |
|
33 |
| -  |
| 33 | + [](./media/digital-twins-permissions/aad-app-reg-app-id.png#lightbox) |
34 | 34 |
|
35 | 35 | 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:
|
36 | 36 |
|
37 | 37 | 1. **Azure Digital Twins**. Select the **Azure Digital Twins** API.
|
38 | 38 |
|
39 |
| -  |
| 39 | + [](./media/digital-twins-permissions/aad-aap-search-api-dt.png#lightbox) |
40 | 40 |
|
41 | 41 | 1. Alternatively, search for **Azure Smart Spaces**. Select the **Azure Smart Spaces Service** API.
|
42 | 42 |
|
43 |
| -  |
| 43 | + [](./media/digital-twins-permissions/aad-app-search-api.png#lightbox) |
44 | 44 |
|
45 | 45 | > [!NOTE]
|
46 | 46 | > The exact name that will appear when searched may vary depending on which Azure tenant you belong to.
|
47 | 47 |
|
48 | 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 | 49 |
|
50 |
| -  |
| 50 | + [](./media/digital-twins-permissions/aad-app-req-permissions.png#lightbox) |
51 | 51 |
|
52 | 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 | 53 |
|
54 |
| -  |
| 54 | + [](./media/digital-twins-permissions/aad-app-admin-consent.png#lightbox) |
55 | 55 |
|
0 commit comments