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
- Create or open the Google Cloud project.
- Enable Gmail API.
- Configure the OAuth consent screen.
- Add authorized redirect URIs for local and production environments.
- 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.
