mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
Update google credentials to reflect new oauth consent flow (#3441)
This commit is contained in:
parent
8e3a2531c0
commit
6d7a63a081
@ -46,12 +46,12 @@ If you haven't used OAuth in your Google Cloud project before, you'll need to [c
|
||||

|
||||
<figcaption>Check the project dropdown in the Google Cloud top navigation</figcaption>
|
||||
</figure>
|
||||
1. Open the left navigation menu and go to **APIs & Services > OAuth consent screen**.
|
||||
1. Select **Get started** to begin configuring OAuth consent.
|
||||
1. Enter an **App name** and **User support email** to include on the Oauth screen.
|
||||
1. For the **Audience**, select **Internal** for user access within your organization's Google workspace or **External** for any user with a Google account. Refer to Google's [User type documentation](https://support.google.com/cloud/answer/15549945?sjid=17061891731152303663-EU#user-type) for more information on user types.
|
||||
1. Select the **Email addresses** Google should use to contact you about changes to your project.
|
||||
1. Read and accept the Google's User Data Policy and select **Create**.
|
||||
1. Open the left navigation menu and go to **APIs & Services > OAuth consent screen**. Google will redirect you to the Google Auth Platform overview page.
|
||||
1. Select **Get started** on the **Overview** tab to begin configuring OAuth consent.
|
||||
1. Enter an **App name** and **User support email** to include on the Oauth screen. Select **Next** to continue.
|
||||
1. For the **Audience**, select **Internal** for user access within your organization's Google workspace or **External** for any user with a Google account. Refer to Google's [User type documentation](https://support.google.com/cloud/answer/15549945?sjid=17061891731152303663-EU#user-type) for more information on user types. Select **Next** to continue.
|
||||
1. Select the **Email addresses** Google should use to contact you about changes to your project. Select **Next** to continue.
|
||||
1. Read and accept the Google's User Data Policy. Select **Continue** and then select **Create**.
|
||||
1. In the left-hand menu, select **Branding**.
|
||||
1. In the **Authorized domains** section, select **Add domain**:
|
||||
* If you're using n8n's Cloud service, add `n8n.cloud`
|
||||
@ -62,25 +62,26 @@ If you haven't used OAuth in your Google Cloud project before, you'll need to [c
|
||||
|
||||
Next, create the OAuth client credentials in Google:
|
||||
|
||||
1. Access your [Google Cloud Console](https://console.cloud.google.com/). Make sure you're in the correct project.
|
||||
1. In the **APIs & Services** section, select [**Credentials**](https://console.cloud.google.com/apis/credentials).
|
||||
2. Select **+ Create credentials** > **OAuth client ID**.
|
||||
3. In the **Application type** dropdown, select **Web application**.
|
||||
4. Google automatically generates a **Name**. Update the **Name** to something you'll recognize in your console.
|
||||
5. From your n8n credential, copy the **OAuth Redirect URL**. Paste it into the **Authorized redirect URIs** in Google Console.
|
||||
6. Select **Create**.
|
||||
1. Select **+ Create credentials** > **OAuth client ID**.
|
||||
1. In the **Application type** dropdown, select **Web application**.
|
||||
1. Google automatically generates a **Name**. Update the **Name** to something you'll recognize in your console.
|
||||
1. From your n8n credential, copy the **OAuth Redirect URL**. Paste it into the **Authorized redirect URIs** in Google Console.
|
||||
1. Select **Create**.
|
||||
|
||||
### Finish your n8n credential
|
||||
|
||||
With the Google project and credentials fully configured, finish the n8n credential:
|
||||
|
||||
1. From Google's **OAuth client created** modal, copy the **Client ID**. Enter this in your n8n credential.
|
||||
2. From the same Google modal, copy the **Client Secret**. Enter this in your n8n credential.
|
||||
3. You must provide the scopes for this credential. Refer to [Scopes](#scopes) for more information. Enter multiple scopes in a space-separated list, for example:
|
||||
1. From the same Google modal, copy the **Client Secret**. Enter this in your n8n credential.
|
||||
1. You must provide the scopes for this credential. Refer to [Scopes](#scopes) for more information. Enter multiple scopes in a space-separated list, for example:
|
||||
```
|
||||
https://www.googleapis.com/auth/gmail.labels https://www.googleapis.com/auth/gmail.addons.current.action.compose
|
||||
```
|
||||
4. In n8n, select **Sign in with Google** to complete your Google authentication.
|
||||
5. **Save** your new credentials.
|
||||
1. In n8n, select **Sign in with Google** to complete your Google authentication.
|
||||
1. **Save** your new credentials.
|
||||
|
||||
## Video
|
||||
|
||||
|
||||
@ -47,12 +47,12 @@ If you haven't used OAuth in your Google Cloud project before, you'll need to [c
|
||||

|
||||
<figcaption>Check the project dropdown in the Google Cloud top navigation</figcaption>
|
||||
</figure>
|
||||
1. Open the left navigation menu and go to **APIs & Services > OAuth consent screen**.
|
||||
1. Select **Get started** to begin configuring OAuth consent.
|
||||
1. Enter an **App name** and **User support email** to include on the Oauth screen.
|
||||
1. For the **Audience**, select **Internal** for user access within your organization's Google workspace or **External** for any user with a Google account. Refer to Google's [User type documentation](https://support.google.com/cloud/answer/15549945?sjid=17061891731152303663-EU#user-type) for more information on user types.
|
||||
1. Select the **Email addresses** Google should use to contact you about changes to your project.
|
||||
1. Read and accept the Google's User Data Policy and select **Create**.
|
||||
1. Open the left navigation menu and go to **APIs & Services > OAuth consent screen**. Google will redirect you to the Google Auth Platform overview page.
|
||||
1. Select **Get started** on the **Overview** tab to begin configuring OAuth consent.
|
||||
1. Enter an **App name** and **User support email** to include on the Oauth screen. Select **Next** to continue.
|
||||
1. For the **Audience**, select **Internal** for user access within your organization's Google workspace or **External** for any user with a Google account. Refer to Google's [User type documentation](https://support.google.com/cloud/answer/15549945?sjid=17061891731152303663-EU#user-type) for more information on user types. Select **Next** to continue.
|
||||
1. Select the **Email addresses** Google should use to contact you about changes to your project. Select **Next** to continue.
|
||||
1. Read and accept the Google's User Data Policy. Select **Continue** and then select **Create**.
|
||||
1. In the left-hand menu, select **Branding**.
|
||||
1. In the **Authorized domains** section, select **Add domain**:
|
||||
* If you're using n8n's Cloud service, add `n8n.cloud`
|
||||
@ -63,21 +63,22 @@ If you haven't used OAuth in your Google Cloud project before, you'll need to [c
|
||||
|
||||
Next, create the OAuth client credentials in Google:
|
||||
|
||||
1. Access your [Google Cloud Console](https://console.cloud.google.com/). Make sure you're in the correct project.
|
||||
1. In the **APIs & Services** section, select [**Credentials**](https://console.cloud.google.com/apis/credentials).
|
||||
2. Select **+ Create credentials** > **OAuth client ID**.
|
||||
3. In the **Application type** dropdown, select **Web application**.
|
||||
4. Google automatically generates a **Name**. Update the **Name** to something you'll recognize in your console.
|
||||
5. From your n8n credential, copy the **OAuth Redirect URL**. Paste it into the **Authorized redirect URIs** in Google Console.
|
||||
6. Select **Create**.
|
||||
1. Select **+ Create credentials** > **OAuth client ID**.
|
||||
1. In the **Application type** dropdown, select **Web application**.
|
||||
1. Google automatically generates a **Name**. Update the **Name** to something you'll recognize in your console.
|
||||
1. From your n8n credential, copy the **OAuth Redirect URL**. Paste it into the **Authorized redirect URIs** in Google Console.
|
||||
1. Select **Create**.
|
||||
|
||||
### Finish your n8n credential
|
||||
|
||||
With the Google project and credentials fully configured, finish the n8n credential:
|
||||
|
||||
1. From Google's **OAuth client created** modal, copy the **Client ID**. Enter this in your n8n credential.
|
||||
2. From the same Google modal, copy the **Client Secret**. Enter this in your n8n credential.
|
||||
2. In n8n, select **Sign in with Google** to complete your Google authentication.
|
||||
3. **Save** your new credentials.
|
||||
1. From the same Google modal, copy the **Client Secret**. Enter this in your n8n credential.
|
||||
1. In n8n, select **Sign in with Google** to complete your Google authentication.
|
||||
1. **Save** your new credentials.
|
||||
|
||||
## Video
|
||||
|
||||
|
||||
@ -47,14 +47,14 @@ With your project created, enable the APIs you'll need access to:
|
||||
<figcaption>Check the project dropdown in the Google Cloud top navigation</figcaption>
|
||||
</figure>
|
||||
|
||||
1. Select the hamburger menu **> APIs & Services > Credentials**. Google takes you to your **Credentials** page.
|
||||
2. Select **+ CREATE CREDENTIALS > Service account**.
|
||||
1. Open the left navigation menu and go to **APIs & Services > Credentials**. Google takes you to your **Credentials** page.
|
||||
2. Select **+ Create credentials > Service account**.
|
||||
3. Enter a name in **Service account name** and an ID in **Service account ID**. Refer to [Creating a service account](https://cloud.google.com/iam/docs/creating-managing-service-accounts?hl=en#creating) for more information.
|
||||
4. Select **CREATE AND CONTINUE**.
|
||||
4. Select **Create and continue**.
|
||||
5. Based on your use-case, you may want to **Select a role** and **Grant users access to this service account** using the corresponding sections.
|
||||
6. Select **DONE**.
|
||||
7. Select your newly created service account under the **Service Accounts** section. Open the **KEYS** tab.
|
||||
8. Select **ADD KEY > Create new key**.
|
||||
6. Select **Done**.
|
||||
7. Select your newly created service account under the **Service Accounts** section. Open the **Keys** tab.
|
||||
8. Select **Add key > Create new key**.
|
||||
9. In the modal that appears, select **JSON**, then select **CREATE**. Google saves the file to your computer.
|
||||
|
||||
### Finish your n8n credential
|
||||
|
||||
Loading…
Reference in New Issue
Block a user