How can I authenticate SharePoint REST calls from Android App?

社会主义新天地 提交于 2020-01-14 06:39:21

问题


I have a website that is built using SharePoint Foundation 2013.I have a number of list and libraries there.

For Example: I need to develop a android application to show the SharePoint List Items/Data. Using the SharePoint 2013 Rest API, We can get the Data form SharePoint.

But The problem is the authentication. I'm using Windows NTLM claim based authentication in the SharePoint foundation 2013.

How can I authenticate my SharePoint site inside the android application and get the SharePoint data and displays it in the android app?

Does anyone know the solution?


回答1:


You need to use NTLM Authentication library on Android.

Check out this: http://danhounshell.com/blog/android-using-ntlm-authentication-with-httpclient/

You can use the JAR available at this location to make HTTP requests with NTLM:

http://jcifs.samba.org/




回答2:


We use 3rd party library JShare. This library supports NTLM and works with Java and Android



来源:https://stackoverflow.com/questions/24673373/how-can-i-authenticate-sharepoint-rest-calls-from-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!