The Google Calendar Pro add-on for Simple Calendar uses OAuth to connect securely to Google. In turn this allows access to both private and public calendars and additional display features such as event colors, attendees and attachments.

Don’t have the add-on yet? Get the Google Calendar Pro add-on here.

Setting up an Google OAuth client is almost as easy as obtaining a Google API key as used by the default settings in the core Simple Calendar plugin.

Here are step-by-step instructions to configure a Google OAuth client for Google Calendar Pro:

 

The Google Calendar Pro add-on for Simple Calendar uses OAuth to connect securely to Google. In turn this allows access to both private and public calendars and additional display features such as event colors, attendees and attachments.

Don’t have the add-on yet? Get the Google Calendar Pro add-on here.

Setting up an Google OAuth client is almost as easy as obtaining a Google API key as used by the default settings in the core Simple Calendar plugin.

Here are step-by-step instructions to configure a Google OAuth client for Google Calendar Pro:

1. Navigate to the Google Developers Console.

2. If you’ve already created an app for the simple Google API key method, you can use this app for a Google OAuth client also. If so, skip to step 5.

If you haven’t, from the top Project menu select Create project. Give your project a name, agree to the terms, then click Create.

3. From the Google Developers Console Dashboard select Enable APIs and Services. If you don’t see this, select Library from the menu on the left side of the screen. If you already have a project created in the Google console using the original method, you can skip to step 5.

4. Under the API Library, search for and select Google Calendar API. Then click “Click Enable”.

5. Now, you need to configure the OAuth Consent screen by going to the Menu Icon on the top left then go to “APIs & Services” > OAuth Consent Screen.

6. Set User Type to External and click Create.

7. Enter an App name (not important), User support Email, and Developer Support Email, then click Save and Continue. You will have to click save and continue through the Scopes, Test Users and Summary screens. The Summary page would be the end of this step and will look like this:

8. Select Credentials from the left-hand menu, click +CREATE CREDENTIALS, then skip the setup wizard by selecting client ID.

Select the option OAuth Client ID.

9. Assign the Application type as “Desktop App” and ensure NOT to select “Web application” .

10. Enter a name for the application (such as “Simple Calendar Client ID”) then click Create. Note: It may take 5 minutes to a few hours for settings to take effect.

11. Your Client ID and Client Secret should now be created. You can Copy and paste those later on.

12. If you need to come back later to reference them, on the underlying Credentials screen under “OAuth 2.0 client IDs,” click the OAuth client ID that you just created (or the Edit/pencil icon) to view your client ID and client secret key once again.

Keep the Google Developers Console page open in one browser tab and head to your site’s WordPress admin in another tab. From your WordPress admin, go to Calendars >Settings > Event Sources. You should now be on the Event Sources tab and see the following:

13. One at a time copy and paste the Client ID and the Client secret values from the Google Developers Console and paste them in the two fields here. Then click Save Changes.

14. Now that you entered the ID and secret keys, click the link below the Authentication code field. A popup will appear for you to select your gmail account (if you don’t see any, check if your browser is suppressing those). Follow the instructions in the popup and authorize your own application with your Google account.

15. By clicking on Allow, Google will return an auth code which you can paste in the Authentication Code field. Then click Save Changes.

Note: If you are not currently logged in into Google, you must log in first. You are going to authorize Simple Calendar to use calendars of the Google user that is currently logged in. If you share your WordPress installation with other users, they won’t be able to control your Google account but if they have access rights to Simple Calendar they might control or read your calendars or calendars belonging to the user who has authorized Simple Calendar.