← Back
GMail Connection Setup
GMail Plugin Admin Setup
To enable users to connect their GMail accounts, you must first configure a Google Cloud Platform project and provide the OAuth credentials below.
Steps:
-
Go to the Google Cloud Console:
- Navigate to https://console.cloud.google.com/.
- Create a new project or select an existing one.
-
Enable the GMail API:
- In the navigation menu, go to APIs & Services > Library.
- Search for "Gmail API" and click Enable.
-
Configure the OAuth Consent Screen:
- Go to APIs & Services > OAuth consent screen.
- Choose External user type and click Create.
- Fill in the required app information (App name, User support email, etc.).
- Under Authorized domains, add
toolstream.dev
. - Save and continue.
- On the Scopes page, you do not need to add any scopes here. The application will request them dynamically.
- Add test users if your app is in testing mode.
- Review the summary and save.
-
Create OAuth 2.0 Client ID:
- Go to APIs & Services > Credentials.
- Click + CREATE CREDENTIALS and select OAuth client ID.
- For Application type, select Web application.
- Give it a name, e.g., "Toolstream Web Client".
- Under Authorized redirect URIs, click + ADD URI and enter the following value:
https://toolstream.dev/ui/connections/oauth/callback/gmail_tool
- Click Create.
-
Copy Credentials:
- A dialog will appear showing your Client ID and Client Secret.
- Copy these values and paste them into the fields on this admin page.