Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have been banging my head against a wall on this problem for weeks now

Warning and Disclaimer .. I have very little JavaScript experience when it comes to REST / Web Services

  • I have an on premises SharePoint 2013 server running on a corporate AD domain
  • SharePoint authentication is Claims based NTLM
  • I have a mobile phone HTML5 app

I want to basically make SharePoint REST (or Web Service) calls from the phone app but I cannot work out how to pass over any NTLM credentials.

Is this even possible natively from JavaScript, or would I have to write my own anonymous Web Services and use the .NET Managed OM to proxy all of my requests around?

share|improve this question

1 Answer

Martin,

The MSDN is quite full of client authentication, have you seen this one http://msdn.microsoft.com/en-us/library/jj870858.aspx#BuildMobileAppsInSharePoint2013ForNonWindowsPhone_AuthenticatingNonWindowsAppForSharePoint and http://www.microsoft.com/resources/msdn/en-us/office/media/video/video.html?cid=sdc&from=mscomsdc&VideoID=b1e7c9c5-0f62-4a78-bb7b-8e283c86145c

share|improve this answer
Those all include C# code (which you can't execute on an iPhone / Android device). I was thinking of building a Web Service to generate the cookie using OAuthenticator .. but apparently the cookie is URL based so the JavaScript page needs to be on the same URL as the Web Service (again .. not going to happen) – Martin Hatch Apr 8 at 9:22
Also the ODataAuthenticator class referenced in that sample is part of the SharePoint SDK for Windows Phone .. so how it would execute on iPhone / Droid is confusing at best – Martin Hatch Apr 8 at 9:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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