Gmail
Gmail is a web-based email service developed by Google.
Authentication Types
Gmail supports 2 authentication methods:
-
OAuth - Create your own Google Cloud OAuth app. Every user connects with their Google account.
- Pros: Full control, per-user tracking, production-ready
- Cons: Requires Google Cloud Console setup
-
Instant OAuth - Use Webrix's pre-configured Google app for the fastest setup.
- Pros: Fastest setup, no configuration needed
- Cons: Limited scopes, not recommended for production
Setting up OAuth
- Create a new project or select an existing one
- In the left sidebar, go to APIs & Services → OAuth consent screen
- Choose External or Internal (Internal is only for Google Workspace orgs)
- Fill in the required information:
- App name
- User support email
- Developer contact email
-
Click Save and Continue
-
On the Scopes page, click Add or Remove Scopes
-
Add the Gmail scopes you need (e.g.,
https://mail.google.com/)
-
Click Save and Continue
-
Add test users if using External user type (optional during development)
-
Go to APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
-
Select Web application as the application type
-
Enter a name for your OAuth client
-
Under Authorized redirect URIs, click Add URI
-
Copy the Redirect URL from Webrix and paste it
-
Click Create
-
Copy the Client ID and Client Secret
-
In Webrix, paste the Client ID and Client Secret
-
Select the same scopes you configured
-
Click Save Changes
Note: You may need to enable the Gmail API in APIs & Services → Library if not already enabled.