通过rest和ntlm或类似方式在线访问sharepoint

时间:2018-12-19 16:38:15

标签: rest sharepoint office365

例如,我们试图向共享点api询问问题

https://domain.sharepoint.com/_api/web/lists/GetByTitle'('List')'/Items

我们一直在尝试通过rest api访问我们的站点api,我们尝试了许多不同的方式,并且浏览了很多Microsoft文档,但似乎我们对如何对我们进行身份验证有误解,因为我们得到了“您没有有权执行此操作或访问此资源”

我们使用Office365和Sharepoint Online。我可以不以某种方式使用用户名密码吗,还是必须设计使用令牌请求等进行身份验证的流程?在那种情况下,我可以尝试一下以某种方式卷曲吗。

我们尝试使用curl进行模拟:

curl https://domain.sharepoint.com/_api/web/lists/GetByTitle'('List')'/Items -v --ntlm --negotiate -u username:password

0 个答案:

没有答案
相关问题