如何获取访问令牌以从OneDrive下载文件 [英] How to get the access token to download the file from the onedrive

查看:342
本文介绍了如何获取访问令牌以从OneDrive下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"{" error_description":无效的签发者或签名."}"

任何人都可以帮助我进行一步验证和访问onedrive中文件的步骤吗?

解决方案

您好,

请使用以下REST URL访问文件并使用SharePoint身份验证.

https://YourO365DomainHere-my.sharepoint.com/personal/YourUserName_YourO365DomainHere_onmicrosoft_com/_api/web/GetFileByServerRelativeUrl('/personal/YourUserName_YourO365DomainHere_onmicrosoft_com/Documents/Shared/x%20one%20%). blockquote>

更多信息在这里:

https: //blogs.msdn.microsoft.com/sharepointdev/2013/08/13/access-onedrive-for-business-using-the-sharepoint-2013-apis/

或在以下官方文档中检查OneDrive for Business身份验证:

https://dev.onedrive.com/auth/aad_oauth.htm

最好的问候,

丹尼斯


we are using the Rest api to access the file details and download from the One drive,when we use the Sharepoint accesstoken or graph api access token we are receving the following error

"{"error_description":"Invalid issuer or signature."}"

So can anyone please help me on steps for authenticating and accessing the files in onedrive ?

解决方案

Hi,

Please access the file using the following REST URL and use SharePoint authentication.

https://YourO365DomainHere-my.sharepoint.com/personal/YourUserName_YourO365DomainHere_onmicrosoft_com/_api/web/GetFileByServerRelativeUrl('/personal/YourUserName_YourO365DomainHere_onmicrosoft_com/ Documents/Shared%20with%20Everyone/myDocument.docx')/


value

More information is here:

https://blogs.msdn.microsoft.com/sharepointdev/2013/08/13/access-onedrive-for-business-using-the-sharepoint-2013-apis/

Or check the OneDrive for Business authentication in the following official document:

https://dev.onedrive.com/auth/aad_oauth.htm

Best Regards,

Dennis


这篇关于如何获取访问令牌以从OneDrive下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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