无法设置 OAuthentication

Cannot set up OAuthentication

我们正在尝试将内部应用程序连接到 Sharepoint 365。目标是从 Sharepoint 365 列表和 Excel 文档中读取数据。我们想利用我们已经使用 OAuthentication 的事实,基本上我们的用户使用他们自己的 Windows 凭据登录。现在,要实现这一点,我们首先需要使用 Sharepoint 注册一个应用程序,我们使用 link:

https://mycompany.sharepoint.com/sites/MySite/_layouts/15/appregnew.aspx

之后我们还需要获取授权码,以便客户使用他们的 Windows 帐户登录。我们这样做 URL:

https://mycompany.sharepoint.com/sites/MySite/_layouts/15/OAuthAuthorize.aspx?client_id=14f0e39c-1234-42ea-bed5-ee5c7c834655&scope=List.Read&response_type=code&redirect_uri=https%3A%2F%2Fmysite.mycompany.com%3A9090%2Foauth%2F2.0%2FredirectURL.jsp

当我们 运行 最后一个 link 时,我们得到以下错误:

Sorry, something went wrong
There is no claims identity. Please make sure the web application is configured to use Claims Authentication.
TECHNICAL DETAILS

Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 367ee69f-5066-0000-e1ef-cee55f7b7000

如您所见,错误不是很有帮助。我已经做了很多研究,答案各不相同,从缺乏更高级别的访问权限到无效的 URL 请求。我有更高的访问权限并且 URL 构造良好。但错误仍然存​​在。

所以,我的问题是,错误的含义是什么?为什么不执行?

我们记录了 Microsoft Premier Support 票证,看!问题已解决。