Office365 Sharepoint social.feed AAD Authorization

流过昼夜 提交于 2019-12-11 01:57:09

问题


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.

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

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.

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


回答1:


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



来源:https://stackoverflow.com/questions/23272399/office365-sharepoint-social-feed-aad-authorization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!