POSTMAN中的REST API身份验证 - SharePoint Online [英] REST API Authentication In POSTMAN - SharePoint Online

查看:355
本文介绍了POSTMAN中的REST API身份验证 - SharePoint Online的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用REST API通过REST API对SharePoint Online中的列表进行身份验证。


< p style ="padding-right:0px; line-height:inherit; font-family:'Segoe UI',Segoe,'Helvetica Neue','Lucida Grande',Arial,sans-serif;字体大小:15px;垂直-align:baseline; clear:both; color:#444444">
例如,我网站的URL看起来像这样:



https://mytenantname.sharepoint.com/sites/mysitecollection/_api/web/lists



当我在浏览器中访问REST API的URL时,我可以使用我的SharePoint Online凭据访问它。我登录并返回JSON中的列表列表。



当我尝试在POSTMAN中使用GET时,它失败并显示"Access Denied"或者显示以下错误:



{" error_description":"抛出类型'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException'的异常。"}




我应该在POSTMAN中选择哪种授权类型来正确使用SharePoint Online进行身份验证?





先谢谢

解决方案

嗨Patrick,


您可以使用NTLM / Basic身份验证模式进行检查。




I am trying to authenticate with the REST API for a list in SharePoint Online using POSTMAN.

For example, the URL for my site looks something like this:

https://mytenantname.sharepoint.com/sites/mysitecollection/_api/web/lists

When I go to the URL for the REST API in browser I can access it fine using my SharePoint Online credentials. I log in and it returns the list of lists in JSON.

When I try to use a GET in POSTMAN it fails with "Access Denied" or it shows the following error:

{"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."}

Which Authorization type should I be selecting in POSTMAN to authenticate correctly with SharePoint Online?

Thanks in Advance

解决方案

Hi Patrick,

You can check it with NTLM/Basic authentication modes.


这篇关于POSTMAN中的REST API身份验证 - SharePoint Online的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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