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.

有帮助吗?

解决方案

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!!

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top