Skip to main content

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

  1. Go to https://console.cloud.google.com/
  1. Create a new project or select an existing one
  1. In the left sidebar, go to APIs & ServicesOAuth consent screen
  1. Choose External or Internal (Internal is only for Google Workspace orgs)
  1. Fill in the required information:
    • App name
    • User support email
    • Developer contact email
  1. Click Save and Continue

  2. On the Scopes page, click Add or Remove Scopes

  3. Add the Gmail scopes you need (e.g., https://mail.google.com/)

  1. Click Save and Continue

  2. Add test users if using External user type (optional during development)

  3. Go to APIs & ServicesCredentials

  1. Click Create CredentialsOAuth client ID
  1. Select Web application as the application type

  2. Enter a name for your OAuth client

  3. Under Authorized redirect URIs, click Add URI

  4. Copy the Redirect URL from Webrix and paste it

  1. Click Create

  2. Copy the Client ID and Client Secret

  1. In Webrix, paste the Client ID and Client Secret

  2. Select the same scopes you configured

  3. Click Save Changes

Note: You may need to enable the Gmail API in APIs & ServicesLibrary if not already enabled.