Silent Authentication for OneDrive

不羁的心 提交于 2019-12-10 19:27:01

问题


I am writing a program for a client and they are running into storage issuses on their server and as such have decided to go with Cloud storage. As the web application is in VB.NET they are electing to go with OneDrive.

Having had a look at their API it seems that OneDrive wants the user to sign in with their personal Microsoft Account and upload the files to their personal OneDrive. My client wishes for them to be uploading the files to their business OneDrive via a "silent authentication" done on the fly when the file picker is loaded.

The API doc's are not much help as far as this is concerned (WL.init, WL.login)

TL;DR How do you authenticate to a "business" OneDrive account and not the users using code.


回答1:


Looks like OneDrive for Business is a completely different one to the personal OneDrive system. You have to use the SharePoint API's to access thiings: http://blogs.msdn.com/b/sharepointdev/archive/2013/08/13/access-skydrive-pro-using-the-sharepoint-2013-apis.aspx

No filepicker by the looks of things, which was the one thing I needed!!




回答2:


OneDrive for Business has a preview REST API to do basic file/folder operations: http://msdn.microsoft.com/en-us/library/office/dn605900(v=office.15).aspx

With this, you can authenticate users with Azure AD and access their business data.



来源:https://stackoverflow.com/questions/23003780/silent-authentication-for-onedrive

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