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
ClientIdandClientSecretby following the steps provided in the Configure an Azure AD app to connect to Microsoft 365 page and keep theClientIdandClientSecretto perform the next steps. - Open the
Package Manager Consolein the project and run the following commands with your generatedClientIdandClientSecretvalues.
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
Calendarpage the Scheduler loaded with the Outlook appointments.