pnp/PnP

Inovke Secured Web API from remote event receiver

rajeshpatil74 opened this issue · 0 comments

I have a Remote Event Receiver developed/deployed for SharePoint online using hosted-addin. This add-in can be deployed in different sharepoint online enviroments. When item added event gets triggered another list gets updated.

To update the list with data, a WebAPI gets invoked which is secured using OAuth (registered in Azure). How i can invoke the WebAPI to get the needed data.

I am able to get the context of sharepoint to manage the list data and access token is also available. Can this token be passed somehow to get the API authericated and how ??

I guess the token available is for sharepoint and not for the webapi.
How this can be made working??