Connect Google Drive with App Xchange
Follow these steps to connect Google Drive with App Xchange.
- Learn about authentication and authorization
- Configure the OAuth consent screen and choose scopes
- Create access credentials
- Enable Google Workspace APIs
To connect Google Drive with App Xchange:
- Configure your Google Cloud project.
- In Google Cloud, create a new project for your app with a descriptive name.
- Navigate to Branding, then add the authorized domain Trimble.com to your new project.
- Navigate to Audience,
then add yourself as a test user to the app.For more information about verification and publishing, see OAuth App Verification and Manage OAuth App Branding in Google Cloud Platform Console Help.
- Navigate to Clients,
then create an OAuth client ID with the following
parameters.
- Type: Web Application
- Redirect URI: https://app.xchange.trimble.com/api/app-builder/v1/oauth/authenticate/callback
- Record your Client ID
and Client Secret for
later.Tip: Select the client to view your Client Secret.
- Navigate to Data Access and add https://www.googleapis.com/auth/drive to Scopes.
- Enter the connector details in App Xchange.
- Navigate to Workspace > Integrations, then select Add Connection next to this connector.
- Create the OAuth
Client using the
OAuth2CodeFlow connector
definition. Enter following values.
- OAuth Client: OAuth 2.0 Client Credentials
- Name: Enter a descriptive name for your OAuth Client.
- Client ID: Enter the value you previously recorded.
- Client secret: Enter the value you previously recorded.
- Client secret expiration: Leave this blank.
- Token URL: https://oauth2.googleapis.com/token
- Refresh URL: https://oauth2.googleapis.com/token
- Scope: https://www.googleapis.com/auth/driveNote: If you intentionally want to restrict the connectors functionality, you may choose another Google Drive API scope.
- Prompt: consent
- Client authentication: Select Basic auth header from the dropdown.
For more information, see Create an OAuth Client.
- Under Additional
parameters, select Add
Item. Enter the following
values.
- Key: access_type
- Value: offline
- Select Save.
- Enable the Google Drive API.
- In API Library, select Google Drive API from the API Library.
- Select Enable.