0% found this document useful (0 votes)
10 views

Step By Step to authorize google Drive

The document outlines the steps to integrate Google Drive with Salesforce by creating a project in the Google Developers Console and setting up OAuth credentials. It details the process of enabling the Google Drive API, creating an OAuth Client ID, and configuring an Auth Provider in Salesforce. Finally, it instructs on editing the Google Drive project to include the callback URL from Salesforce, completing the initial setup for integration.

Uploaded by

bikram115566
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Step By Step to authorize google Drive

The document outlines the steps to integrate Google Drive with Salesforce by creating a project in the Google Developers Console and setting up OAuth credentials. It details the process of enabling the Google Drive API, creating an OAuth Client ID, and configuring an Auth Provider in Salesforce. Finally, it instructs on editing the Google Drive project to include the callback URL from Salesforce, completing the initial setup for integration.

Uploaded by

bikram115566
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Making Google Drive Ready for Integration

Creating a Project in the Google Developers Console

1. First, you need an existing Google account. If


not sign up here.

2. Then login with Google credentials to your


Google App for Work admin
account: https://console.cloud.google.com/

Create a New Project

3. Create New Project, give it a name let's say Salesforce


Integration, Save it and finally Select the newly created
project.

New Project created and selected as Active

4. From the project dashboard, click the Menu icon in the


upper left, and then click APIs and
Services. Then, Enable APIs and Services, and search
for Google Drive API. Select it and click Enable API on
Google Drive API
a: Enable API Dashboard

b: Search for Google Drive API

c: Enable ‘Google Drive API’

Preparing for Google Drive Credentials

1. Now, click Credentials in the menu on the


left side.

2. In the OAuth Consent Screen tab, enter a


valid email address and application name,
and click Save. Make sure to Publish the
app, so that publication status becomes In
production for the record.

OAuth Consent Screen

3. In the Credentials tab, click on Create Credentials,


select OAuth Client Id

click on Create Credentials, select OAuth Client Id

4. Select Application type as a Web application, give it


a name, e.g. SalesforceGoogleDriveClient and Create.
5. Copy the client Id and client secret which gets
created in the above step and save it in a text file.
Optionally, you can download and save the JSON file which
gets created for later usage.

Important:

The client Id and client secret created in the above


step would be used in the upcoming step which creates
an auth. provider in Salesforce for Google drive.

Making Salesforce Ready for Integration:

Creating an Auth. Provider in Salesforce

1. From Setup > search for Auth. Providers in


the Quick Find box and then select Auth.
Providers. Click New to create a fresh
record.
2. For Provider Type, select Open ID Connect

Provider Type: Open ID Connect

3. Now, for the new Auth. Providers fill in the below


details as mentioned:

 Name — Enter the name you want to appear


in Salesforce: ‘Google Drive Provider’

 URL Suffix — Enter the suffix at the end of


the URL path: ‘GoogleDriveProvider’

 Consumer Key — client ID you copied when


creating the Google project.

 Consumer Secret — client secret you copied


when creating the Google project.

 Authorize Endpoint URL — Enter


‘https://accounts.google.com/o/oauth2/auth?
access_type=offline&approval_prompt=force’

 Token Endpoint URL — Enter


‘https://accounts.google.com/o/oauth2/token’

 Default Scopes — Enter ‘openid email


profile https://www.googleapis.com/auth/driv
e’
Once all details are entered, Save the record. It should
look something like the below:

New Auth Provider details.

4. Note down the Callback URL value from the newly


created record. This URL value would be used while
editing the Google project created in the earlier steps.

https://globalovertgroup2-dev-
ed.develop.my.salesforce.com/services/authcallback/
GoogleDrive123

Call back URL


Editing Google Drive Project with Callback URL
1. Go again to our Google Drive API Manager
page, in the left side of the menu,
click Credentials

2. Click to open the previously created web


app: SalesforceGoogleDriveClient

3. In the Authorised redirect URIs section of


the page, click Add URI to add the Callback
URL while creating the Auth. Providers in
Salesforce:

Modifying the Google Drive web app for Authorised redirect URIs
4. Enter Authorised redirect URIs = Callback
URL value and save it.

Enter Authorised redirect URIs with the callback URL value

Now the initial setup is ready from the Google Drive


and Salesforce perspectives.

You might also like