I have a .net core web app which was built using the built in template for using office365 account for authentication. The app is working perfectly. I have the clientID, client Secret, registered the app in azure, have the correct scopes in the appsettings json etc etc. I can log in using my office 365 account. What I cant do though is access the graph api as the logged in user.
All the examples talk about creating
GraphServiceClient graphClient = new GraphServiceClient(authProvider);
However none of these examples fit the visual studio template.
How can I access the graph api using the logged in user?
GraphServiceClient graphClient = new GraphServiceClient(authProvider)
? Are there any error messages? Please add more details. – Allen Wu