Setup a custom OAuth Client ID for Google Drive

Air Explorer, the multicloud manager

Google Drive setup guide

Here is how to create your own Google Drive client ID for Air Explorer:

1

Create a Google Cloud project

Sign in toGoogle Cloud Resource Managerand CREATE PROYECT. The choice of Google account is flexible, and it doesn’t have to match the account associated with the Google Drive you intend to access.

Google Cloud Resource Manager project creation screen

A prompt will appear, asking you to choose a name for your project. Enter, for example, “Google Drive Custom ID” for the project name. And click on CREATE.

Google Cloud dialog to create a project

Select the project you have just created and enter in the project Settings.

Google Cloud project selector and settings
2

Enable the Google Drive API

Click on the menu button to show the project menu.

Google Cloud project menu button

Navigate to APIs & Services and click on Enabled APIs & services.

Google Cloud APIs and Services menu

Select ENABLE APIS AND SERVICES.

Enable APIs and Services button in Google Cloud

In the search box of the API library, search for “Google Drive API”.

Google Cloud API library search box

Select Google Drive API from the search results and choose Enable.

4

Enter the app details

Enter an “App name” (“Google Drive Custom ID” is OK); enter “User Support Email” (your own email is OK). Use the same email as the “Developer contact information”. Click on SAVE AND CONTINUE.

Google Cloud OAuth app registration details form
5

Add the Google Drive scope

Click on ADD OR REMOVE SCOPES.

Google Cloud scopes configuration screen

Filter for “Google Drive API” and enable the scope …/auth/drive and click on UPDATE.

Google Drive API scope selected in Google Cloud

Click on SAVE at the bottom.

Save selected OAuth scopes in Google Cloud
6

Add a test user

Add a test user. You can add yourself as a test user.

7

Create OAuth credentials

Select Credentials and click on the CREATE CREDENTIALS button at the top of the screen, then select “OAuth client ID”.

Create OAuth client ID credentials in Google Cloud
8

Choose a desktop app

Choose an Application type of “Desktop app” and click “Create”. (The default name is fine.)

Google Cloud OAuth client ID application type desktop app
9

Copy the client credentials

It will show you a client ID and client secret that you will need to enter in Air Explorer.

Google Cloud OAuth client ID and client secret
10

Publish the app

Go to “Oauth consent screen” and then click “PUBLISH APP” button and confirm.

Publish OAuth app in Google Cloud
11

Use the credentials in Air Explorer

Provide the noted client ID and client secret to Air Explorer.

Add the Google Drive account in the icon “GoogleDrive Custom Client Id”.

Air Explorer GoogleDrive Custom Client Id account option

Enter the Client ID and the Client Secret.

Air Explorer Google Drive custom client credentials form

When you enter the Client ID and Client Secret, a browser window will open, prompting you to enter your email address.

Google sign in for Google Drive Custom ID

Click on “Advanced”.

Google authorization advanced options

Click on “Go to Google Drive Custom ID (unsafe)”.

Google authorization unsafe app link

Click on “Continue”.

Google Drive Custom ID authorization continue button

Check “See, edit, create and delete all your Google Drive files” and Continue.

Google Drive Custom ID permission selection