banner

XfilePro

Home » How to generate an access & secret key in Google Cloud Platform
Webinar.png

How to generate an access & secret key in Google Cloud Platform

Please follow the below steps to generate an access & secret key in Google Cloud Platform

  1. Open Google Drive Console – https://cloud.google.com/console/project
  2. Login with your Google account credentials.
  3. After successful login, the following screen would look like the below –
How to generate an access & secret key in Google Cloud Platform

4. Click on the top of the screen, you will see Select a project > Create a project

How to generate an access & secret key in Google Cloud Platform

5. Enter a Project Name and click on Create (see the below screen)

How to generate an access & secret key in Google Cloud Platform

6. When you click on CREATE, it may take a couple of seconds to create a new project. Once a project is created, you will get a notification that it’s created. Your screen will appear like the below screen –

How to generate an access & secret key in Google Cloud Platform

7. Click on Select a Project on the top of the screen and you will see your new project which you created.

How to generate an access & secret key in Google Cloud Platform

8. Click on the project and the project will open up like the below screen –

How to generate an access & secret key in Google Cloud Platform

9. Click on Go to API overview under APIs and the screen will look like the below screen – 

How to generate an access & secret key in Google Cloud Platform

10. Click on Enable API from tab: Dashboard

How to generate an access & secret key in Google Cloud Platform

11. Click on tab:Credentials > Create Credentials > OAuth Client ID

How to generate an access & secret key in Google Cloud Platform

12. Click on CONFIGURE CONSENT SCREEN > OAuth Consent Screen

How to generate an access & secret key in Google Cloud Platform

13. Click on OAuth Consent Screen. Enter Product Name & click on SAVE

14. Select Web Application radio button under Application Type & click on ENTER

How to generate an access & secret key in Google Cloud Platform

15. When you click on enter, it will provide you with an access key and a secret key. Copy this information and keep it handy. We will need this information for further steps.

How to generate an access & secret key in Google Cloud Platform

16. Click on Client Name

How to generate an access & secret key in Google Cloud Platform

17. The following screen will look like – 

Client ID for Web application

18. Under Authorised JavaScript origins, enter the following URL

https://xfiles.na35.visual.force.com

				
					Please note: In the above link, you will see na35 . It must be replaced with the Salesforce instance you are currently on.
				
			

19. Under the Authorized redirect URLs All the following URL –

https://xfiles.na35.visual.force.com/apex/XfileOauthCallBack?type=GoogleDrive~326109767469-hctkoggfhjkliwmkckq25dg9ek.apps.googleusercontent.com~QfghjkcioepR9rFLd8-zwbcUIM41

where Blue represents: client ID
Green represents: client secret
				
					Please note: In the above link, you will see na35 . It must be replaced with the Salesforce instance you are currently on.
				
			

20. Click on SAVE. The page will redirect back to the below screen –

Create Credentials

Now that you have a new project created, we will use this access key and secret key in our application to connect XfilesPro with GDrive. Know more about how to use this access key and secret key in XfilesPro