问题描述
我有一个使用 SharePoint Foundation 2013 构建的网站.那里有许多列表和库.
I have a website that is built using SharePoint Foundation 2013.I have a number of list and libraries there.
例如:我需要开发一个 android 应用程序来显示 SharePoint 列表项/数据.使用 SharePoint 2013 Rest API,我们可以从 SharePoint 中获取数据.
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.
但问题是身份验证.我在 SharePoint Foundation 2013 中使用基于 Windows NTLM 声明的身份验证.
But The problem is the authentication. I'm using Windows NTLM claim based authentication in the SharePoint foundation 2013.
如何在 android 应用程序中验证我的 SharePoint 网站并获取 SharePoint 数据并将其显示在 android 应用程序中?
How can I authenticate my SharePoint site inside the android application and get the SharePoint data and displays it in the android app?
有人知道解决办法吗?
推荐答案
您需要在 Android 上使用 NTLM 身份验证库.
You need to use NTLM Authentication library on Android.
看看这个:http://danhounshell.com/blog/android-using-ntlm-身份验证与httpclient/
您可以使用此位置可用的 JAR 向 NTLM 发出 HTTP 请求:
You can use the JAR available at this location to make HTTP requests with NTLM:
这篇关于如何验证来自 Android 应用程序的 SharePoint REST 调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!