Google Sign-In for Memberships

Last updated:
APPLICABLE PRODUCTS
  • Content Hub
    • Professional or Enterprise
You can allow members to access your private content using Google Authentication. You will need to create a Google Cloud Console account to link Google Authentication with your HubSpot account. 

Create a project

In your Google Cloud Console account, you can create a project to manage sign-ins to your private content in HubSpot. 

  • Navigate to Google Cloud Console
  • In the top left, click Select a project
  • In the dialog box, click New project in the top right. 
  • Enter a name and location for your project, then click Create

Add app information

Once you've set up your project, you can add information from your HubSpot account to allow it to process private content sign-in data. 

  • Navigate to Google Cloud Console
  • In the top left, click Select a project
  • In the dialog box, select the project you just created. 
  • In the top left, click the navigation menu, then select API & Services > Oauth consent screen.

select-oauth-consent-screen

  • In the User Type section, select the type of user who will be accessing your private content. 
    • Internal: only employees of your organization will be access your content.
    • External: other visitors will be accessing your content. 
  • If you select External, you will be prompted to enter an app namesupport email for members to contact you, and developer contact information for Google to contact you. 
  • In the Scopes section, select the following scopes: 
  • Publish your app. 

Create credentials

Once you've set up your project, you will need to link the project to your HubSpot private content. 
  • Navigate to Google Cloud Console
  • In the top left, click the navigation menu, then select API & Services > Credentials.
  • At the top of the page, click Create credentials. 

create-credentials

  • Select OAuth client ID.
  • Select web application, then enter a name for your application.
  • In a separate tab, locate your credentials in HubSpot:
    • In your HubSpot account, click the settings icon in the top navigation bar.
    • In the left sidebar menu, navigate to Content > Private Content
    • In the Sign-in Options section, click Set up social sign-on.
    • In the right panel, click Copy next to the redirect URI. 
  • In Google Cloud Console, paste the redirect URI into the Authorized redirect URIs section. 
  • Click Create
  • Copy the Client ID and Client Secret fields from Google Cloud Console. 
  • In HubSpot, paste this information into the Client ID and Client Secret fields in your social sign-on settings. 

paste-client-id-and-secret

  • In HubSpot, click Verify.
  • Repeat this process for each separate domain in your HubSpot account. To access a different domain's redirect URI, click the default domain name dropdown menu in your HubSpot social sign-on settings and select a different domain

set-up-a-different-domain-for-social-sign-in


Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.