Set up Google Calendar
alphaSetup guide coming soon. Google Calendar has no step-by-step guide in the catalogue yet. Until it does, here is what a connection needs, and where to read more.
What a connection holds
| Field | Secret | Where it comes from |
|---|---|---|
OAuth client IDclientId | Not secret | From Google Cloud Console -> APIs & Services -> Credentials. ONE value for the whole installation, not per connected account. |
OAuth client secretclientSecret | Secret | The client secret for the same OAuth app. One value for the whole installation. |
Access tokenaccessToken | Secret | Per connected Google account, and it expires after ONE HOUR. The host refreshes it with the refresh token. |
Refresh tokenrefreshToken | Secret | Per connected Google account. Google issues one only when the consent request asks for offline access; without it the connection dies within the hour. |
Channel tokenchannelToken | Secret | A secret the host chooses per connected account and sends as `token` on every events.watch. Google echoes it back in the X-Goog-Channel-Token header of every notification, and that echo is the ONLY thing that authenticates a delivery -- Google does not sign them. Up to 256 characters. |
Links
Google Calendar API docs
Consent is requested at https://accounts.google.com/o/oauth2/v2/auth
React (editor surface, every host)
@particle-academy/google-calendar-ui v0.4.1
