Skip to main content

Google project setup

TheBooking uses one Google Cloud project and one OAuth web client for all Google Accounts connected to the WordPress site.

Before you begin

  • Serve WordPress over HTTPS.
  • Sign in to the Google account that will own the Cloud project.
  • Open Settings > Integrations > Google Calendar in TheBooking. Keep the displayed redirect URI and JavaScript origin available.

Configure Google Cloud

  1. Create or select a dedicated project in the Google Cloud console.
  2. Enable the Google Calendar API from the API Library.
  3. Configure the Google Auth consent screen with an application name, support email, and developer contact.
  4. Add test users while the application is in testing, or complete Google's publication and verification requirements for the intended audience.
  5. Create an OAuth client with application type Web application.
  6. Add the exact authorized redirect URI and JavaScript origin shown by TheBooking. A mismatch produces Google's redirect_uri_mismatch error.
  1. Copy the client ID and client secret into Settings > Integrations > Google Calendar and save.
  2. Enable the Google Calendar integration flag.

Do not publish the client secret, place it in documentation screenshots, or reuse credentials from an unrelated application.

Google changes the console navigation regularly. Refer to Google's current web-server OAuth guide if a label has moved.

Next step

Connect a Google Account and verify that its calendars are listed before assigning calendar roles.