Prerequisites
- A Google Cloud project
- Your Google OAuth Client ID and Client Secret
Configure Google OAuth
Create OAuth credentials on Google Cloud
- Go to the Google Cloud Console
- Select your project (or create a new one)
- Navigate to APIs & Services > Credentials
- Click Create Credentials > OAuth client ID
- Select Web application as the application type
- Give it a name (e.g. “Prelude Session”)
- Copy the Client ID and Client Secret — you will need them in the next step
Set the authorized redirect URI
Still on the same OAuth client page in the Google Cloud Console:Replace
- Under Authorized redirect URIs, click Add URI
- Enter the following URI:
${YOUR_CUSTOM_DOMAIN} with your custom domain (e.g. session.yourapp.com).- Click Save
The redirect URI must match exactly. Make sure there is no trailing slash and that you are using
https.Create the Google OAuth configuration
| Field | Description |
|---|---|
client_id | Your Google OAuth client ID. |
client_secret | Your Google OAuth client secret. |
enabled | Set to true to enable Google login. |
options.use_email_as_identifier | When true, the user’s Google email is stored as an email identifier. |
options.allow_email_account_merge | When true, if a user with the same email already exists, the Google account is linked to the existing user. |