mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
⚡Improve Google Credentials documentation
This commit is contained in:
parent
0ac78aa799
commit
fe54c8ce33
@ -36,6 +36,10 @@ Create a [Google Cloud](https://cloud.google.com/) account.
|
||||
7. Use provided API Key with your Google node credentials in n8n.
|
||||
 -->
|
||||
|
||||
::: tip ❗️ Note for enabling the API
|
||||
You'll need to enable the API of the service you want to use. You can enable the API from the Google Cloud Platform. For example, if you want to use the Google Sheets node, enable the Google Sheets API on the Google Cloud Platform.
|
||||
:::
|
||||
|
||||
## Using OAuth
|
||||
|
||||
1. Access your [Google Cloud Console](https://console.cloud.google.com).
|
||||
@ -45,16 +49,23 @@ Create a [Google Cloud](https://cloud.google.com/) account.
|
||||
5. Select 'OAuth client ID' from the dropdown list.
|
||||
6. Select 'Web application' from the ***Application type*** dropdown list.
|
||||
7. Click on the ***+ Add URI*** button under the ***Authorized redirect URIs*** section.
|
||||
8. Copy the 'OAuth Callback URL' provided in the 'Google OAuth2 API' credentials in n8n and paste it in the ***URIs*** field in the Create OAuth client ID page.
|
||||
9. Click on the ***CREATE*** button.
|
||||
10. Use provided ***Client Secret*** and ***Client ID*** with your Google node credentials in n8n.
|
||||
11. Click on the circle button in the OAuth section to connect a Google account to n8n.
|
||||
12. Click on the ***Save*** button to save your credentials.
|
||||
13. On Google Cloud Console, click on ***Library*** in the menu on the left.
|
||||
14. Search for the API that you want to enable. For example, search for 'Calendar', and click on 'Google Calendar API'.
|
||||
15. Click on the ***ENABLE*** button.
|
||||
8. Copy the 'OAuth Callback URL' provided in the Google node credentials in n8n.
|
||||
9. Paste it in the ***URIs*** field in the Create OAuth client ID page.
|
||||
10. Click on the ***CREATE*** button.
|
||||
11. Copy ***Your Client ID*** from the Google Cloud Console.
|
||||
12. Paste it in the ***Client ID*** field in the Google node credentials in n8n.
|
||||
13. Copy ***Your Client Secret*** from the Google Cloud Console.
|
||||
14. Paste it in the ***Client Secret*** field in the Google node credentials in n8n.
|
||||
15. Enter the name for your credentials in the ***Credentials Name*** field in the Google node credentials in n8n.
|
||||
16. Click on the circle button in the OAuth section to connect a Google account to n8n.
|
||||
17. Click on the ***Save*** button to save your credentials.
|
||||
18. On Google Cloud Console, click on ***Library*** in the menu on the left.
|
||||
19. Search for the API that you want to enable. For example, search for 'Sheets', and click on 'Google Sheets API'.
|
||||
20. Click on the ***ENABLE*** button.
|
||||
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/y-XHQbFOUww" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
The following video demonstrates the steps mentioned above.
|
||||
|
||||
<iframe width="840" height="472.5" src="https://www.youtube.com/embed/gZ6N2H3_vys" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
|
||||
## Using Service Account
|
||||
|
||||
@ -63,19 +74,32 @@ Create a [Google Cloud](https://cloud.google.com/) account.
|
||||
3. Select 'Credentials' from the ***APIs & Services*** dropdown list.
|
||||
4. Click on the ***+ CREATE CREDENTIALS*** button.
|
||||
5. Select 'Service account' from the dropdown list.
|
||||
6. Enter the required information and click on the ***CREATE*** button.
|
||||
7. Based on your use-case, you may want to select a role from the ***Select a role*** dropdown list.
|
||||
8. Based on your use-case, you may want to grant user access in the ***Grant users access to this service account*** section.
|
||||
9. Click on the ***Done*** button.
|
||||
10. Select the newly created service account under the ***Service Accounts*** section.
|
||||
11. Under the ***Keys*** section, click on ***ADD KEY*** and select 'Create new key'.
|
||||
12. Click on the ***Create*** button.
|
||||
13. Save the JSON file on your machine.
|
||||
14. Use the ***client_email*** and ***private_key*** from the JSON file you downloaded for your Google Credentials in the n8n node.
|
||||
6. Enter a name in the ***Service account name*** field.
|
||||
7. Click on the ***CREATE*** button.
|
||||
8. Based on your use-case, you may want to select a role from the ***Select a role*** dropdown list.
|
||||
9. Based on your use-case, you may want to grant user access in the ***Grant users access to this service account*** section.
|
||||
10. Click on the ***Done*** button.
|
||||
11. Select the newly created service account under the ***Service Accounts*** section.
|
||||
12. Scroll down to the ***Keys*** section and click on ***ADD KEY***.
|
||||
13. Select 'Create new key' from the dropdown list.
|
||||
14. Select ***JSON*** under the ***Key type*** section and click on the ***Create*** button.
|
||||
15. Save the JSON file on your machine.
|
||||
16. Enter the name for your credentials in the ***Credentials Name*** field in the Google node credentials in n8n.
|
||||
17. Copy ***Email*** from the Google Cloud Console.
|
||||
18. Paste it in the ***Service Account Email*** field in the Google node credentials in n8n.
|
||||
19. Copy the ***Private Key*** from the JSON file you saved in the previous step.
|
||||
20. Click on the arrow icon to open the multi-line editor for the ***private_key*** field in the Google node credentials in n8n.
|
||||
21. Paste the ***private_key*** in the ***Private Key*** field in the Google node credentials in n8n.
|
||||
22. Click on the ***Save*** button to save your credentials.
|
||||
23. On the Google Cloud Console, click on the left arrow icon next to the service account name.
|
||||
24. Click on ***Library*** in the menu on the left.
|
||||
25. Search for the API that you want to enable. For example, search for 'Sheets', and click on 'Google Sheets API'.
|
||||
26. Click on the ***ENABLE*** button.
|
||||
|
||||
|
||||
**Note:** Before entering the private_key in n8n, make sure that you replace all the `\n` with new lines.
|
||||
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/Druffw8Afro" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
<iframe width="840" height="472.5" src="https://www.youtube.com/embed/ArXVlpo3y1k" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
|
||||
## FAQs
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user