Skip to content

Google Calendar configuration

Mike Schwab edited this page Oct 23, 2018 · 1 revision

To host OAuth permission scope tokens, you register an app with Google and configure it to accept connections from web servers. Commissulator can send you to that app to access the permission interface that Google displays. Any Google account can log in and grant permission manage to their calendar.

This causes Google to deliver a code to Commissulator. That is combined with the client secret to request an access token. Since offline is one of the permissions in the scope, a refresh token is also delivered. The refresh token will be used continually to acquire fresh access tokens.

Using that token, the agent can access their calendars by saving the Google calendar's id on the agent. The tokens are stored as serialized JSON in the database using Active Storage.