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
description: "This sample demonstrates a ASP.NET Core Web App calling the Microsoft Graph"
12
12
---
13
13
14
-
# # Enable your ASP.NET Core web app to sign in users and call Microsoft Graph with the Microsoft identity platform
14
+
# Enable your ASP.NET Core web app to sign in users and call Microsoft Graph with the Microsoft identity platform
15
15
16
16
1.[Overview](#overview)
17
17
1.[Scenario](#scenario)
@@ -40,7 +40,6 @@ This sample demonstrates an ASP.NET Core web app that calls the Microsoft Graph
40
40
41
41

42
42
43
-
44
43
## Prerequisites
45
44
46
45
- Either [Visual Studio](https://visualstudio.microsoft.com/downloads/) or [Visual Studio Code](https://code.visualstudio.com/download) and [.NET Core SDK](https://www.microsoft.com/net/learn/get-started)
@@ -192,7 +191,7 @@ Open the project in your IDE (like Visual Studio or Visual Studio Code) to confi
192
191
193
192
1. In this aspnetcore web project, first the packages `Microsoft.Identity.Web` and `Microsoft.Identity.Web.UI` were added from NuGet. These libraries are used to simplify the process of signing-in a user and acquiring tokens for Microsoft Graph.
194
193
195
-
1.In the **Startup.cs** file :
194
+
1.Staring with the **Startup.cs** file :
196
195
197
196
- at the top of the file, the following two using directives were added:
198
197
@@ -357,5 +356,4 @@ To provide feedback on or suggest features for Azure Active Directory, visit [Us
357
356
358
357
Ifyou'd like to contribute to this sample, see [CONTRIBUTING.MD](/CONTRIBUTING.md).
359
358
360
-
Thisprojecthasadoptedthe [MicrosoftOpenSourceCodeofConduct](https://opensource.microsoft.com/codeofconduct/). For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
361
-
359
+
Thisprojecthasadoptedthe [MicrosoftOpenSourceCodeofConduct](https://opensource.microsoft.com/codeofconduct/). For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
Copy file name to clipboardExpand all lines: 2-WebApp-graph-user/2-1-Call-MSGraph/Views/Home/Index.cshtml
+12-8
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,15 @@
2
2
ViewData["Title"] ="Home Page";
3
3
}
4
4
5
-
<h1>
6
-
Integrating Azure AD V2 into an ASP.NET Core web app and calling the Microsoft Graph API on behalf of the user
7
-
</h1>
8
-
<p>
9
-
This sample shows how to build a .NET Core 3.1 MVC Web app that uses OpenID Connect to sign in users. Users can use personal accounts (including outlook.com, live.com, and others) as well as work and school accounts from any company or organization that has integrated with Azure Active Directory. It leverages the ASP.NET Core OpenID Connect middleware.
0 commit comments