0% found this document useful (0 votes)
11 views7 pages

GCP Setup 3

This document provides a step-by-step guide on how to create a custom OAuth client in Google Cloud Platform for connecting to Google services like Drive and Gmail. It outlines the necessary procedures including project creation, API enabling, OAuth consent screen setup, and client credential creation. The guide is intended for both personal and internal use by Google account holders.

Uploaded by

vibrantnik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views7 pages

GCP Setup 3

This document provides a step-by-step guide on how to create a custom OAuth client in Google Cloud Platform for connecting to Google services like Drive and Gmail. It outlines the necessary procedures including project creation, API enabling, OAuth consent screen setup, and client credential creation. The guide is intended for both personal and internal use by Google account holders.

Uploaded by

vibrantnik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Connecting to Google services

using custom OAuth client


This article will show you how to create your own project in Google Cloud Platform and a custom
OAuth client. This is useful for connecting restricted Google services, like Google Drive or Gmail, to
Make.

To connect, you must have a Google account. You can create an account at
accounts.google.com/signin.

The following procedure is intended for:

●​ Personal use (@gmail and @googlemail.com users)


●​ Internal use (Google Workspace users that prefer to use a custom OAuth client)

Configure a Google Cloud Platform


project
There are five steps to configure a Google Cloud Platform project.

1.​ Create a Google Cloud Platform project


2.​ Enable APIs
3.​ Configure your OAuth consent screen
4.​ Create your client credentials
5.​ Connect to n8n with custom credentials

1. Create a Google Cloud Platform project


1.​ Log in to the Google Cloud Platform using your Google credentials.
2.​ On the welcome page, click Create or select a project > New project.
3.​ Enter a Project name and select the Location for your project.
4.​ Click Create.
5.​ In the top menu, check if your new project is selected in the Select a project dropdown. If
not, select the project you just created.

2. Enable APIs
1.​ Open the left navigation menu and go to APIs & Services > Library.
2.​ Search for the APIs you need for your project.​
For information regarding specific APIs, refer to the Make Help Center for the app you are
using.
3.​ Click the relevant API, then click Enable.
3. Set up OAuth2 in the Google Cloud Platform

Procedure

1.​ Log in to the Google Cloud console.


2.​ From the projects list, select a project or create a new one.
3.​ Enable the APIs for the Google G Suite applications you want to automate, such as (Google
Drive API, Google Calendar API, and Google Sheets API).
4.​ At the top-left, click Menu > APIs & Services > Credentials.

If you are creating credentials for the OAuth client ID for the first time in Google Cloud Console, then
you must perform the following steps to configure the OAuth consent screen and choose scopes:

1.​ In the Google Cloud console, navigate to Menu > APIs & Services > OAuth
consent screen.
2.​ Select the user type for your app, then click Create.
3.​ Complete the app registration form, then click Save and Continue.
4.​ Click Add or Remove Scopes. After selecting the scopes required by your app, click
Save and Continue.
5.​ On Test users screen, enter your email address, then click Save and Continue.
6.​ Review your app registration summary and click Back to Dashboard. However, you
can click Editbutton if you want to make any changes to OAuth consent screen.​

5.​ Click +CREATE CREDENTIALS and select OAuth client ID.​


6.​ In the Application type field, choose Web application from the drop-down.
7.​ Enter the application name.
8.​ Log in to the Control room as an administrator and navigate to Manage > OAuth
connections.
9.​ Click Create connection tab and select Custom option from the Provider type field.
10.​Copy the Callback URL and navigate back to the Create OAuth client ID page in Google
Cloud Console.
11.​ Click + ADD URI button under Authorized Redirect URIs and paste the URI in the URIs
field.
12.​Click Create.
13.​On the Credentials page, select Download OAuth client from Actions menu to download
and save the Json file.

You might also like