gpt4 book ai didi

azure - Sharepoint在线 'Unsupported app only token.'

转载 作者:行者123 更新时间:2023-12-02 05:58:23 26 4
gpt4 key购买 nike

我通过调用范围为 https://{ 的 https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token 为自己获取了一个不记名 token 租户名称}.sharepoint.com/.default

它是 Azure AD 中注册应用程序的 token 。

当我使用该 token 进行 API 调用时,例如 https://infoinnobake.sharepoint.com/_api/search/query?querytext='contentclass:STS_Site contentclass:SP.Webb'&selectproperties='Title,路径'&rowlimit=500我只收到 401 Unsupported app only token.

能解释一下为什么吗?是否可以使用 Azure AD 上注册的应用程序访问 sharepoint 在线 API?

最佳答案

请按照此处的指南操作: https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread

您需要创建证书并将证书上传到注册的应用程序。您可以在各种编程语言中使用 API 或 SharepointClient

关于azure - Sharepoint在线 'Unsupported app only token.',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56526581/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com