Prerequisites
- A Google Cloud project
- Your Google OAuth Client ID and Client Secret
Configure Google OAuth
1
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 Auth”)
- Copy the Client ID and Client Secret — you will need them in the next step
2
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.3
Create the Google OAuth configuration