README.md

GoogleOauthCalendar

This provides a generator that installs everything you need to be able to authenticate users against
their Google identity (via oauth2), and then use the google apis to start interacting with their calendars.
This isn't limited to Google Calendars, but it's a nice starter example to demonstrate their services.

Rather than
the individual instructions at each in each gem, and stubbing your toe a half dozen times in the process, this is
a one-stop generator.

Specifically, it

creates a User model with name & email pulled from Google, and a place to store their access and refresh token

initializes omniauth to use the google-oauth2 strategy for signin

creates a SessionsController to react to signin/signout

installs a basic root controller that has view showing signin/signout links,
and queries the list of the user's calendars via the google/api_client

This gem allows you to install these features after your app already exists, rather than using an application
template such as rails_apps_composer. This way, it makes
fewer assumptions about your other app preferences.

Configuring Google API

You need to configure an API instance at Google for your app's use. This becomes the trust link
between the systems. You can use a regular google identity for this, Google Apps for Business or other
paid services are not required, assuming you can deal with their usage limits.

Go to to the Google API Console, and create a new project.
(The name doesn't matter, but will probably match your rails project name)