1

I would like to make an provided-hosted app for on premise server. I publish this type of application on azure cloud and I've tried to open it in SharePoint on-Premise server and in SharePoint Online. SharePoint Online open this app correctly. Unfortunately SharePoint on-Premise return "401 UNAUTHORIZED" error when it try to connect to azure website. I know that this error is returned, when SharePoint is try to open a website which has "SharePointContextFilter" attribute in controller (It is a MVC SharePoint application). Do you know, how can I open this app on on-premise SharePoint?

1 Answer 1

1

You need configure low trust authentication model for on-premise environment.

jansenbe had shared the sample script in github below.

https://github.com/SharePoint/PnP-Tools/tree/master/Scripts/SharePoint.LowTrustACS.Configuration

2
  • So it is possible to create a server-side application on an Office 365 tenant and use this application on SharePoint on-premise server? Sorry for my question but I read somewhere that only client-code are allowed.
    – krawat10
    Oct 25, 2017 at 14:40
  • You should not use server object model in SharePoint add-in, you could check the thread here: docs.microsoft.com/en-us/sharepoint/dev/general-development/…
    – Lee
    Oct 26, 2017 at 1:40

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.