Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
Discussion options

You must be logged in to vote

Hi magicalKhachapuri, Microsoft Graph is called during the Microsoft Identity Platform connected service integration and Microsoft Graph is already added in the Program.cs with the following code:
.AddMicrosoftGraph(builder.Configuration.GetSection("MicrosoftGraph"))

All you need is to include GraphServiceClient in the Controller, so that you can make many other Graph calls moving forward.
There is a brief explanation in this sample you may go through for your upcoming Graph calls: https://learn.microsoft.com/en-us/samples/azure-samples/active-directory-aspnetcore-webapp-openidconnect-v2/active-directory-aspnetcore-webapp-openidconnect-v2/#process-the-cae-challenge-from-microsoft-graph

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@magicalKhachapuri
Comment options

Answer selected by aycabas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants