Getting G Suite Calendar Client ID and Secret
Step 1: Sign in
Log in to www.accounts.google.com.
Step 2: Start application registration wizard
Start this wizard. You have two options here:
- Create a new project where your application will be registered: set the selector to Create a project and click the Continue button. Wait for confirmation that the Google Calendar API is enabled and click Go to credentials.
- Upgrade an existing project (by enabling the Calendar APIs): click the selector, choose an existing project and click Continue. Wait for confirmation that the Google Calendar API is enabled and click Go to credentials.
Step 3: Find out what credentials you need
Once you are on the Add credentials to your project page, you can configure credentials for your application.
- The first selector should be preset to Google Calendar API.
- Set the second selector to Web Server.
- Set the radio to User data.
Click on the "What credentials do I need?" button.
Step 4: Create an OAuth 2.0 client ID
- Fill in the Name of the client for the project.
- Set Authorized redirect URIs to https://auth.sapho.com/callback.
Then click the Create client ID button (click it twice if needed).
Step 5: Set up the OAuth 2.0 consent screen
- Set the Email address.
- Fill in the Product name shown to users.
Then click Continue.
Step 6: Get the application credentials
Now you can click the Download button to download a JSON with credentials or simply click Done and you will be redirected to a list of clients’ credentials.
Click the name of the client you have created previously.
Step 7: Paste the credentials in Sapho
Copy and paste the Client ID and Client Secret in the input fields of G Suite Calendar service definition in Sapho.
Once you have created a dedicated account in Google Calendar and set up the connector in Sapho using that account, you will be able to ensure transparency: all events created through Sapho will have their Created By field set to the special account (see the example below).