External Authentication for Gmail Module

Hi all! I have been trying to brainstorm how to make this work, but I haven’t come up with anything yet.

Goal: being able to have clients log in to their Gmail account using OAuth without using the Make.com interface (aka they need to have access to my Make.com account)

  1. I have already set up a Google Cloud Console Project exactly as described here from the Make.com article.
  2. I have read this article about the topic where someone tried something similar.

After asking ChatGPT, it suggested I host a website (e.g. on Heroku) with a Google login script linked to my Google Cloud Project, which would allow me to get the authorization access and refresh codes, but I don’t know how to get those into Make.com to use further.

Besides
a) the client giving me their password or
b) having them log in side-by-side (or giving them access to my Make.com)

Is there any other way? I am trying to white-label this if possible.

You can use a mailhook and have your clients forward emails to the mailhook. You can even create a filter to filter only certain emails, which your client will control.

Alternatively you can have them create a free make account and connect their gmail to that and have a API call be sent to the webhook via the HTTP module for whatever scenario you want them to use.

I found an alternative route. I built a Flask server with using the Google OAuth documentation and send the access and refresh token to a Make.com webhook.

Then, this is stored in a database and instead of using the Gmail module, I just use HTTP modules to make the corresponding API requests.

3 Likes