# Error when trying to connect Oauth 2 google

**URL:** <https://community.make.com/t/error-when-trying-to-connect-oauth-2-google/57903>\
**Category:** Questions\
**Tags:** api, connections\
**Created:** [October 15, 2024, 9:13am UTC](https://community.make.com/t/error-when-trying-to-connect-oauth-2-google/57903 "2024-10-15T09:13:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [October 15, 2024, 1:55pm UTC](https://community.make.com/t/error-when-trying-to-connect-oauth-2-google/57903/2 "2024-10-15T13:55:37Z")

</div>

Welcome to the Make community!

Follow this [main guide on how to set up a custom OAuth 2.0 custom app in Make](https://www.make.com/en/help/apps/it-and-development/g-suite-admin#connecting-to-google-services-using-oauth2).

Provided below are additional supplementary instructions in case the above isn’t clear enough.

* * *

# Enable APIs

## 1. Enable the relevant APIs that you want to use

**Search for the relevant Google API here:** [https://console.cloud.google.com/apis/library](https://console.cloud.google.com/apis/library)

- Go to each API page that you want to use, end click “Enable”

- Usually you’ll want to enable at least [Drive](https://console.cloud.google.com/apis/api/drive.googleapis.com) (includes Docs/Sheets) and [Gmail](https://console.cloud.google.com/apis/api/gmail.googleapis.com).

* * *

# OAuth Client

**Direct Link:** [https://console.cloud.google.com/apis/credentials](https://console.cloud.google.com/apis/credentials)

## 2a. Create “OAuth client ID” Credentials

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/c/0c29e0e6bb6d6b4b62461a894fb490c1e06dd048.png)

## 2b. Insert all the Google Redirect URIs for your app

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2807e342c37d019fedbe8847450f96a19c696ffe.png)

### Google Redirect URIs

Here are some commonly-needed redirect URIs you need for your [Google Cloud Console](https://console.cloud.google.com/) OAuth app. If you set these up, you can reuse the same GCP app for other Google apps and modules on Make.

```plaintext
https://www.make.com/oauth/cb/google
https://www.make.com/oauth/cb/google-custom
https://www.make.com/oauth/cb/google-restricted
https://www.make.com/oauth/cb/google-cloud-speech
https://www.make.com/oauth/cb/youtube
https://www.make.com/oauth/cb/oauth2
https://www.integromat.com/oauth/cb/oauth2

```

**Note:** Once you’ve set these up, you can use/reuse the same Make connection for all the supported Google apps & modules on Make - you’ll only have to enable the APIs for your custom app.

* * *

# OAuth consent screen

**Direct Link:** [https://console.cloud.google.com/apis/credentials/consent/edit](https://console.cloud.google.com/apis/credentials/consent/edit)

## 3a. Insert Two Authorised Domains

- Insert `make.com` and `integromat.com`

- Fill in other required fields

- Click “Save and Continue”.

## 3b. Add All Scopes

- Click “Add or Remove Scopes”

- Select 100 “Rows per page”, for each page, check all the rows, OR

- Manually type in the scopes you need

- Click “Update” at the bottom

## 3c. Step through and go to dashboard

At the last step/page, click “ **BACK TO DASHBOARD** ” instead of “Prepare for Verification”  
 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/c/0c8fe7b5be5b0fec74f940524cefe93259806a7c.png)

## 3d. Publish your GCP OAuth2 app

You will need to set your OAuth application to “Production”, otherwise the credentials expire very frequently.

- To do this, go back to “[OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent)”

- Then click the “ **PUBLISH APP** ” button

- Then click the “ **CONFIRM** ” button

* * *

# Create New Connection (HTTP, or respective Google module)

You can find the Client ID and Client Secret in the OAuth2 app you created in GCP, on the right-hand side of where you inserted the callback URLs in step 2:

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/e/aeb4ff9ca8e4f5ddf3badd144b4f5a4fb19f27ef.png)

## 4a. Specific Google module (Sheets, Docs, Drive, Gmail, etc.)

Insert the GCP app client ID and secret here **BEFORE** clicking “Sign in”

_(Gmail example)_

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/a/caa6efb63fb50b12399549ee627da8bb29189a13.png)

**OR,**

## 4b. HTTP OAuth 2.0 Request module

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/9/89a1c01d161c36bc11d1e7460256be7e02258d18.png)

You need a “Authorize Parameters” key of `redirect_uri` with the above Make OAuth2 callback URL.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/3/43df2cd92abedfda53a23fc12991dbfb13eff1be.png)

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

_[View the full topic](https://community.make.com/t/error-when-trying-to-connect-oauth-2-google/57903)._
