Silent Authentication for OneDrive

2019-07-04 09:57发布

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.

2条回答
Ridiculous、
2楼-- · 2019-07-04 10:50

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

查看更多
Explosion°爆炸
3楼-- · 2019-07-04 10:51

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.

查看更多
登录 后发表回答