You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-secure-device-code.md
+27-24Lines changed: 27 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: How to secure input constrained device with Azure AD and Azure Maps REST APIs
2
+
title: How to secure an input constrained device using Azure AD and Azure Maps REST API
3
3
titleSuffix: Azure Maps
4
-
description: How to configure a browser-less application which supports sign-in to Azure AD and calls Azure Maps REST APIs.
4
+
description: How to configure a browser-less application that supports sign-in to Azure AD and calls Azure Maps REST API.
5
5
author: eriklindeman
6
6
ms.author: eriklind
7
7
ms.date: 06/12/2020
@@ -10,52 +10,48 @@ ms.service: azure-maps
10
10
services: azure-maps
11
11
---
12
12
13
-
# Secure an input constrained device with Azure AD and Azure Maps REST APIs
13
+
# Secure an input constrained device by using Azure Active Directory (Azure AD) and Azure Maps REST APIs
14
14
15
-
This guide discusses how to secure public applications or devices that cannot securely store secrets or accept browser input. These types of applications fall under the category of IoT or internet of things. Some examples of these applications may include: Smart TV devices or sensor data emitting applications.
15
+
This guide discusses how to secure public applications or devices that can't securely store secrets or accept browser input. These types of applications fall under the internet of things (IoT) category. Examples include Smart TVs and sensor data emitting applications.
2. Enter a **Name**, choose **Accounts in this organizational directory only** as the **Supported account type**. In **Redirect URIs**, specify **Public client / native (mobile & desktop)** then add `https://login.microsoftonline.com/common/oauth2/nativeclient` to the value. For more details please see Azure AD [Desktop app that calls web APIs: App registration](../active-directory/develop/scenario-desktop-app-registration.md). Then **Register** the application.
32
+
2. Enter a **Name**, choose **Accounts in this organizational directory only** as the **Supported account type**. In **Redirect URIs**, specify **Public client / native (mobile & desktop)** then add `https://login.microsoftonline.com/common/oauth2/nativeclient` to the value. For more information, see Azure AD [Desktop app that calls web APIs: App registration]. Then **Register** the application.
33
33
34
-
> [!div class="mx-imgBorder"]
35
-
> 
34
+
:::image type="content" source="./media/azure-maps-authentication/devicecode-app-registration.png" alt-text="A screenshot showing the settings used to register an application.":::
36
35
37
-
3. Navigate to **Authentication** and enable **Treat application as a public client**. This will enable device code authentication with Azure AD.
36
+
3. Navigate to **Authentication** and enable **Treat application as a public client** to enable device code authentication with Azure AD.
38
37
39
-
> [!div class="mx-imgBorder"]
40
-
> 
38
+
:::image type="content" source="./media/azure-maps-authentication/devicecode-public-client.png" alt-text="A screenshot showing the advanced settings used to specify treating the application as a public client.":::
41
39
42
40
4. To assign delegated API permissions to Azure Maps, go to the application. Then select **API permissions** > **Add a permission**. Under **APIs my organization uses**, search for and select **Azure Maps**.
43
41
44
-
> [!div class="mx-imgBorder"]
45
-
> 
42
+
:::image type="content" source="./media/how-to-manage-authentication/app-permissions.png" alt-text="A screenshot showing where you request API permissions.":::
46
43
47
44
5. Select the check box next to **Access Azure Maps**, and then select **Add permissions**.
48
45
49
-
> [!div class="mx-imgBorder"]
50
-
> 
46
+
:::image type="content" source="./media/how-to-manage-authentication/select-app-permissions.png" alt-text="A screenshot showing where you specify the app permissions you require.":::
51
47
52
-
6. Configure Azure role-based access control (Azure RBAC) for users or groups. See [Grant role-based access for users to Azure Maps](#grant-role-based-access-for-users-to-azure-maps).
48
+
6. Configure Azure role-based access control (Azure RBAC) for users or groups. For more information, see [Grant role-based access for users to Azure Maps].
53
49
54
-
7. Add code for acquiring token flow in the application, for implementation details see [Device code flow](../active-directory/develop/scenario-desktop-acquire-token-device-code-flow.md). When acquiring tokens, reference the scope: `user_impersonation`which was selected on earlier steps.
50
+
7. Add code for acquiring token flow in the application, for implementation details see [Device code flow]. When acquiring tokens, reference the scope: `user_impersonation`that was selected on earlier steps.
55
51
56
52
> [!Tip]
57
53
> Use Microsoft Authentication Library (MSAL) to acquire access tokens.
58
-
> See recommendations on [Desktop app that calls web APIs: Code configuration](../active-directory/develop/scenario-desktop-app-configuration.md)
54
+
> For more information, see [Desktop app that calls web APIs: Code configuration] in the activedirectory documentation.
59
55
60
56
8. Compose the HTTP request with the acquired token from Azure AD, and sent request with a valid HTTP client.
0 commit comments