POSTMAN中的REST API身份验证 - SharePoint Online [英] REST API Authentication In POSTMAN - 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屋!