I need to use the SharePoint Rest API from a custom JavaScript application (outside from SharePoint).
How can I authenticate the user to use the Rest API.
I can not deploy a SharePoint app, I need those web services from my app.
I need to access to SharePoint on premise data.
1 Answer
It appears that such a scenario is now possible: https://msdn.microsoft.com/en-us/office/office365/howto/create-web-apps-using-CORS-to-access-files-in-Office-365

Disclaimer: I have not tested this scenario yet..
-
This is quite nice. Does it only work with Azure AD? What about "plain" 365, and on-premise?eirikb– eirikb2015-03-10 06:13:38 +00:00Commented Mar 10, 2015 at 6:13
-
You will need Azure AD or ADFS (on-premise AD) to create OAuth tickets for authentication.. without this, it will not know how to issue tickets and coordinate authentication among different parties..Shailen Sukul– Shailen Sukul2015-03-11 07:09:14 +00:00Commented Mar 11, 2015 at 7:09
TokenHelperin a provider-hosted app and then just route all REST requests through your provider-hosted app? I would imagine you could just pass requests