This Note explains how to configure Exploratory Collaboration Server, so that you can connect to Google Sheets, Google Analytics, and Google BigQuery, with the same experience as with exploratory.io
With this configuration, you will be able to do the following things.
The prerequisites to connect to Google Sheets, Google Analytics, and Google BigQuery with your Collaboration Server are as follows.
There are 3 steps in this configuration.
The following sections explains each step.
Configure SSL (HTTPS) for the Collaboration Server following instructions in this Note, if it has not done yet.
To make your Collaboration Server work with Google's services, you need to register your Collaboration Server as an App at Google APIs.
Verify your ownership of the domain with Google, from this page of Google, if it has not been done yet.
It is necessary that the ownership of domain you use is verified by Google, to make use of Google's services through OAuth.
For example, if you are to host Collaboration Server at collabserver.yourcompany.com, the ownership of the domain yourcompany.com must be verified by Google.
Open the admin page of Google APIs from this link. Login with your Google Apps account.
As shown in the screenshot below, click the NEW PROJECT link on the project list dialog to create a new project.
Follow the menu like the screenshot below to open the Library page.
Search for the following libraries at the Library page, and click Enable button at the page for each Library.
Set up the OAuth consent screen that will be displayed to the users. Follow the menu like the screenshot below.
Select "Internal" for the User Type. This means that the users will be limited to the users of Google Apps with the domain. With our ongoing example, this means the only the users with emails like joe@yourcompany.com created by Google Apps can use your Collaboration Server to connect to Google's services.
If you select External, the users will not be limited, but you will need to wait for Google's approval to be able to use the necessary APIs. To avoid such inconveniences, we will move on with Internal User Type.
Click the Create button, and a form for the setup for the OAuth Consent Screen shows up.
Set the name of the App. This name is the one that will be displayed to the users of your Collaboration Server.
In the same screen, click the Add Scope button.
In the dialog that comes up, select the following scopes.
If the options for those scopes are not there, double-check that the necessary Libraries are enabled in the previous step. Setting up SSL for your Collaboration Server is necessary to be able to use those scopes,
The following fields on the same screen are for the links shown on the consent screen.
You can freely set those URLs, but let's set the top page of your Collaboration Server here.(e.g. https://collabserver.yourcompany.com )
Now, click the Save button to save the settings.
Create an OAuth Client ID to use for the Collaboration Server. This is an ID with a password (secret) registered to Google for your Collaboration Server. Follow the menu like the screenshot below to move to the Credentials setup screen.
From there, click CREATE CREDENTIALS link to open the menu, and select OAuth Client ID menu item.
Choose "Web Application" as the Application type.
A form will be displayed like the screenshot below.
In the form, type in the following 3 configuration.
/oauthcallback
appended. Example: https://collabserver.yourcompany.com/oauthcallbackClick the Create button, and OAuth Client ID will be created and displayed like the following screenshot.
We will need the following 2 strings later to configure Collaboration Server, which are displayed here.
To effectively manage the duration of your Google OAuth token sessions, follow these steps:
Locate docker-compose.yml file under the "exploratory" directory created by uncompressing the distribution file of Exploratory Collaboration Server.
In the docker-compose.yml file, add the following 3 items under the "environment" item list under the "exploratory" container configuration, as in the example screenshot.
Example:
Now, restart Collaboration Server, and you can start accessing Google Sheets, Google Analytics, and Google BigQuery from the Exploratory Desktop connected to your Collaboration Server.