The application explains how to get events from Office 365 Outlook and display it in ASP.NET Core Scheduler using Microsoft Graph API and Azure AD.
- Visual Studio 2019
- .NET Core 5.0
- Checkout this project to a location in your disk.
- Open the solution file using the
Visual Studio 2019
. - Restore the NuGet packages by rebuilding the solution.
- Generate the
ClientId
andClientSecret
by following the steps provided in the Configure an Azure AD app to connect to Microsoft 365 page and keep theClientId
andClientSecret
to perform the next steps. - Open the
Package Manager Console
in the project and run the following commands with your generatedClientId
andClientSecret
values.
dotnet user-secrets init
dotnet user-secrets set "AzureAd:ClientId" "YOUR_APP_ID"
dotnet user-secrets set "AzureAd:ClientSecret" "YOUR_APP_SECRET"
- Sign in to your Microsoft 365 account.
- Run the project the permission prompt will be opened. Click the Accept button.
- The home page of the project will be opened. Navigate to the
Calendar
page the Scheduler loaded with the Outlook appointments.