【问题标题】:How can I authenticate SharePoint REST calls from Android App?如何验证来自 Android 应用程序的 SharePoint REST 调用?
【发布时间】:2014-08-31 15:23:30
【问题描述】:

我有一个使用 SharePoint Foundation 2013 构建的网站。那里有许多列表和库。

例如: 我需要开发一个 android 应用程序来显示 SharePoint 列表项/数据。 使用 SharePoint 2013 Rest API,我们可以得到 SharePoint 的数据表单。

但问题是身份验证。我在 SharePoint Foundation 2013 中使用基于 Windows NTLM 声明的身份验证。

如何在 android 应用程序中验证我的 SharePoint 网站并获取 SharePoint 数据并将其显示在 android 应用程序中?

有人知道解决办法吗?

【问题讨论】:

    标签: android rest sharepoint sharepoint-2010 sharepoint-2013


    【解决方案1】:

    您需要在 Android 上使用 NTLM 身份验证库。

    看看这个: http://danhounshell.com/blog/android-using-ntlm-authentication-with-httpclient/

    您可以使用此位置提供的 JAR 通过 NTLM 发出 HTTP 请求:

    http://jcifs.samba.org/

    【讨论】:

      【解决方案2】:

      我们使用第 3 方库 JShare。该库支持 NTLM 并适用于 Java 和 Android

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-05-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-01-08
        • 2013-01-06
        • 2014-01-26
        相关资源
        最近更新 更多