Once we have required packages are in place, we can call “Microsoft Graph” APIs.

We need to override the method – AuthenticateRequestAsync(HttpRequestMessage request) from IAuthenticationProvider interface – which adds the “Azure Access Token” to header of HttpRequestMessage request object. We discussed this in our last article.

To achieve this we will add new class in our solution which will be derived from IAuthenticationProvider as