This section walks through setting up the Google Drive connector using a OAuth-enabled Google App.
Anyone can do this (even without a paid Google Workspace)!If you’re an organization with a Google Workspace, and you’d rather use a Service Account to access Google Drive,
checkout the section here.
This is only applicable for users without a Google Organization.
Typically for a company, RECAP would be set up as an internal app so this step would not apply.
Add at least one test user email. Only the email accounts added here will be allowed to run the OAuth
flow to index new documents.
Click SAVE AND CONTINUE, review the changes and click BACK TO DASHBOARD
Create Credentials
Go to the Credentials tab and select + CREATE CREDENTIALS -> OAuth client ID
Choose Web application and give it some name like RECAPConnector
Add a Authorized JavaScript origins for http://localhost:3000 (or https://<INTERNAL_DEPLOYMENT_URL> if you have setup RECAP for production use)
Add a Authorized redirect URIs for http://localhost:3000/admin/connectors/google-drive/auth/callback (or https://<INTERNAL_DEPLOYMENT_URL>/admin/connectors/google-drive/auth/callback if you have setup RECAP for production use)
Click create and on the right hand side next to Client secret, there is an option to download the
credentials as a JSON. Download the JSON for use in the next step.