Office365 Sharepoint social.feed AAD 授权 [英] Office365 Sharepoint social.feed AAD Authorization

查看:32
本文介绍了Office365 Sharepoint social.feed AAD 授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用不记名身份验证 (oAuth2) 测试对 Office365 Sharepoint 服务器的 RESTfull API 访问.我可以通过/_api/web 端点成功获取 OneDrive 中的当前文件,但在所有 _/api/social.feed 端点上获取 System.UnauthorizedAccessException.

I'm currently testing RESTfull API access to Office365 Sharepoint server using bearer authentication (oAuth2). I can succesfully get current files in the OneDrive via the /_api/web endpoint but get System.UnauthorizedAccessException on all _/api/social.feed endpoints.

我将 AAD 中所有可用的 Sharepoint 权限授予(测试)应用程序,只是为了安全起见,令牌显示:[scp] => MyFiles.Write MyFiles.Read AllSites.FullControl AllSites.Manage AllSites.WriteAllSites.Read

I granted all available Sharepoint rights in AAD to the (test) application, just to be on the safe side, the token says: [scp] => MyFiles.Write MyFiles.Read AllSites.FullControl AllSites.Manage AllSites.Write AllSites.Read

完全相同的端点是可访问的,并在通过浏览器访问时返回一个正常的结果,该浏览器具有相同用户的正常"fedAuth/rtFa 身份验证 cookie(又名正常浏览器登录).

The exact same endpoint is accessible and returns a sane result when accessed through a browser with "normal" fedAuth/rtFa authentication cookies (aka normal browser login) for the same user.

我在为我提供的 access_token 检索 social.feed(/my/feed) 时做错了什么?

What am I doing wrong to retrieve the social.feed(/my/feed) for the access_token I'm presenting?

推荐答案

当前的 Office 365 API 不支持使用带有承载身份验证的 REST 或 CSOM API 的权限来对抗 Web/移动应用程序无法征得其同意的任何内容启动应用程序的用户.社交源不包括在内,最新的博客文章解释了当前的支持 http://blogs.office.com/2014/05/12/net-and-javascript-libraries-for-office-365-apis/如果您认为这很重要,请将您的反馈提交给我们的工程师正在查看的 UserVoice http://aka.ms/OfficeDevFeedback

The current Office 365 APIs do not support the permission to use the REST or CSOM APIs with the bearer authentication against anything the Web/Mobile App cannot ask consent for from the User launching the app. The social feeds are not included, the latest blog posts explains the current support http://blogs.office.com/2014/05/12/net-and-javascript-libraries-for-office-365-apis/ If you feel this is important please submit your feedback to UserVoice where our engineers are looking at http://aka.ms/OfficeDevFeedback

这篇关于Office365 Sharepoint social.feed AAD 授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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