From the course: Microsoft Entra ID for .NET Developers

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Call Microsoft Graph

Call Microsoft Graph

- [Instructor] At this point, I have an app registration with the following consents. I want to now extend the application that I've been working on, which currently allows me to sign in a user and make use of this Application.Read.All consent that we've given, and read the app registrations that are in my Entra ID tenant. How do I do that? Okay, let's make one other change in portal.azure.com in the Entra ID section before we dive into code. Go into Certificates & secrets, and in order to request an access token, you are going to need a client secret. This is part of the OIDC protocol, so give it a reasonable name and an expiration date, and click on Add. Once you are shown this value, go ahead and copy paste it. You will be shown this value only once, so make sure you get this right. Now let's dive back into the working application we've been building so far in this course, and first, let's go into appsettings.json. And here, I'm going to add a few details. My appsettings.json needs…

Contents