无法获取FormDigestValue来验证REST API [英] Cannot Get FormDigestValue to Authenticate REST API

查看:115
本文介绍了无法获取FormDigestValue来验证REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在使用Postman尝试获取FormDigestValue以验证对Sharepoint API的其他请求。 


我找到了


谢谢


最好的问候


Hello,

I am using Postman to try and get the FormDigestValue in order to authenticate other requests to the Sharepoint API. 

I found this technet forum that never found a solution to the problem.

I followed this tutorial exactly to get the authentication, but it returns a 403 Forbidden error.



The end goal for me is to upload a .json document to my Sharepoint Site's document library using Python 2.7. But I need to get the FormDigestValue to authenticate other requests. 

Any ideas on this?

Is there a setting I need to allow in the Site Collection settings or something? Thanks in advance.

解决方案

Hi Jeff,

Tested the /_api/contextinfo in SharePoint On-Premise Environment and it can return form digest value like capture shown:

If you are using SharePoint Online, you will need to follow this example:

SharePoint Online remote authentication

Thanks

Best Regards


这篇关于无法获取FormDigestValue来验证REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆