AdvoLogix Help

How to Assemble & Update Your Google Drive Authorized Redirect URL

Updated on

To set up the Google Drive integration, you will need to assemble an Authorized Redirect URL with the instructions below.

Find Your My Domain Name

To find your organization's My Domain name, go to Setup >> Quick Find: My Domain (see below).

Find the Sandbox Name (only if using a sandbox)

If you are installing into a sandbox, then you will need the name of the sandbox as well.  To find your sandbox name, (while logged into the sandbox) look at the top of any page (see below).

Assemble Your URL

With Enhanced Domains enabled:

  • Production - https://[your salesforce my domain]--advpm.vf.force.com/apex/AuthenticateGDrive
  • Sandbox - https://[your salesforce my domain]--[your sandbox name]--advpm.sandbox.vf.force.com/apex/AuthenticateGDrive

Without Enhanced Domains:

  • Production - https://[your salesforce my domain]--advpm.visualforce.com/apex/AuthenticateGDrive
  • Sandbox - https://[your salesforce my domain]--[your sandbox name]--advpm.[instance_name].visualforce.com/apex/AuthenticateGDrive
Example
    • My Domain name = acmecompany
    • Sandbox Name = sandbox1

If installing into a production org, then this link would be used -

  • When Enhanced Domains is enabled:
    https://acmecompany--advpm.vf.force.com/apex/AuthenticateGDrive
  • When Enhanced Domains is not enabled:
    https://acmecompany--advpm.visualforce.com/apex/AuthenticateGDrive

If installing into a sandbox, then this link would be used -

  • When Enhanced Domains is enabled:
    https://acmecompany--sandbox1--advpm.sandbox.vf.force.com/apex/AuthenticateGDrive
  • When Enhanced Domains is not enabled:
    https://acmecompany--sandbox1--advpm.visualforce.com/apex/AuthenticateGDrive

ATTENTION!   IMPORTANT CONFIGURATION UPDATE  👀
When Enhanced Domains is enabled or disabled within an organization, it will impact the authorized url needed for authenticating users within the integration. Whenever such configuration change is deployed within your organization, your administrator must assemble the new updated URL as explained above and update according to instructions specified below.

The redirect url assembled above should be added within the Google Cloud Console Project.

How To Update Your Authorized Redirect URL

  1. Go to https://console.developers.google.com and log in to the Google Cloud Console using your Google account.
  2. Once signed in, select the drop-down menu at the top-left corner and you will see a list of existing projects.  Select the project that was set up to authorize your Google Drive integration previously.
  3. Under the Quick access section, click on the APIs and Services action link.
  4. From the sidebar, click on the Credentials menu item.
  5. Find your previously saved credential under OAuth 2.0 Client IDs section, and click on the name.
  6. On the screen that is opened, and under the section named Authorized Redirect URIs, click + Add URI button to add new rows and enter your assembled URL from above.
  7. Click on Save button.
Previous Article Google Cloud Console Project Setup
Next Article Identify Your Client ID & Secret From an Existing Google Cloud Console Project
Still need help? Click here!
AdvoLogix® is a registered trademark of AdvoLogix.com LLC a Texas Limited Liability Company. All references to other trademarks belonging to third parties that appear on this website, documentation, or other materials shall be understood to refer to those registered trademarks owned by others, and not to any trademark belonging to AdvoLogix. Otherwise, all material herein is the copyright of AdvoLogix.com LLC. All Rights Reserved.