Google Calendar

Setup OAuth 2.0 Client

  1. Create Google OAuth 2.0 client (skip if you already have one). Copy CLIENT_ID & CLIENT_SECRET values.
  2. Ensure Google Calendar API is enabled for the project.
  3. Configure permission scopes to at least include & in OAuth Consent Screen section.
  4. Add Authorized redirect URI in the Credentials section. You should be able to verify ownership of this domain in order publish to production.

Implement OAuth 2.0 Authorization Code Flow

Code samples from Calendar V2 Demo Repository:


Note about testing calendar connections

If your Google OAuth client is in "testing", any connections made automatically expire after 7 days. After the client has been published successfully, connections will stay connected indefinitely unless OAuth permissions are revoked, or a user changes their password.

More info on this here.