Essentials and Pro Users: For more information about Workflow Studio, click here!
This article will show you how to create your own project in Google Cloud Console and a custom OAuth client. This is useful for connecting restricted Google services, like Google Drive or Gmail, to Workflow Studio.
To connect, you must have a Google account. You can create a new account by clicking here if you do not have one already.
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 Console project
There are five steps to configure a Google Cloud Console project.
- Create a Google Cloud Console project
- Enable APIs
- Configure your OAuth consent screen
- Create your client credentials
- Connect to Workflow Studio with custom credentials
Create a Google Cloud Console project
- Log in to the Google Cloud Console using your Google credentials.
- In the top menu, click Create or select a project > New project.
- Enter a Project name and select the Location for your project.
- Click Create.
- 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.
Enable APIs
- Open the left navigation menu and go to APIs & Services > Library.
- Search for the APIs you need for your project.
- Click the needed API, then click Enable.
Configure your OAuth consent screen
- Go to APIs & Services > OAuth consent screen.
- Under User Type, select External.
For more information regarding user types, refer to Google's Exceptions to verification requirements documentation. - Click Create.
- In the App information section, enter Workflow Studio as an app name and your Gmail address.
- In the Authorized Domains section, add make.com and integromat.com. These are the URLs used to authorize Workflow Studio
- In the Developer contact information section, enter your Gmail address.
- Click Save and continue.
- In the Scopes page, click Add or remove scopes, add any desired scopes, and click Update. Here are some examples of scopes you may need for Gmail and Google Drive.
-
Click Save and continue.
-
Optional: If your project will remain in the Testing publishing status, add test user emails on the Test users page, then click Save and continue.
Note
Important Note on Publishing Status
Testing: If you keep your project in the Testing status, you will be required to reauthorize your connection in Workflow Studio every week. To avoid weekly reauthorization, update the project status to In production.
In production: If you update your project to the In production status, you will not be required to reauthorize the connection weekly. To update your project's status, go to the OAuth consent screen and click Publish app. If you see the notice Needs verification, you can choose whether to go through the Google verification process for the app or to connect to your unverified app. Currently connecting to unverified apps works in Workflow Studio, but we cannot guarantee the Google will allow connections to unverified apps for an indefinite period.
Create your client credentials
- In the left sidebar, click Credentials.
- Click + Create Credentials > OAuth client ID.
-
In the Application type dropdown, select Web application.
-
Update the Name of your OAuth client. This will help you identify it in the console.
-
In the Authorized redirect URIs section, click + Add URI and enter the redirect URI.
Here are some examples of redirect URIs you may need.https://www.integromat.com/oauth/cb/google-restricted - for Gmail or Google Drive
https://www.integromat.com/oauth/cb/google-custom - for Google Cloud Text-to-Speech
https://www.integromat.com/oauth/cb/google-cloud-speech - for Google Cloud Speech
https://www.integromat.com/oauth/cb/youtube - for YouTube
https://www.integromat.com/oauth/cb/google - for other Google apps
-
Click Create.
-
Copy your Client ID and Client secret values and store them in a safe place.
You will use these values in the Client ID and Client Secret fields in Workflow Studio.
Establish the connection in Workflow Studio
To establish the connection in Workflow Studio:
- Log in to your Workflow Studio account, add a Google app module to your scenario, and select Create a connection.
Optional: In the Connection name field, enter a name for the connection. - Switch on the Show advanced settings toggle and enter your Google Cloud Console project client credentials.
- Click Sign in with Google.
- If prompted, authenticate your account and confirm access.
You have successfully established the connection. You can now edit your scenario and add more modules.
Common Problems
100 Logins Limit Per Day Has Been Reached
This happens rarely, but when it does, we recommend creating another OAuth client.
[403] Access Not Configured
If this error message appears, you need to enable the corresponding API in your Google Cloud Platform.
Authorization Error - Error 403: access_denied
Google has added the required settings for the Consent screen. You'll need to add the email address associated with the Google account you want to connect with Workflow Studio as a Test user.
- Sign in to the Google Cloud Platform using your Google credentials.
- Go to APIs & Services > OAuth consent screen.
- In the Test Users section, click Add users to add a test user. Enter the email address associated with the Google account you want to connect with Workflow Studio, and click Save.
-
Now, go to Workflow Studio, and connect to the desired Google service.
Failed to verify connection 'My Google Restricted connection'. Status Code Error: 400
Your connection has expired and is no longer valid. You need to reauthorize the connection.
This error affects non-Google Workspace accounts. For more details please refer to the Google OAuth documentation.
Due to Google's updated security policy, unpublished apps can only have a 7-day authorization period. After the OAuth security token expires, the connection is no longer authorized and any module relying on it will fail.
Solution
Option 1:
To avoid weekly reauthorization, you can update the publishing status of your project.
If you update your project to the In production status, you will not be required to reauthorize the connection weekly.
Change the status of your project by following these steps:
-
Log in to the Google Cloud console.
-
Navigate to the Oauth consent screen.
-
Click the Publish app button next to your app.
-
If you see the notice Needs verification, you can choose whether to go through the Google verification process for the app or to connect to your unverified app. Currently connecting to unverified apps works in Workflow Studio, but we cannot guarantee the Google will allow connections to unverified apps for an indefinite period.
For more information regarding publishing statuses, refer to the Publishing status section of Google's Setting up your OAuth consent screen help and our Community page.
Option 2
If you keep your project in the Testing status, you will be required to reauthorize your connection in Workflow Studio every week.
Reauthorize your Google connection by following these steps:
-
Log in to Workflow Studio.
-
Go to Connections.
-
Find your Google connection and click Reauthorize button.
Note
To prevent the expiration of your Google connection, we suggest you to reauthorize the connection every week.
Comments