Hi there!
I’m just trying out Make, creating my first ever scenario.
What I’m trying to achieve is simply “Watch emails” with Gmail Module.
What I’ve done:
-Went to Google Console and activated Gmail, Drive APIs (the second one is not required, tho.)
-Done everything @ OAuth consent screen (Authorized both make and integromat domains, filled the scopes, test user)
-Got the credentials for “web application”, filled the Authorized Redirect URIs
(I’ve done all of these steps a few times, thoroughly following the guides before submitting this ticket)
The problem is:
After following all of the given steps, I’m inside Make again, establishing a connection by creating “My google restricted connection”, clicking “advanced” and entering the credentials.
The message I’m getting is:
“Cannot initialize the scenario because of the reason ‘Invalid credentials (Failure)’”
Before I got two more:
Something like Incorrect username, password and firstly, error 400.
When trying to verify this connection at “Connections” tab @Make, it’s all green.
My email is @hotmail, connected to Google.
Is there anything I’m still missing?
Thanks…
https://www.make.com/en/help/connections/connecting-to-google-services-using-a-custom-oauth-client?_gl=1*1vu9y8g*_gcl_au*MTk3OTU3MDMxMy4xNzI2NTg1Nzg1*_ga*MTUxMDQ3MTY2NC4xNzI2NTg1Nzgz*_ga_MY0CJTCDSF*MTcyNjY0ODQwNy4zLjEuMTcyNjY1MTA3Ni4zOS4wLjA.
This is another tutorial that I’ve followed:
https://www.youtube.com/watch?v=d0u7IYQJXDM
Welcome to the Make community!
Follow this main guide on how to set up a custom OAuth 2.0 custom app in Make.
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
-
Go to each API page that you want to use, end click “Enable”
-
Usually you’ll want to enable at least Drive (includes Docs/Sheets) and Gmail.
OAuth Client
Direct Link: https://console.cloud.google.com/apis/credentials
2a. Create “OAuth client ID” Credentials
2b. Insert all the Google Redirect URIs for your app
Google Redirect URIs
Here are some commonly-needed redirect URIs you need for your Google Cloud Console OAuth app. If you set these up, you can reuse the same GCP app for other Google apps and modules on Make.
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
3a. Insert Two Authorised Domains
-
Insert
make.com
andintegromat.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”
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”
-
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:
4a. Specific Google module (Sheets, Docs, Drive, Gmail, etc.)
Insert the GCP app client ID and secret here BEFORE clicking “Sign in”
(Gmail example)
OR,
4b. HTTP OAuth 2.0 Request module
You need a “Authorize Parameters” key of redirect_uri
with the above Make OAuth2 callback URL.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Tried all of the above a few times already.
Still nothing.
“400 (failedPrecondition): Mail service not enabled”
Hi @Mike8 and @samliew
I have the same issue and I think because I use a google account not ending with @gmail.com and @googlemail.com. I tried it with a @gmail.com User and it worked.
One importent thing are the url’s for redirecting. I used a mix out of integromat.com and make.com url’s and that didn’t work. My seting now is:
https://www.integromat.com/oauth/cb/google-restricted
https://www.integromat.com/oauth/cb/google/
https://www.integromat.com/oauth/cb/google-custom
https://www.integromat.com/oauth/cb/app
Any Ideas regarding google account without @gmail.com and @googlemail.com.
Best Regards
Frank