Google Docs Connection

The google docs import/export pod does not work in dev environment without some gotchas. The secret and client id are encrytped in github workflow.

Create Google API console account

To run the gdoc pods in dev environment, we create a test service account in google API console. Follow the below steps to create one:

  1. Create account in API console using this guide: https://developers.google.com/identity/protocols/oauth2
  2. Create a project. Go to Enabled API and Services and enable Google Docs API and Google Drive API.
  3. Go To Credentials > Create Creadential > Oauth Client ID
    • Click on Create Consent Screen > and select User type External.
    • Fill required details (App Info and Developer Info), Click on Save and continue
    • Add Docs and Drive Scopes., Click on Save and continue
    • Add Test Users(emails that should be whitelisted). Add only your gmail id.
  4. Again, Go to Credentials > Create Creadential > Oauth Client ID.
    • Select Application type as Web Application.
    • Click on Create.
    • Download json.

Update code

After creating the account, you would get the credentials: client id and secret.

NOTE: This is only for dev env, do not commit your client id and secret