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
[](media/how-to-use-swagger/swagger-management-top-img.png#lightbox)
[](media/how-to-use-swagger/swagger-management-models-img.png#lightbox)
45
45
46
46
You can select each listed object model for a more detailed summary of key attributes.
[](media/how-to-use-swagger/swagger-management-model-img.png#lightbox)
49
49
50
50
The generated Swagger object models are convenient to see all available Azure Digital Twins [objects and APIs](./concepts-objectmodel-spatialgraph.md). Developers can use this resource when they build solutions on Azure Digital Twins.
51
51
@@ -59,7 +59,7 @@ Each listed endpoint also includes the required request information, such as the
[](media/how-to-use-swagger/swagger-management-try-img.png#lightbox)
73
73
74
74
Expand that section to bring up input fields for each required and optional parameter. Enter the correct values, and select **Execute**.
[](media/how-to-use-swagger/swagger-management-tried-img.png#lightbox)
77
77
78
78
After you execute the test, you can validate the response data.
79
79
80
80
## Swagger response data
81
81
82
82
Each listed endpoint also includes response body data to validate your development and tests. These examples include the status codes and JSON you want to see for successful HTTP requests.
The examples also include error codes to help debug or improve failing tests.
87
87
@@ -92,7 +92,9 @@ The examples also include error codes to help debug or improve failing tests.
92
92
93
93
1. Follow the steps in [this quickstart](https://docs.microsoft.com/azure/active-directory/develop/quickstart-v1-integrate-apps-with-azure-ad) to create and configure an Azure AD application. Alternatively, you can reuse an existing app registration.
94
94
95
-
1. Add the following reply url to the app registration:
95
+
1. Add the following **Redirect url** to your Azure AD app registration:
96
+
97
+
[](media/how-to-use-swagger/swagger-aad-redirect-url-registration.png#lightbox)
96
98
97
99
```plaintext
98
100
https://YOUR_SWAGGER_URL/ui/oauth2-redirect-html
@@ -101,7 +103,7 @@ The examples also include error codes to help debug or improve failing tests.
101
103
|---------|---------|---------|
102
104
| YOUR_SWAGGER_URL | Your Management REST API documentation URL found in the portal | `https://yourDigitalTwinsName.yourLocation.azuresmartspaces.net/management/swagger` |
103
105
104
-
1. Copy the ID of your Azure AD app.
106
+
1. Copy the **Client ID** of your Azure AD app.
105
107
106
108
After completing the Azure Active Directory registration:
Copy file name to clipboardExpand all lines: articles/digital-twins/security-authenticating-apis.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ manager: bertvanhoof
7
7
ms.service: digital-twins
8
8
services: digital-twins
9
9
ms.topic: conceptual
10
-
ms.date: 09/30/2019
10
+
ms.date: 11/22/2019
11
11
---
12
12
13
13
# Connect to and authenticate with APIs
14
14
15
-
Azure Digital Twins uses Azure Active Directory (Azure AD) to authenticate users and protect applications. Azure AD supports authentication for a variety of modern architectures. All of them are based on the industry-standard protocols OAuth 2.0 or OpenID Connect. In addition, developers can use Azure AD to build single-tenant and line-of-business (LOB) applications. Developers also can use Azure AD to develop multitenant applications.
15
+
Azure Digital Twins uses Azure Active Directory (Azure AD) to authenticate users and protect applications. Azure AD supports authentication for a variety of modern architectures. All of them are based on the industry-standard protocols OAuth 2.0 or OpenID Connect. In addition, developers can use Azure AD to build single-tenant and line-of-business (LOB) applications. Developers also can use Azure AD to develop [multitenant applications](how-to-multitenant-applications.md).
16
16
17
17
For an overview of Azure AD, visit the [fundamentals page](https://docs.microsoft.com/azure/active-directory/fundamentals/) for step-by-step guides, concepts, and quickstarts.
0 commit comments