0

We know that we can create both SharePoint hosted app and high trust provider hosted app in on-prem i.e. non-cloud environment. But in which scenario we should for high trust provider hosted app and in which scenario we should go for SharePoint hosted app?

My question is not PHS vs SHA, rather Hightrust PHS vs SHA, when both can be deployed in non-cloud environment.

Is there any specific thumb rule for this choice?

2 Answers 2

0

The main difference between different types of apps lies in their hosting pattern. If you wanna have your hosting and app deployment in on-premise SharePoint 2013 server only, then you can go with SharePoint-Hosted Apps.

For your custom web parts , you can go with SharePoint hosted app in which case you have to create app-domain(using Power-shell) and add a app prefix in central admin & then register your app in app-domain.

Provider-hosted comes in two flavors viz a) High trust Provider-hosted app where you need to create a certificate for creating the trust between your remote web application and SharePoint server and then you can register and publish your app in SharePoint by creating Client ID & Client Secret b) Azure based Provider-hosted app where you will need a tenant account on windows azure portal (www.windowsazure.com) & SharePoint online account (you can have free account also for 30 days). Here , you can download the publish profile of azure website and import that while publishing your application. Just validate the connection with proper settings (Service URL , Destination URL etc) and your app will be hosted in Azure website.https://social.msdn.microsoft.com/Forums/officeapps/en-US/06c183eb-68bd-4f26-8696-bf3434105478/provider-hosted-apps-vs-sharepoint-hosted-apps?forum=appsforsharepoint

Also check this one Is there a difference between a Sharepoint Hosted App and a Cloud Hosted App?

2
  • My question is not PHS vs SHA, rather Hightrust PHS vs SHA, when both can be deployed in non-cloud environment.
    – user17251
    Commented Jul 27, 2015 at 2:38
  • till now I haven't receive my answer.
    – user17251
    Commented Jul 28, 2015 at 13:13
0

Go for PHS if you want to write back end code. e.g using CSOM. Here you can use permission elevation or impersonation.

If you don't want to write back end code, only jsom or rest is suitable, also no permission elevation is required go for SHA

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.