Microsoft OneDrive for Business integration
OneDrive for Business is a personal library intended for storing and organizing your work documents.
As an integral part of Office 365 or SharePoint Server 2013, OneDrive for Business lets you work within the context
of your organization, with features such as direct access to your organization’s address book.
More info: What is OneDrive for Business?,
OneDrive for Business.
For work with files from HTTP Commander (download/upload) stored in the OneDrive for Business, follow these steps.
- If you do not have an Office 365 account, then you can select
the desired plan and register,
or try the free trial period.
-
Create a Microsoft Azure subscription for your Office 365 tenant. For this:
- Log in to your Office 365 tenant and go to the Office 365 admin center.
- In the same browser, open a new tab and go to
Sign in to Microsoft Azure.
This allows you to log in with your Office 365 credentials.
- Once your subscription is created, choose Portal.
- The Microsoft Azure Tour appears. You can view it, or choose X to close it.
- You now see all items in the Microsoft Azure tenant. It lists a single directory with the name of your Office 365 tenant.
-
Register your HTTP Commander application in Microsoft Azure Active Directory.
- If you are not already logged in to your Microsoft Azure account, log in.
- Choose Active Directory on the left side. You see one active directory listed. Choose your directory.
- Choose Applications (on the top nav) and next choose Applications on the Active Directory tab.
- Add a new application by choosing the ADD icon at the bottom of the portal screen.
This will bring up a dialog box to tell Microsoft Azure about your HTTP Commander application.
- Choose Add an application my organization is developing.
Screenshot
- Enter the name of the HTTP Commander application. Leave the Type as Web application and/or Web API. Then choose the arrow to move to step 2.
Screenshot
-
For the Sign-On URL and App ID URI enter the URL in which you enter the HTTP Commander application.
For example: https://yourdomain/HTCOMNET/Default.aspx.
Screenshot
- Choose the checkmark to complete adding the application. You get a notification that the application has been added successfully.
-
HTTP Commander settings for access to files stored in OneDrive for Business.
- Go to Settings tab of HTTP Commander Admin Panel.
If the hidden settings are not visible, then click Show hidden paramters button on toolbar of Settings tab.
- For the hidden parameter UseNewSkyDriveAPI (section Office)
set value to true.
- For the parameters EnableDownloadToSkyDrive
or-and EnableUploadFromSkyDrive (section UploadDownload)
set values to true.
- If you are not already logged in to your Microsoft Azure account, log in.
Choose Active Directory → choose your directory → Applications → choose created the HTTP Commander application.
Screenshot
-
Click VIEW ENDPOINTS icon on the bottom side. Copy the URL of OAUTH 2.0 AUTHORIZATION ENDPOINT
and paste it into the hidden parameter OneDriveForBusinessOAuth2Endpoint.
Screenshot
-
Close the App Endpoints window and on the top nav choose CONFIGURE. Copy the value of
CLIENT ID field and paste it into the hidden parameter OneDriveForBusinessAppClientID.
Screenshot
-
In the keys section select key validity period of the application. In the REPLY URL field
replace Default.aspx to Handlers/OneDriveForBusinessOAuthHandler.ashx.
Screenshot
-
In the permissions to other applications section add the Office 365 SharePoint Online
application and select the permissions as shown below:
Screenshot
-
On the bottom side click SAVE button and after saving copy the key value and paste it into the
hidden parameter OneDriveForBusinessAppKey.
Screenshot
-
For the hidden parameter OneDriveForBusinessRootUrl
set root URL to access OneDrive for Business. This url has the form https://yourcompanyname-my.sharepoint.com.
-
Note! All of these four parameters (OneDriveForBusinessRootUrl,
OneDriveForBusinessAppClientID,
OneDriveForBusinessAppKey,
OneDriveForBusinessOAuth2Endpoint)
are required if you want to use integration with OneDrive for Business.
-
After setting the values do not forget to save your HTTP Commander settings
(Save settings button on the toolbar of Settings tab) and restart the application
(Restart application button).
- Also for more info see How to: Integrate Office 365 with a web server app using Common Consent Framework.
After performing these steps, your users with corporate accounts OneDrive for Business
(as <username>@<yourcompanyname>.onmicrosoft.com) can download/upload your files using
the items Cloud storages → download to... / upload from... → OneDrive
in context menu or on the toolbar.
Screenshot