I want to add a custom webapi service to sharepoint 2013. What I did so far is
- Create the webapi application
- Added an application in IIS
- Imported the webapi application
Tests are succesfull to get the data (from SP to service application), but now I would like to get the current logged in user from the SP context, in the service application. Is this possible? I tried using this SP contextprovider, used for apps, but I always receive a access denied error.
Any solutions for this?
FYI... I Can't just send the current user, because that would be a security threat