XfilePro

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

    Home / How to generate…

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 –
  4. Click on the top of the screen, you will see Select a project > Create a project
  5. Enter a Project Name and click on Create (see the below screen)
  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 –
  7. Click on Select a Project on the top of the screen and you will see your new project which you created.
  8. Click on the project and the project will open up like the below screen –
  9. Click on Go to API overview under APIs and the screen will look like the below screen – 
  10. Click on Enable API from tab: Dashboard
  11. Click on tab:Credentials > Create Credentials > OAuth Client ID
  12. Click on CONFIGURE CONSENT SCREEN > OAuth Consent Screen
  13. Click on OAuth Consent Screen. Enter Product Name & click on SAVE
  14. Select Web Application radio button under Application Type & click on ENTER
  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.
  16. Click on Client Name
  17. The following screen will look like – 
  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 – 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