Integration with Clouds Storages (Google Drive, Dropbox, OneDrive)
Integration HTTP Commander with Clouds Storages allows to interact (edit, upload and download files, folders) with popular cloud services
storage: Google Drive, Dropbox, Microsoft OneDrive.
Integration with Google Drive allows users of HTTP Commander
create/edit documents in Google Docs, download and upload your files and folders from the cloud storage Google Drive.
To configure this feature, perform the following steps.
- Go to the Google Developers Console.
If required, sign in to your Google Account.
Screenshot
- Create new project (or select existing project).
Screenshot
- Select the newly created (or existing) project and in left menu go to
Overview, than select Google APIs tab, search Drive API and enable
(if they are not enabled).
Screenshot
- Next go to Credentials
and add credentials to your project.
-
Google Drive API
Web browser (Javascript)
User data
Press What credentials do I need? button.
Screenshot
-
In Authorized JavaScript origins field set your domain of HTTP Commander.
For example: if your opens HTTP Commander site by link http://yourdomain.com/HTCOMNET
For Authorized redirect URIs field set empty value.
Press Create client ID button.
Screenshot
-
Set product name shown to users and press Continue button.
Screenshot
-
Copy the value of Client ID.
Screenshot
- Go to Settings tab of HTTP Commander Admin Panel.
If the hidden settings are not visible, then click Show hidden parameters button on toolbar of Settings tab.
- In the hidden setting GoogleClientId (section Office)
paste the copied value Client ID.
- For the parameters EnableDownloadToGoogle,
EnableUploadFromGoogle (section UploadDownload) or-and
EnableGoogleDriveEditor (section Office)
set values to true.
-
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).
Integration with Dropbox
Integration with Dropbox allows users of HTTP Commander
download and upload your files and folders from the cloud storage Dropbox.
To configure this feature, perform the following steps.
- Go to the Dropbox App Console.
If required, sign in to your Dropbox Account.
Screenshot
- Then click Create app button and if necessary, perform the verification email.
Next, check the following sequence settings:
1. Dropbox API
2. Full Dropbox — Access to all files and folders in a user's Dropbox.
2. Then enter the name of the application (for example, HTTPCommander) and click Create app button.
Screenshot
- Further, on the Settings page open in OAuth 2 section
- for the Redirect URIs key specify urls to
default.aspx and scripts/clouds/dropbox-callback.html pages of HTTP Commander in lower register (required).
For example. If you open HTTP Commander from url https://yourdomain.com/HTCOMNET, then for Redirect URIs
add https://yourdomain.com/htcomnet/default.aspx and
https://yourdomain.com/htcomnet/scripts/clouds/dropbox-callback.html.
Note! For Redirect URIs parameter url only on https protocol can be specified,
respectively use of Dropbox opportunities possibly if you open HTTP Commander over SSL
that is signed by a valid certification authority (see FAQ: How can I use HTTP Commander with SSL?).
-
For Allow implicit grant choose Allow.
Screenshot
- On the Branding tab specify Publisher, Description, App website & icons.
This is necessary for production status. Learn more about production status requirements.
Screenshot
- Go to Settings tab of HTTP Commander Admin Panel.
If the hidden settings are not visible, then click Show hidden parameters button on toolbar of Settings tab.
- In the hidden setting DropboxConsumerKey (section Office)
paste the value of App Key from Settings tab on page of created application in Dropbox.
- For the parameters EnableDownloadToDropbox
or-and EnableUploadFromDropbox (section UploadDownload)
set values to true.
-
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).
- Then open your HTTP Commander link, which you added to Redirect URIs application settings Dropbox
(for example, https://yourdomain.com/htcomnet/default.aspx), sign in and try to download the file(s)/folder(s)
in your Dropbox storage (use that Dropbox account in which you create an application) using the context menu or toolbar:
Cloud storages → download to... → Dropbox.
- Next you need to configure user access to his files in Dropbox from HTTP Commander. For this,
go to the Settings tab in your application Dropbox (from Dropbox App Console).
You have two options:
- Use development status. To do this, click Enable additional users button in line Development users.
But in this case the number of users is limited to a 500 users.
- Use production status. To do this, click Apply for production button in line Status.
Then fill out the form Request production status, specifying the Web as a Platform
and expect to change the status of.
Screenshot
-
If you set true for EnableDownloadToDropbox,
then in addition, you can customize how the files will be loaded in different sizes to Dropbox (in whole or in chunk):
see parameter MaxFileSizeForDownloadToDropboxEntirely.
Integration with Microsoft OneDrive allows users of HTTP Commander create/edit documents in MS Office Online,
download and upload your files and folders from the cloud storage OneDrive.
If your organization uses Office365 (OneDrive for Business), refer to OneDrive for Business integration.
Otherwise, to configure this feature, perform the following steps.
- Creating and configuring HTTP Commander application in
Microsoft Application Registration Portal.
- To do this, follow the link
and sign in to your account OneDrive.
- On the opened page, click on the button Add an app in Converged applications section
Screenshot
Note! If you already have configured the application, then go to step 2.
- Enter the name of application (eg HTTP Commander) and click Create button (also uncheck Guided Setup for faster registration).
Screenshot
- You will then see a page with properties of the created application.
Screenshot
-
Next, in the Application Secrets click Generate New Password.
- Next, in the Platform section for the Web platform (add Web platform if not exist)
enter the value https://yourdomain.com/HTCOMNET/scripts/clouds/onedrive-callback.html
for Redirect URLs field, where https://yourdomain.com/HTCOMNET — your url to run HTTP Commander.
Also, make sure the Allow Implicit Flow check box is selected
Screenshots
-
In the Microsoft Graph Permissions section add permissions
Files.Read.All, Files.ReadWrite.All, User.Read
for Delegated and Application Permissions.
Screenshot
-
Further, you can set up the Profile: logo, link to application, etc..
-
And at last, SURELY, check (enable) Live SDK support in section Advanced Options, and press the Save button.
Screenshot
Also see: Registering your app for Microsoft Graph.
- Configuring the HTTP Commander.
- Go to Microsoft Application Registration Portal.
If you are not already logged in to your OneDrive account, log in.
Choose your the HTTP Commander application in the Converged applications section (existing or newly created in the previous step).
Note! If you registrated Converged application already earlier, then drill in its additional options Live SDK support,
and enable if the option is switched off (see above).
-
Copy the value of Application Id (for example 5bbdd707-6688-438d-b38b-4b74ec5eb910).
Screenshot
- Go to Settings tab of HTTP Commander Admin Panel.
If the hidden settings are not visible, then click Show hidden parameters button on toolbar of Settings tab.
- In the hidden setting LiveConnectAppClientID (section Office)
paste the copied value Application Id.
- For the parameters EnableDownloadToSkyDrive,
EnableUploadFromSkyDrive (section UploadDownload)
or-and EnableMsOfficeOnlineEditor (seciton Office)
set values to true.
-
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).
Note. If in case of log in you receive an error:
We're unable to complete your request
Screenshot
that need to be checked (and to set if not exists) Redirect URIs property. See Redirect URIs article.