Elaris Docs / Gmail OAuth

Gmail OAuth

Elaris lets each authenticated user connect their own Google account. Tokens are encrypted and scoped to the signed-in user.

Google Cloud setup

  1. Create or open the Google Cloud project.
  2. Enable Gmail API.
  3. Configure the OAuth consent screen.
  4. Add authorized redirect URIs for local and production environments.
  5. Add test users while the app is in testing mode.

Required environment values

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=https://app.elarissolutionsllc.com/google/callback

Verification

  • User A can only load Gmail A messages.
  • User B can only load Gmail B messages.
  • Disconnecting removes access for that user only.
  • Gmail API errors are shown in the dashboard with useful messages.

[!WARNING] Gmail scopes are sensitive. Public production use may require Google OAuth app verification.