Skip to content

Instantly share code, notes, and snippets.

@egatjens
Last active November 19, 2020 22:49
Show Gist options
  • Save egatjens/3df8e736950cfd5f5df391d328363620 to your computer and use it in GitHub Desktop.
Save egatjens/3df8e736950cfd5f5df391d328363620 to your computer and use it in GitHub Desktop.
Steps to configure Google Credentials for LiFT Google Integration

Steps to configure Google Credentials for LiFT Google Integration

Navigate to https://console.cloud.google.com/apis/credentials

Create a project

1 - Fill in the name.

2 - Select the organization. i.e "myOrg.io"

Enable APIs

1 - Click on the Library menu

2 - Enable Google Picker API

3 - Enable Google Drive API

Get back to the project credentials page.

Add Credentials

1. Setup the API Keys

1.1 - Click on the + CREATE CREDENTIALS button.

1.2 - Select API keys

1.3 - On the API key created modal window, select the RESTRICT KEYS button.

1.4 - Assign a name: i.e "API key - Google Integration Feature"

1.5 - On the API restrictions section, select the restrict key and select the DRIVE and PICKER APIs

1.6 - SAVE it

2. Setup the Service account

2.1 - Click on the + CREATE CREDENTIALS button.

2.2 - Select Service account.

2.3 - Fill in account name and description, click on the CREATE button.

2.4 - Select project Role: Role > Editor, click on the CONTINUE button.

2.5 - Click on the DONE button.

2.6 - Back to Credentials and select the created service account.

2.7 - On the Keys section, click on "ADD KEY > Create new key", on the Key Type select JSON and click on CREATE, save the JSON in a secure place.

3. Setup the OAuth Client ID, CONFIGURE CONSENT SCREEN

3.1 - Click on the + CREATE CREDENTIALS button.

3.2 - Select OAuth Client ID.

3.3 - To create an OAuth client ID, you must first set a product name on the consent screen, click on the CONFIGURE CONSENT SCREEN button.

3.4 - Select: User Type > External, click on the CREATE button.

3.5 - App information: Fill App name and description

3.6 - App domain: Application home page and Application privacy policy link

3.7 - Authorized domains: Add the domain

3.8 - FIll the Developer contact information email

3.9 - Click on the SAVE AND CONTINUE button.

4. Scopes

4.1 - Click on the ADD OR REMOVE SCOPES button.

4.2 - Look for the NON-SENSITIVE scope: https://www.googleapis.com/auth/drive.file, select it and click UPDATE

NOTE: If a sensitive scope is needed, the app needs to pass the verification process that takes about 4-6 weeks.

4.3 - Click on the SAVE AND CONTINUE button.

5. Optional Info

5.1 - Fill in the email address

5.2 - Add some description of the intention of the app

5.3 - Click on the SAVE AND CONTINUE button.

Review the information in the summary and click on BACK TO DASHBOARD

6. Setup the OAuth Client ID

6.1 - Click on the + CREATE CREDENTIALS button.

6.2 - Select OAuth Client ID.

6.3 - Application Type: "Web Application"

6.4 - Add a name: i.e: "Web client"

6.5 - Authorized JavaScript origins: Add URI: "www.example.com"

6.6 - Authorized redirect URIs: Add callback URI: "www.example.com/callback"

6.7 - Click on the CREATE button.

6.8 - Copy the provided values

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment