Oct 25 2017 05:44 AM - edited Oct 25 2017 05:47 AM
Oct 25 2017 05:44 AM - edited Oct 25 2017 05:47 AM
Say I have an SPFx web part that needs to call a (to be created) REST API that's part of a web app hosted in Azure (middleware). This middleware in turn needs to call the Microsoft Graph as the current user. The middleware might make this call right away when receiving a request from the SPFx web part OR it might make multiple such calls in a timer-job-like fashion over a longer period of time. How would I build this?
The question is similar to this one: Pass user Identity from SPFX Webpart to Azure function
But I need to go this one step further delegating the user identity to Microsoft Graph, e.g. to get the tasks for the current user, the files shared with the current user or anything from the /me endpoint. The middleware then does some data aggregation, but always for a specific users's data.
I'm not sure which technical means and/or OAuth flows are suitable to reach this goal.
Oct 31 2017 01:27 PM