How to Authenticate a Microsoft SharePoint site using REST API from an iOS application

Sagar S. Kadookkunnan picture Sagar S. Kadookkunnan · Sep 6, 2011 · Viewed 10.5k times · Source

I came to know that we could use REST apis to get data from SharePoint sites. Also SharePoint supports REST from 2010 onwards. I got the API for listing the data and its details from SharePoint. It is "ListData.svc". Is there any other APIs similar to that using which we could authenticate our site. I tried it browser(listdata.svc) and before that I was logged in. If I am logged out and do the "siteUrl/_vti_bin/ListData.svc", I am not able to get the result, request getting timed out or sometimes it shows Webpage is not available. If anyone know how to SharePoint stuffs in iPhone application, please share something on the same.

Answer

Nikunj Jadav picture Nikunj Jadav · Sep 6, 2011

Read this: http://sharepointsemantics.com/2011/07/the-client-side-object-model-help-with-headless-authentication-in-sharepoint-online/ Make sure you read the linked articles written by Chris Johnson, following the information there should solve your authentication woes.

Sidenote, you pretty much HAVE to use forms authentication on the SharePoint end.