Google OAuth App Setup
This guide walks you through creating your own Google OAuth app so you can use custom OAuth credentials with PortEden for Google Calendar and Gmail integration. By bringing your own OAuth app, you have full control over consent branding, scopes, and user access.
1. Create a Google Cloud Project
Head over to the Google Cloud Console and sign in with your Google account. From the project dropdown at the top of the page, click New Project, give it a name (e.g. "PortEden Integration"), and click Create.
If you already have a project you'd like to use, simply select it from the dropdown instead.
2. Enable the Required APIs
Navigate to APIs & Services > Library in the Cloud Console. Search for and enable each of the following APIs:
| API | Used for |
|---|---|
| Gmail API | Reading, sending, and managing emails through PortEden |
| Google Calendar API | Listing calendars, reading and creating events, managing RSVPs |
Tip
3. Configure the OAuth Consent Screen
Go to the OAuth consent screen page. Google will ask you to choose a User type:
InternalGoogle Workspace only
Choose this if your organization uses Google Workspace. Only users within your organization will be able to authorize the app. No Google verification is required.
Externalpersonal Gmail / multi-org
Choose this if you don't have Google Workspace or need users from outside your organization. After creating the app, keep it in "Testing" publishing status and add your users as test users (up to 100 users). No verification is required while in Testing mode.
Tip
Fill in the required fields — an App name and a Support email — then click Save and Continue.
4. Configure Data Access (Scopes)
On the Data Access page in your OAuth consent screen settings, click "Add or Remove Scopes" and add each of the following scopes:
| Scope | Purpose |
|---|---|
| userinfo.email | Identify the user's email address |
| userinfo.profile | Retrieve basic profile information |
| calendar.events | Read and write calendar events |
| calendar.readonly | Read-only access to calendars and event lists |
| gmail.modify | Read, send, and manage email messages |
Note
https://www.googleapis.com/auth/calendar.events5. Create OAuth Credentials
Navigate to the Credentials page and click + CREATE CREDENTIALS > OAuth client ID.
- Set Application type to Web application.
- Give it a descriptive name (e.g. "PortEden OAuth").
- Under Authorized redirect URIs, click + Add URI and enter:
Redirect URI
https://my.porteden.com/calendar-providers/oauth-callbackClick Create to generate your credentials.
6. Copy Your Client ID & Secret
After clicking Create, a dialog will display your Client ID and Client Secret. Copy both values.
Note
7. Connect to PortEden
Open your PortEden dashboard and navigate to Settings > Integrations. Paste your Client ID and Client Secret into the Custom OAuth fields, and you're all set.
Tip