> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

---
id: 5b6d28b5-9699-4188-be07-ad7fce732e90
---

# Google Sign-In for Memberships

> Learn more about setting up memberships for private content to allow visitors to sign in with their Google account.  

> [accordion] Supported products

You can allow members to access your private content using Google Authentication. You will need to [create a Google Cloud Console account](https://console.cloud.google.com/) 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](https://console.cloud.google.com/).
* 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](https://console.cloud.google.com/).
* 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](https://www.hubspot.com/hubfs/Knowledge_Base_2021/select-oauth-consent-screen.png)

* 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 name**, **support email** for members to contact you, and **developer contact information** for Google to contact you.
* In the *Scopes* section, select the following scopes:
  * .../auth/[userinfo.email](http://userinfo.email/)
  * .../auth/userinfo.profile
  * openid
* 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](https://console.cloud.google.com/).
* In the top left, click the **navigation menu**, then select **API & Services > Credentials**.
* At the top of the page, click **Create credentials**.

\*\*

![create-credentials](https://www.hubspot.com/hubfs/Knowledge_Base_2023_2024/create-credentials.png)

\*\*

* 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.

![set-up-google-social-sign-on-in-hubspot](https://www.hubspot.com/hubfs/Knowledge_Base_2021/set-up-google-social-sign-on-in-hubspot.png)

* 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-social-sign-on-for-google](https://www.hubspot.com/hubfs/Knowledge_Base_2021/set-up-social-sign-on-for-google.png)
