Google OAuth Setup
This step connects Playrunner to a Google account. It does not create Google Cloud infrastructure and it does not run Terraform.
1. Open the Connect Dialog
Start Playrunner locally from the repo root (if not already running):
./start-local.sh
Open Integrations, choose Connect to GCP, and copy the Authorized redirect URI shown in the dialog.
With the default local app URL, the redirect URI is:
http://127.0.0.1:3100/oauth/callback/gcp
Use the value shown in your dialog if your local frontend is running on a different host or port.
2. Create the Google OAuth Client
- Open Google Cloud Console APIs & Services.
- Open OAuth consent screen.
- Create or update the consent screen for the project.
- Add the Google account that will authenticate with Playrunner as a test user if the app is still in testing.
- Open Credentials.
- Click Create Credentials and choose OAuth client ID.
- Set Application type to Web application.
- Add the redirect URI from Playrunner as an Authorized redirect URI.
- Create the client.
- Copy the generated Client ID and Client Secret.
3. Authenticate in Playrunner
- Paste the Client ID and Client Secret into the Connect to GCP dialog.
- Click Authenticate.
- Complete the Google OAuth popup.
- After the dialog shows Connected to GCP, select or enter the Google Cloud project ID.
- Set the Cloud Run region, for example
us-central1. - Click Save GCP Settings.
Playrunner stores the OAuth tokens, selected project, Cloud Run region, and
standard runner defaults in the local CloudCredential row.
The project list is only an autocomplete convenience. On a new Google Cloud project, the lookup can be unavailable until Cloud Resource Manager is enabled. Enter the project ID manually and continue to Terraform; Terraform enables the required APIs for the selected project.
4. Continue to Terraform
After saving the GCP settings, continue to Terraform setup.