Forum Discussion
SharePoint 2013 on-premise REST APIs authentication from web application hosted outside SharePoint
Your .Net web application will need to use the TokenHelper.cs classes to request an access token. That access token must be sent in the Authorization header.
Unless you have already configured your farm to connect with an O365 tenant, you should use the S2S methods in TokenHelper.
I believe tokenhelper will be useful in SharePoint Online scenarios however, as mentioned we are completely working on SharePoint On-premise.
So, both SharePoint and .Net web application reside on-premise however hosted separately in different envrionments in on-premise.
- Mar 02, 2017
The S2S methods are for on-prem.
- Devendra SinghMar 02, 2017Copper Contributor
Believe you mean establishing a server to server trust?
In case there are any blogs/articles that provide additioanl details on how to setup this for an on-premise scenarios will be helpful.
- Tom KostiainenNov 06, 2018Copper Contributor
Devendra Singh did you eventually solve this somehow?