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
#Customer intent: As an application developer, I want to know how to set up OpenId Connect authentication in a web application built using Node.js with Express.
21
21
ms.collection: M365-identity-device-management
22
22
---
23
23
24
-
# Build a multitenant daemon that uses the Microsoft identity platform endpoint
24
+
# Tutorial: Build a multitenant daemon that uses the Microsoft identity platform endpoint
25
25
26
26
In this tutorial, you learn how to use the Microsoft identity platform to access the data of Microsoft business customers in a long-running, non-interactive process. The sample daemon uses the [OAuth2 client credentials grant](v2-oauth2-client-creds-grant-flow.md) to acquire an access token. The daemon then uses the token to call [Microsoft Graph](https://graph.microsoft.io) and access organizational data.
27
27
28
+
> [!div class="checklist"]
29
+
> * Integrate a daemon app with the Microsoft identity platform
30
+
> * Grant application permissions directly to the app by an admin
31
+
> * Get an access token to call the Microsoft Graph API
32
+
> * Call the Microsoft Graph API.
33
+
34
+
If you don’t have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
35
+
28
36
The app is built as an ASP.NET MVC application. It uses the OWIN OpenID Connect middleware to sign in users.
29
37
30
38
The "daemon" component in this sample is an API controller, `SyncController.cs`. When the controller is called, it pulls in a list of users in the customer's Azure Active Directory (Azure AD) tenant from Microsoft Graph. `SyncController.cs` is triggered by an AJAX call in the web application. It uses the [Microsoft Authentication Library (MSAL) for .NET](msal-overview.md) to acquire an access token for Microsoft Graph.
Or [download the sample in a zip file](https://github.com/Azure-Samples/ms-identity-aspnet-daemon-webapp/archive/master.zip).
59
67
60
-
## Register the sample application with your Azure AD tenant
68
+
## Register your application
61
69
62
-
This sample has one project. To register it, you can either:
70
+
This sample has one project. To register the application with your Azure AD tenant, you can either:
63
71
64
-
- Follow the steps in [Register the sample with your Azure Active Directory tenant](#register-the-sample-application-with-your-azure-ad-tenant) and [Configure the sample to use your Azure AD tenant](#choose-the-azure-ad-tenant).
72
+
- Follow the steps in [Register the sample with your Azure Active Directory tenant](#register-your-application) and [Configure the sample to use your Azure AD tenant](#choose-the-azure-ad-tenant).
65
73
- Use PowerShell scripts that:
66
74
-*Automatically* create the Azure AD applications and related objects (passwords, permissions, dependencies) for you.
67
75
- Modify the Visual Studio projects' configuration files.
@@ -234,7 +242,10 @@ Visual Studio will publish the project and automatically open a browser to the p
234
242
1. Save the configuration.
235
243
1. Add the same URL in the list of values of the **Authentication** > **Redirect URIs** menu. If you have multiple redirect URLs, make sure that there's a new entry that uses the app service's URI for each redirect URL.
236
244
237
-
## Community help and support
245
+
## Clean up resources
246
+
When no longer needed, delete the app object that you created in the [Register your application](#register-your-application) step. To remove the application, follow the instructions in [Remove an application authored by you or your organization](quickstart-remove-app.md#remove-an-application-authored-by-you-or-your-organization).
247
+
248
+
## Get help
238
249
239
250
Use [Stack Overflow](http://stackoverflow.com/questions/tagged/msal) to get support from the community.
240
251
Ask your questions on Stack Overflow first, and browse existing issues to see if someone has asked your question before.
0 commit comments