Custom OAuth Apps
Gatelet ships with built-in OAuth credentials that work out of the box but show an “unverified app” warning during sign-in. Registering your own OAuth app removes this warning and gives you full control over the credentials.
Google (Calendar + Gmail)
Section titled “Google (Calendar + Gmail)”1. Create an OAuth client
Section titled “1. Create an OAuth client”- Go to the Google Cloud Console — Credentials
- Create a project (or select an existing one)
- Click Create Credentials → OAuth client ID
- Set Application type to Desktop app
- Give it a name (e.g. “Gatelet”) and click Create
- Copy the Client ID and Client Secret
2. Enable APIs
Section titled “2. Enable APIs”In the same Google Cloud project, enable the APIs for the providers you plan to use:
- Go to APIs & Services → Library
- Search for and enable:
- Google Calendar API — required for the Google Calendar provider
- Gmail API — required for the Gmail provider
3. Scopes (reference)
Section titled “3. Scopes (reference)”You don’t need to configure scopes — Gatelet requests them automatically during the OAuth flow. For reference, the scopes requested are:
Google Calendar:
https://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.events
Gmail:
https://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/gmail.composehttps://www.googleapis.com/auth/gmail.modify
Microsoft (Outlook Calendar + Outlook Mail)
Section titled “Microsoft (Outlook Calendar + Outlook Mail)”1. Register an application
Section titled “1. Register an application”- Go to Azure Portal → App registrations
- Click New registration
- Set a name (e.g. “Gatelet”)
- Under Supported account types, select Accounts in any organizational directory and personal Microsoft accounts
- Click Register
- Copy the Application (client) ID from the overview page
2. Configure authentication
Section titled “2. Configure authentication”- Go to Authentication in the sidebar
- Click Add a platform → Mobile and desktop applications
- Add the following redirect URI:
If you changedhttp://localhost:4001/api/connections/oauth/callback
GATELET_ADMIN_PORT, replace4001with your custom port. This single URI is shared by all Microsoft providers (Outlook Calendar, Outlook Mail, etc.). - Under Advanced settings, set Allow public client flows to Yes
- Click Save
3. Add API permissions
Section titled “3. Add API permissions”-
Go to API permissions in the sidebar
-
Click Add a permission → Microsoft Graph → Delegated permissions
-
Add permissions for the providers you plan to use:
Outlook Calendar:
Calendars.ReadWrite
Outlook Mail:
Mail.ReadWriteMail.Send
Both providers also need:
User.Readoffline_access
-
Click Add permissions
Enter credentials in Gatelet
Section titled “Enter credentials in Gatelet”Once you have your credentials, configure them in Gatelet using either method:
Dashboard (recommended): Go to Settings → Integrations and enter your Client ID and Client Secret.
Environment variables:
| Variable | Provider |
|---|---|
GOOGLE_CLIENT_ID | Google (Calendar + Gmail) |
GOOGLE_CLIENT_SECRET | Google (Calendar + Gmail) |
MICROSOFT_CLIENT_ID | Microsoft (Outlook Calendar + Mail) |
MICROSOFT_CLIENT_SECRET | Microsoft (Outlook Calendar + Mail) — optional |
Dashboard-configured credentials take precedence over environment variables.
After updating credentials, you’ll need to re-create existing connections (disconnect and reconnect) since their refresh tokens are tied to the original OAuth client.