Google Workspace setup¶
MeetAlias is a Google OAuth app internal to your Workspace. Internal apps need no review by Google, even for Calendar and Gmail access, and only accounts in your Workspace can use them.
You need a Workspace admin for steps 2 and 5, and a Google Cloud project in the same organization. On Microsoft 365, see Microsoft 365 setup instead.
1. Create a project and enable the APIs¶
- Open the Google Cloud console and create a project, for example MeetAlias. Pick your Workspace organization as its location.
- Under APIs & Services → Library, enable:
- Google Calendar API
- Gmail API
2. Configure the consent screen¶
Under APIs & Services → OAuth consent screen (called Google Auth Platform → Branding / Audience in newer consoles):
- User type: Internal. This is what limits sign-in to your Workspace and skips Google's verification.
- App name, support email and logo: what people see when they first sign in.
-
Scopes: add
Scope Used for openid,email,profileSign-in, name and photo. https://www.googleapis.com/auth/calendar.eventsCreating, changing and reading back the events MeetAlias makes. https://www.googleapis.com/auth/calendar.freebusyBusy times for booking pages. Only times, never event details. https://www.googleapis.com/auth/gmail.sendSending invites. Send only: MeetAlias can't read mail.
3. Create the OAuth client¶
Under APIs & Services → Credentials, choose Create credentials → OAuth client ID:
- Application type: Web application.
-
Authorized redirect URIs: one per site,
https://<site domain>/api/auth/callback:
Paste the client ID and client secret into the setup wizard and choose Test sign-in with Google.
Keep the secret out of files and repositories
Don't download the client JSON file into the project directory; copy the two values straight into the wizard. Use a separate OAuth client for production and for development, so a leaked development secret can't be used against production.
4. Decide who may sign in¶
The wizard's test sign-in sets the allowed domain to your account's Workspace domain (for example example.com) and makes you the first admin. Only verified accounts of that domain can sign in, even though the OAuth app is already internal. See Configuration.
5. Optional: sender aliases for extra brands¶
If a site should send invites from another domain (for example you@other-brand.example instead of you@example.com):
- Add that domain to Workspace (as a secondary domain or a domain alias).
- Give each person who uses the site an address on it and add it in Gmail → Settings → Accounts → Send mail as.
- Set the site's Invite sender domain on the Brands page (Edit).
When someone has no such alias, Gmail sends from their primary address instead, so sending never fails.