Forum Discussion
Heisenberg
Mar 29, 2019Copper Contributor
Connect to SharePoint Online from ADAL protected MVC web app with logged in user's identity
Hi, We are trying to surface the results of our SharePoint Online search in an ADAL protected MVC web app. Looking at the SharePoint Online PnP Core CSOM extensions (OfficeDevPnP.Core namespa...
- Mar 29, 2019
Does this sample code still work?
https://github.com/SharePoint/PnP/blob/master/Samples/BusinessApps.O365ProjectsApp/BusinessApps.O365ProjectsApp.Infrastructure/SPORemoteActions.cs
Using Client ID and Client Secret of the application to get the context?
Beau Cameron
Mar 29, 2019MVP
Does this sample code still work?
https://github.com/SharePoint/PnP/blob/master/Samples/BusinessApps.O365ProjectsApp/BusinessApps.O365ProjectsApp.Infrastructure/SPORemoteActions.cs
Using Client ID and Client Secret of the application to get the context?
Heisenberg
Mar 29, 2019Copper Contributor
Beau Cameron Yep, that did it! Thanks for your reply.
Actually it was the MicrosoftGraphHelper.GetAccessTokenForCurrentUser method where the magic was - we just weren't getting the right access tokens.